31 references to GetNativeTypeHandle
System.Private.CoreLib (31)
src\System\Enum.CoreCLR.cs (2)
21CorElementType elementType = rt.GetNativeTypeHandle().AsMethodTable()->GetPrimitiveCorElementType(); 71RuntimeType? underlyingType = s_underlyingTypes[(int)enumType.GetNativeTypeHandle().AsMethodTable()->GetPrimitiveCorElementType()];
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
101TypeHandle th = targetTypeHandle.GetRuntimeType().GetNativeTypeHandle();
src\System\RuntimeHandles.cs (13)
281Debug.Assert(!type.GetNativeTypeHandle().IsTypeDesc); 282object result = InternalAlloc(type.GetNativeTypeHandle().AsMethodTable()); 292Debug.Assert(!type.GetNativeTypeHandle().IsTypeDesc); 294InternalAllocNoChecks(type.GetNativeTypeHandle().AsMethodTable(), ObjectHandleOnStack.Create(ref result)); 444TypeHandle typeHandle = type.GetNativeTypeHandle(); 524TypeHandle typeHandle = type.GetNativeTypeHandle(); 545TypeHandle typeHandle = type.GetNativeTypeHandle(); 648TypeHandle th = type.GetNativeTypeHandle(); 664bool ret = TypeHandle.CanCastToForReflection(type.GetNativeTypeHandle(), target.GetNativeTypeHandle()); 679TypeHandle typeHandle = type.GetNativeTypeHandle(); 1178MethodTable* pMT = destNullableType.GetNativeTypeHandle().AsMethodTable(); 1633TypeHandle th = declaringType.GetNativeTypeHandle();
src\System\RuntimeType.BoxCache.cs (1)
40TypeHandle handle = rt.GetNativeTypeHandle();
src\System\RuntimeType.CoreCLR.cs (14)
1773TypeHandle typeHandle = GetNativeTypeHandle(); 3379TypeHandle th = GetNativeTypeHandle(); 3420TypeHandle th = GetNativeTypeHandle(); 3436TypeHandle th = GetNativeTypeHandle(); 3448TypeHandle th = GetNativeTypeHandle(); 3466TypeHandle th = GetNativeTypeHandle(); 3478TypeHandle th = GetNativeTypeHandle(); 3490TypeHandle th = GetNativeTypeHandle(); 3500TypeHandle th = GetNativeTypeHandle(); 3511TypeHandle th = GetNativeTypeHandle(); 3523TypeHandle th = GetNativeTypeHandle(); 3535TypeHandle th = GetNativeTypeHandle(); 3688TypeHandle th = GetNativeTypeHandle(); 3698CorElementType ret = (CorElementType)GetNativeTypeHandle().GetCorElementType();