You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know how to new(instantiate) an instance of c# class, and find it's very different between the following two ways:
const value = BigInteger.alloc();
value .method('.ctor').overload("System.Int32").invoke(1000);
// value has a class property.
const one = BigInteger.method<Il2Cpp.Object>('get_One').invoke();
const two = BigInteger.method<Il2Cpp.Object>('op_Addition').overload("System.Numerics.BigInteger", "System.Numerics.BigInteger").invoke(one, one);
the first one cannot be passed to the assembly, but the second one can. one does not have a class property, but has a type property, but value has.
I want to use 1000 to instantiate a BigInteger, and don't know how to manage that. Any helps there, thanks in advance/
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I don't know how to new(instantiate) an instance of c# class, and find it's very different between the following two ways:
the first one cannot be passed to the assembly, but the second one can.
one
does not have aclass
property, but has atype
property, butvalue
has.I want to use 1000 to instantiate a BigInteger, and don't know how to manage that. Any helps there, thanks in advance/
Beta Was this translation helpful? Give feedback.
All reactions