3 writes to _handle
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\WeakGCHandle.T.cs (3)
36
_handle
= GCHandle.InternalAlloc(target, trackResurrection ? GCHandleType.WeakTrackResurrection : GCHandleType.Weak);
39
private WeakGCHandle(IntPtr handle) =>
_handle
= handle;
105
_handle
= IntPtr.Zero;
8 references to _handle
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\WeakGCHandle.T.cs (8)
42
public readonly bool IsAllocated =>
_handle
!= IntPtr.Zero;
53
IntPtr handle =
_handle
;
66
IntPtr handle =
_handle
;
94
public static IntPtr ToIntPtr(WeakGCHandle<T> value) => value.
_handle
;
102
IntPtr handle =
_handle
;
114
public readonly bool Equals(WeakGCHandle<T> other) =>
_handle
== other.
_handle
;
120
public override readonly int GetHashCode() =>
_handle
.GetHashCode();