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