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