How can I get address of an object in c#?
i searched and found
GCHandle handle = GCHandle.Alloc(obj, GCHandleType.WeakTrackResurrection);
int address = GCHandle.ToIntPtr(handle).ToInt32();
But need some more simple code
Is &
operator can used here?