51 references to RuntimeTypeHandle
System.Private.CoreLib (51)
Internal\Reflection\Core\Execution\ExecutionDomain.cs (13)
124
runtimeTypeInfo = GetNamedTypeForHandle(new
RuntimeTypeHandle
(pEEType));
130
new
RuntimeTypeHandle
(pEEType->RelatedParameterType).GetRuntimeTypeInfoForRuntimeTypeHandle(),
132
precomputedTypeHandle: new
RuntimeTypeHandle
(pEEType));
137
new
RuntimeTypeHandle
(pEEType->RelatedParameterType).GetRuntimeTypeInfoForRuntimeTypeHandle(),
138
precomputedTypeHandle: new
RuntimeTypeHandle
(pEEType));
143
new
RuntimeTypeHandle
(pEEType->RelatedParameterType).GetRuntimeTypeInfoForRuntimeTypeHandle(),
144
precomputedTypeHandle: new
RuntimeTypeHandle
(pEEType));
164
genericTypeArguments[i] = new
RuntimeTypeHandle
(arguments[i]).GetRuntimeTypeInfoForRuntimeTypeHandle();
168
new
RuntimeTypeHandle
(pEEType->GenericDefinition).GetRuntimeTypeInfoForRuntimeTypeHandle(),
170
precomputedTypeHandle: new
RuntimeTypeHandle
(pEEType));
188
parameterTypes[i] = new
RuntimeTypeHandle
(parameters[i]).GetRuntimeTypeInfoForRuntimeTypeHandle();
193
new
RuntimeTypeHandle
(pEEType->FunctionPointerReturnType).GetRuntimeTypeInfoForRuntimeTypeHandle(),
196
precomputedTypeHandle: new
RuntimeTypeHandle
(pEEType));
Internal\Runtime\Augments\RuntimeAugments.cs (14)
131
Type elementType = Type.GetTypeFromHandle(new
RuntimeTypeHandle
(typeHandleForArrayType.ToMethodTable()->RelatedParameterType))!;
229
return new
RuntimeTypeHandle
((MethodTable*)ldTokenResult);
361
return new
RuntimeTypeHandle
(elementType);
426
baseTypeHandle = new
RuntimeTypeHandle
(eeType->BaseType);
442
return new
RuntimeTypeHandle
(typeHandle.ToMethodTable()->InterfaceMap[index]);
456
return new
RuntimeTypeHandle
(eeType->GenericDefinition);
463
return new
RuntimeTypeHandle
(eeType->GenericArguments[argumentIndex]);
476
genericTypeArgumentHandles[i] = new
RuntimeTypeHandle
(instantiation[i]);
479
return new
RuntimeTypeHandle
(eeType->GenericDefinition);
504
genericContext = new
RuntimeTypeHandle
(genericContextPtr);
527
return new
RuntimeTypeHandle
(typeHandle.ToMethodTable()->FunctionPointerReturnType);
538
return new
RuntimeTypeHandle
(typeHandle.ToMethodTable()->FunctionPointerParameters[argumentIndex]);
551
result[i] = new
RuntimeTypeHandle
(parameters[i]);
606
return new
RuntimeTypeHandle
(theT);
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (1)
302
Assembly callingAssembly = ReflectionAugments.GetAssemblyForHandle(new
RuntimeTypeHandle
(pCell->CallingAssemblyType));
Internal\Runtime\CompilerServices\OpenMethodResolver.cs (1)
82
return new
RuntimeTypeHandle
(_declaringType);
Internal\Runtime\Dispatch.cs (3)
44
new
RuntimeTypeHandle
(pObject.GetMethodTable()),
88
new
RuntimeTypeHandle
(pObject.GetMethodTable()),
89
new
RuntimeTypeHandle
(owningType),
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\TypeCast.cs (1)
472
return ((IDynamicInterfaceCastable)obj).IsInterfaceImplemented(new
RuntimeTypeHandle
(pTargetType), throwing);
System\Array.NativeAot.cs (3)
262
IntPtr constructorEntryPoint = RuntimeAugments.TypeLoaderCallbacks.TryGetDefaultConstructorForType(new
RuntimeTypeHandle
(pElementEEType));
266
IntPtr constructorFtn = RuntimeAugments.TypeLoaderCallbacks.ConvertUnboxingFunctionPointerToUnderlyingNonUnboxingPointer(constructorEntryPoint, new
RuntimeTypeHandle
(pElementEEType));
411
throw new InvalidCastException(SR.Format(SR.Arg_ObjObjEx, value.GetType(), Type.GetTypeFromHandle(new
RuntimeTypeHandle
(pElementEEType))));
System\Delegate.cs (1)
102
typeOfFirstParameterIfInstanceDelegate = new
RuntimeTypeHandle
(_target.GetMethodTable());
System\Enum.NativeAot.cs (1)
53
=> InternalBoxEnum(new
RuntimeTypeHandle
(mt), value);
System\InvokeUtils.cs (4)
101
Type exactDstType = Type.GetTypeFromHandle(new
RuntimeTypeHandle
(dstEEType))!;
116
&& castable.IsInterfaceImplemented(new
RuntimeTypeHandle
(dstEEType), throwIfNotImplemented: false));
431
object? destinationTypeName = Type.GetTypeFromHandle(new
RuntimeTypeHandle
(dstEEType));
434
return new ArgumentException(SR.Format(SR.Arg_ObjObjEx, Type.GetTypeFromHandle(new
RuntimeTypeHandle
(srcEEType)), destinationTypeName));
System\Reflection\DynamicInvokeInfo.cs (2)
636
&& castable.IsInterfaceImplemented(new
RuntimeTypeHandle
(dstEEType), throwIfNotImplemented: false))))
732
&& castable.IsInterfaceImplemented(new
RuntimeTypeHandle
(dstEEType), throwIfNotImplemented: false))))
System\Runtime\InteropServices\IDynamicInterfaceCastable.cs (1)
23
RuntimeTypeHandle handle = instance.GetInterfaceImplementation(new
RuntimeTypeHandle
(interfaceType));
System\Runtime\InteropServices\Marshal.NativeAot.cs (2)
66
RuntimeTypeHandle structureTypeHandle = new
RuntimeTypeHandle
(structureMT);
123
RuntimeTypeHandle structureTypeHandle = new
RuntimeTypeHandle
(structureMT);
System\Runtime\InteropServices\PInvokeMarshal.cs (1)
140
IntPtr pTarget = RuntimeInteropData.GetDelegateMarshallingStub(new
RuntimeTypeHandle
(del.GetMethodTable()), openStaticFunctionPointer != IntPtr.Zero);
System\RuntimeMethodHandle.cs (1)
125
new
RuntimeTypeHandle
(target.GetMethodTable()),
System\RuntimeType.NativeAot.cs (1)
224
return new
RuntimeTypeHandle
(pEEType);
System\RuntimeTypeHandle.cs (1)
117
return new
RuntimeTypeHandle
(pMT);