48 references to RuntimeTypeHandle
System.Private.CoreLib (48)
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); 393return new RuntimeTypeHandle(elementType); 458baseTypeHandle = new RuntimeTypeHandle(eeType->BaseType); 474return new RuntimeTypeHandle(typeHandle.ToMethodTable()->InterfaceMap[index]); 496return new RuntimeTypeHandle(eeType->GenericDefinition); 503return new RuntimeTypeHandle(eeType->GenericArguments[argumentIndex]); 516genericTypeArgumentHandles[i] = new RuntimeTypeHandle(instantiation[i]); 519return new RuntimeTypeHandle(eeType->GenericDefinition); 544genericContext = new RuntimeTypeHandle(genericContextPtr); 567return new RuntimeTypeHandle(typeHandle.ToMethodTable()->FunctionPointerReturnType); 578return new RuntimeTypeHandle(typeHandle.ToMethodTable()->FunctionPointerParameters[argumentIndex]); 591result[i] = new RuntimeTypeHandle(parameters[i]); 641return new RuntimeTypeHandle(theT);
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (1)
302Assembly callingAssembly = ReflectionAugments.GetAssemblyForHandle(new RuntimeTypeHandle(pCell->CallingAssemblyType));
Internal\Runtime\CompilerServices\OpenMethodResolver.cs (1)
87return new RuntimeTypeHandle(_declaringType);
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)
105typeOfFirstParameterIfInstanceDelegate = 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))) 93Type exactDstType = Type.GetTypeFromHandle(new RuntimeTypeHandle(dstEEType))!; 413object? destinationTypeName = Type.GetTypeFromHandle(new RuntimeTypeHandle(dstEEType)); 416return 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)
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\Runtime\TypeLoaderExports.cs (1)
111=> RuntimeAugments.TypeLoaderCallbacks.ResolveGenericVirtualMethodTarget(new RuntimeTypeHandle((MethodTable*)context), *(RuntimeMethodHandle*)&signature));
System\RuntimeType.NativeAot.cs (1)
224return new RuntimeTypeHandle(pEEType);
System\RuntimeTypeHandle.cs (1)
117return new RuntimeTypeHandle(pMT);