Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tophertimzen
Created June 12, 2015 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tophertimzen/812aa20dbe23cb42756d to your computer and use it in GitHub Desktop.
Save tophertimzen/812aa20dbe23cb42756d to your computer and use it in GitHub Desktop.
public static IntPtr getObjectAddr(object wantedObject)
{
IntPtr objectPointer = (IntPtr)5;
Unsafe
{
return objectPointer = *(&objectPointer - 3);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment