3 writes to _handle
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (3)
55
_handle
= handle;
59
private GCHandle(IntPtr handle) =>
_handle
= handle;
78
IntPtr handle = Interlocked.Exchange(ref
_handle
, IntPtr.Zero);
12 references to _handle
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (12)
88
IntPtr handle =
_handle
;
95
IntPtr handle =
_handle
;
115
IntPtr handle =
_handle
;
150
public readonly bool IsAllocated =>
_handle
!= 0;
167
public static IntPtr ToIntPtr(GCHandle value) => value.
_handle
;
169
public override readonly int GetHashCode() =>
_handle
.GetHashCode();
176
public readonly bool Equals(GCHandle other) =>
_handle
== other.
_handle
;
178
public static bool operator ==(GCHandle a, GCHandle b) => a.
_handle
== b.
_handle
;
180
public static bool operator !=(GCHandle a, GCHandle b) => a.
_handle
!= b.
_handle
;