internal GCHandle(object value, GCHandleType type)
{
if (type > GCHandleType.Pinned)
{
throw new ArgumentOutOfRangeException("type", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
}
this.m_handle = GCHandle.InternalAlloc(value, type);
if (type == GCHandleType.Pinned)
{
this.SetIsPinned();
}
}