Esempio n. 1
0
 private static void ReturnUnsafeWeakReference(ManagedGCHandle handle)
 {
     if (handle != null)
     {
         _weakReferencePool.Push(handle);
     }
 }
Esempio n. 2
0
 internal ManagedWeakReference(ManagedGCHandle ownerHandle, ManagedGCHandle targetHandle, bool isSelf)
 {
     _ownerHandle    = ownerHandle;
     _targetHandle   = targetHandle;
     IsSelfReference = isSelf;
 }