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