System.Runtime.InteropServices.GCHandle
namespace System.Runtime.InteropServices
{
public struct GCHandle
{
public bool IsAllocated { get; }
public object Target { get; set; }
public IntPtr AddrOfPinnedObject();
public static GCHandle Alloc(object value);
public static GCHandle Alloc(object value, GCHandleType type);
public void Free();
public static GCHandle FromIntPtr(IntPtr value);
public static bool operator ==(GCHandle a, GCHandle b);
public static explicit operator GCHandle(IntPtr value);
public static explicit operator IntPtr(GCHandle value);
public static bool operator !=(GCHandle a, GCHandle b);
public static IntPtr ToIntPtr(GCHandle value);
}
}