3 writes to _handle
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.T.cs (3)
35
_handle
= GCHandle.InternalAlloc(target, GCHandleType.Normal);
38
private GCHandle(IntPtr handle) =>
_handle
= handle;
96
_handle
= IntPtr.Zero;
8 references to _handle
System.Private.CoreLib (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.T.cs (8)
41
public readonly bool IsAllocated =>
_handle
!= IntPtr.Zero;
49
IntPtr handle =
_handle
;
56
IntPtr handle =
_handle
;
85
public static IntPtr ToIntPtr(GCHandle<T> value) => value.
_handle
;
93
IntPtr handle =
_handle
;
105
public readonly bool Equals(GCHandle<T> other) =>
_handle
== other.
_handle
;
111
public override readonly int GetHashCode() =>
_handle
.GetHashCode();