48 references to RuntimeTypeHandle
System.Private.CoreLib (48)
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);
393
return new
RuntimeTypeHandle
(elementType);
458
baseTypeHandle = new
RuntimeTypeHandle
(eeType->BaseType);
474
return new
RuntimeTypeHandle
(typeHandle.ToMethodTable()->InterfaceMap[index]);
496
return new
RuntimeTypeHandle
(eeType->GenericDefinition);
503
return new
RuntimeTypeHandle
(eeType->GenericArguments[argumentIndex]);
516
genericTypeArgumentHandles[i] = new
RuntimeTypeHandle
(instantiation[i]);
519
return new
RuntimeTypeHandle
(eeType->GenericDefinition);
544
genericContext = new
RuntimeTypeHandle
(genericContextPtr);
567
return new
RuntimeTypeHandle
(typeHandle.ToMethodTable()->FunctionPointerReturnType);
578
return new
RuntimeTypeHandle
(typeHandle.ToMethodTable()->FunctionPointerParameters[argumentIndex]);
591
result[i] = new
RuntimeTypeHandle
(parameters[i]);
641
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)
87
return new
RuntimeTypeHandle
(_declaringType);
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)
105
typeOfFirstParameterIfInstanceDelegate = new
RuntimeTypeHandle
(_firstParameter.GetMethodTable());
System\Enum.NativeAot.cs (1)
66
=> InternalBoxEnum(new
RuntimeTypeHandle
(mt), value);
System\InvokeUtils.cs (4)
73
&& castable.IsInterfaceImplemented(new
RuntimeTypeHandle
(dstEEType), throwIfNotImplemented: false)))
93
Type exactDstType = Type.GetTypeFromHandle(new
RuntimeTypeHandle
(dstEEType))!;
413
object? destinationTypeName = Type.GetTypeFromHandle(new
RuntimeTypeHandle
(dstEEType));
416
return new ArgumentException(SR.Format(SR.Arg_ObjObjEx, Type.GetTypeFromHandle(new
RuntimeTypeHandle
(srcEEType)), destinationTypeName));
System\Reflection\DynamicInvokeInfo.cs (2)
630
&& castable.IsInterfaceImplemented(new
RuntimeTypeHandle
(dstEEType), throwIfNotImplemented: false))))
698
&& 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\Runtime\TypeLoaderExports.cs (1)
111
=> RuntimeAugments.TypeLoaderCallbacks.ResolveGenericVirtualMethodTarget(new
RuntimeTypeHandle
((MethodTable*)context), *(RuntimeMethodHandle*)&signature));
System\RuntimeType.NativeAot.cs (1)
224
return new
RuntimeTypeHandle
(pEEType);
System\RuntimeTypeHandle.cs (1)
117
return new
RuntimeTypeHandle
(pMT);