19 lines
581 B
C#
Raw Normal View History

using System.Runtime.CompilerServices;
namespace System.Runtime.InteropServices
{
partial struct GCHandle
{
[MethodImplAttribute(MethodImplOptions.InternalCall)]
static extern IntPtr InternalAlloc (object value, GCHandleType type);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
static extern void InternalFree (IntPtr handle);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
static extern object InternalGet (IntPtr handle);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
static extern void InternalSet (IntPtr handle, object value);
}
}