public void Free() { if (IsAllocated) { GCRootedObjects.Untrack(Target); } }
public static GCHandle Alloc(object value, GCHandleType type) { GCRootedObjects.Track(value); return(new GCHandle(value, type)); }
public void Free() { if (IsAllocated) { GCRootedObjects.Untrack(Target); } }
public static GCHandle Alloc(object value, GCHandleType type) { GCRootedObjects.Track(value); return(new GCHandle(value, type)); }