System.Runtime.InteropServices.GCHandle public struct GCHandle Documentation public bool IsAllocated { get; } public object Target { get; set; } public static GCHandle Alloc(object value) public static GCHandle Alloc(object value, GCHandleType type) public static GCHandle FromIntPtr(IntPtr value) public static bool op_Equality(GCHandle a, GCHandle b) public static GCHandle op_Explicit(IntPtr value) public static IntPtr op_Explicit(GCHandle value) public static bool op_Inequality(GCHandle a, GCHandle b) public static IntPtr ToIntPtr(GCHandle value) public IntPtr AddrOfPinnedObject() public void Free()