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