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