113 if (
obj.GetType() == typeof(
string))
140 return value._handle;
148 public override bool Equals([NotNullWhen(
true)]
object? o)
176 return ((nint)
handle & 1) != 0;
static unsafe bool ObjectHasComponentSize(object obj)
static bool IsPinnable(object obj)
static unsafe ref byte GetArrayDataReference(Array array)
static string ArgumentOutOfRange_Enum
static string ArgumentException_NotIsomorphic
static int Exchange(ref int location1, int value)
static void ThrowInvalidOperationException_HandleIsNotInitialized()
static void ThrowInvalidOperationException_HandleIsNotPinned()
static readonly IntPtr Zero
unsafe override int GetHashCode()
static GCHandle Alloc(object? value, GCHandleType type)
static bool IsPinned(IntPtr handle)
static IntPtr ToIntPtr(GCHandle value)
static bool operator==(GCHandle a, GCHandle b)
override bool Equals([NotNullWhen(true)] object? o)
GCHandle(object value, GCHandleType type)
override int GetHashCode()
static bool operator!=(GCHandle a, GCHandle b)
static void InternalSet(IntPtr handle, object value)
static IntPtr InternalAlloc(object value, GCHandleType type)
unsafe IntPtr AddrOfPinnedObject()
static GCHandle Alloc(object? value)
static void ThrowIfInvalid(IntPtr handle)
static IntPtr GetHandleValue(IntPtr handle)
static void InternalFree(IntPtr handle)
static unsafe object InternalGet(IntPtr handle)
static object InternalCompareExchange(IntPtr handle, object value, object oldValue)
static GCHandle FromIntPtr(IntPtr value)