Skip to content

Commit

Permalink
Add note on getting in-file address of method
Browse files Browse the repository at this point in the history
  • Loading branch information
SamboyCoding authored Sep 7, 2020
1 parent 9e13844 commit c769e23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LibCpp2IL/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ var join = type.Methods[0];

Console.Log(join.Name); //Join
Console.Log($"0x{join.MethodPointer:X}"); //0x180385033
//Getting the file address of a method
Console.Log($"Join is in-assembly at address 0x{LibCpp2IlMain.ThePe.MapVirtualAddressToRaw(join.MethodPointer):X}"); //Join is in-assembly at address 0x385033
//ReturnType is a ReflectionData again, like interfaces are
Console.Log(join.ReturnType); //System.String
//DeclaringType gives you the original Il2CppTypeDefinition back
Expand Down

0 comments on commit c769e23

Please sign in to comment.