public static void RuntimeHandleFree(IntPtr handlePtr) { GCHandle handle = GCHandle.FromIntPtr(handlePtr); handle.Free(); }
public static void RuntimeHandleSet(IntPtr handle, Object value) { GCHandle gcHandle = GCHandle.FromIntPtr(handle); gcHandle.Target = value; }