Ho to call an object method with another object method as argument? #153
Unanswered
SamueleD78
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Well, this is a problematic territory. You should find a way to create a This is its constructor: System.Void .ctor(System.Object object, System.IntPtr method);
You may take a shot at it. PS - This line const Nabe_Internal_Catalog = new Il2Cpp.Object(inst.method<Il2Cpp.Pointer>("get_Catalog").invoke()); is "incorrect" (it works anyway because of abstractions), you should do: // prefer lowerCase for C# objects to avoid confusion with methods/classes
const nabeInternalCatalog = inst.method<Il2Cpp.Object>("get_Catalog").invoke(); |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So i have a method in an object
System.Void ForEach(System.Func<Nabe.Internal.File,System.Boolean> func); // 0x02be142c
and i have another method in another object with the same params:
System.Boolean IsExistOnLocal(Nabe.Internal.File file, System.Boolean isStrict); // 0x02fff828
i could get the reference to the methods:
now, how can i call
Nabe_Internal_Catalog_ForEach
passingIsExistOnLocal
as argument?i've tryed hard without understanding how ^^''
ty so much in advance
Beta Was this translation helpful? Give feedback.
All reactions