49 instantiations of RuntimeTypeHandle
System.Private.CoreLib (49)
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]); 488return new RuntimeTypeHandle(eeType->GenericDefinition); 495return new RuntimeTypeHandle(eeType->GenericArguments[argumentIndex]); 508genericTypeArgumentHandles[i] = new RuntimeTypeHandle(instantiation[i]); 511return new RuntimeTypeHandle(eeType->GenericDefinition); 536genericContext = new RuntimeTypeHandle(genericContextPtr); 559return new RuntimeTypeHandle(typeHandle.ToMethodTable()->FunctionPointerReturnType); 570return new RuntimeTypeHandle(typeHandle.ToMethodTable()->FunctionPointerParameters[argumentIndex]); 583result[i] = new RuntimeTypeHandle(parameters[i]); 633return 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 (2)
50public static RuntimeTypeHandle FromIntPtr(IntPtr value) => new RuntimeTypeHandle(value); 117return new RuntimeTypeHandle(pMT);
914 references to RuntimeTypeHandle
dotnet-svcutil-lib (36)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (1)
1127Call(typeof(Type).GetMethod("GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public, null, new Type[] { typeof(RuntimeTypeHandle) }, null));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (17)
114internal static DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type type) 119internal static DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type type, SerializationMode mode) 126internal static DataContract GetDataContract(int id, RuntimeTypeHandle typeHandle, SerializationMode mode) 137internal static DataContract GetDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type type) 142internal static DataContract GetGetOnlyCollectionDataContract(int id, RuntimeTypeHandle typeHandle, Type type, SerializationMode mode) 158internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type type) 188internal static int GetId(RuntimeTypeHandle typeHandle) 567internal static DataContract GetDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type type) 588internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type type) 638internal static int GetId(RuntimeTypeHandle typeHandle) 677private static DataContract CreateDataContract(int id, RuntimeTypeHandle typeHandle, Type type) 760private static DataContract CreateGetOnlyCollectionDataContract(int id, RuntimeTypeHandle typeHandle, Type type) 799private static RuntimeTypeHandle GetDataContractAdapterTypeHandle(RuntimeTypeHandle typeHandle) 2564private RuntimeTypeHandle _value; 2570public TypeHandleRef(RuntimeTypeHandle value) 2575public RuntimeTypeHandle Value
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
348s_internalDeserializeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("InternalDeserialize", Globals.ScanAllMembers, new Type[] { typeof(XmlReaderDelegator), typeof(int), typeof(RuntimeTypeHandle), typeof(string), typeof(string) });
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerContext.cs (3)
130internal virtual DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type type) 142internal virtual DataContract GetDataContractSkipValidation(int typeId, RuntimeTypeHandle typeHandle, Type type) 155internal virtual DataContract GetDataContract(int id, RuntimeTypeHandle typeHandle)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
106internal virtual object InternalDeserialize(XmlReaderDelegator xmlReader, int id, RuntimeTypeHandle declaredTypeHandle, string name, string ns)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (1)
37internal override object InternalDeserialize(XmlReaderDelegator xmlReader, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle, string name, string ns)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (9)
101internal void InternalSerializeReference(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle) 112internal virtual void InternalSerialize(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle) 127RuntimeTypeHandle objTypeHandle = obj.GetType().TypeHandle; 142internal void SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle declaredTypeHandle) 158internal virtual void SerializeWithXsiTypeAtTopLevel(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle originalDeclaredTypeHandle, Type graphType) 177protected virtual void SerializeWithXsiType(XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle objectTypeHandle, Type objectType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType) 256protected void SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, bool verifyKnownType, RuntimeTypeHandle declaredTypeHandle, Type declaredType) 579protected virtual void WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle declaredTypeHandle)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (3)
177internal override void InternalSerialize(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle) 251private void InternalSerializeWithSurrogate(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle) 253RuntimeTypeHandle objTypeHandle = isDeclaredType ? declaredTypeHandle : obj.GetType().TypeHandle;
ILCompiler.Compiler (3)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (3)
18/// <see cref="System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"/> 44/// <item><see cref="System.Reflection.MethodBase.GetMethodFromHandle(System.RuntimeMethodHandle, System.RuntimeTypeHandle)"/></item> 356/// <see cref="System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(System.RuntimeTypeHandle)"/>
illink (3)
ILLink.RoslynAnalyzer (3)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (3)
18/// <see cref="System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"/> 44/// <item><see cref="System.Reflection.MethodBase.GetMethodFromHandle(System.RuntimeMethodHandle, System.RuntimeTypeHandle)"/></item> 356/// <see cref="System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(System.RuntimeTypeHandle)"/>
Microsoft.CodeAnalysis (1)
SpecialType.cs (1)
237/// Indicates that the type is <see cref="RuntimeTypeHandle"/>.
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
785[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.RuntimeTypeHandle))]
netstandard (1)
netstandard.cs (1)
1819[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.RuntimeTypeHandle))]
System.Linq.Expressions (1)
System\Linq\Expressions\Common\CachedReflectionInfo.cs (1)
25public static MethodInfo MethodBase_GetMethodFromHandle_RuntimeMethodHandle_RuntimeTypeHandle => field ??= typeof(MethodBase).GetMethod(nameof(MethodBase.GetMethodFromHandle), new[] { typeof(RuntimeMethodHandle), typeof(RuntimeTypeHandle) })!;
System.Private.CoreLib (364)
Internal\IntrinsicSupport\ComparerHelpers.cs (10)
19private static unsafe bool ImplementsIComparable(RuntimeTypeHandle t) 53internal static object GetComparer(RuntimeTypeHandle t) 55RuntimeTypeHandle comparerType; 56RuntimeTypeHandle openComparerType = default(RuntimeTypeHandle); 57RuntimeTypeHandle comparerTypeArgument = default(RuntimeTypeHandle); 61RuntimeTypeHandle nullableType = RuntimeAugments.GetNullableType(t); 71if (openComparerType.Equals(default(RuntimeTypeHandle))) 85bool success = RuntimeAugments.TypeLoaderCallbacks.TryGetConstructedGenericTypeForComponents(openComparerType, new RuntimeTypeHandle[] { comparerTypeArgument }, out comparerType);
Internal\IntrinsicSupport\EqualityComparerHelpers.cs (12)
22private static unsafe bool ImplementsIEquatable(RuntimeTypeHandle t) 49internal static unsafe bool IsEnum(RuntimeTypeHandle t) 54internal static unsafe bool IsString(RuntimeTypeHandle t) 61internal static object GetComparer(RuntimeTypeHandle t) 63RuntimeTypeHandle comparerType; 64RuntimeTypeHandle openComparerType = default(RuntimeTypeHandle); 65RuntimeTypeHandle comparerTypeArgument = default(RuntimeTypeHandle); 74RuntimeTypeHandle nullableType = RuntimeAugments.GetNullableType(t); 84if (openComparerType.Equals(default(RuntimeTypeHandle))) 98bool success = RuntimeAugments.TypeLoaderCallbacks.TryGetConstructedGenericTypeForComponents(openComparerType, new RuntimeTypeHandle[] { comparerTypeArgument }, out comparerType);
Internal\Reflection\Augments\ReflectionAugments.cs (12)
117RuntimeTypeHandle declaringTypeHandle; 118RuntimeTypeHandle[] genericMethodTypeArgumentHandles; 131public static MethodBase GetMethodFromHandle(RuntimeMethodHandle runtimeMethodHandle, RuntimeTypeHandle declaringTypeHandle) 135RuntimeTypeHandle[] genericMethodTypeArgumentHandles; 139RuntimeTypeHandle actualDeclaringTypeHandle; 162RuntimeTypeHandle declaringTypeHandle; 175public static FieldInfo GetFieldFromHandle(RuntimeFieldHandle runtimeFieldHandle, RuntimeTypeHandle declaringTypeHandle) 182RuntimeTypeHandle actualDeclaringTypeHandle; 210private static RuntimeFieldInfo GetFieldInfo(RuntimeTypeHandle declaringTypeHandle, FieldHandle fieldHandle) 383public static IntPtr GetFunctionPointer(RuntimeMethodHandle runtimeMethodHandle, RuntimeTypeHandle declaringTypeHandle) 499public static Assembly GetAssemblyForHandle(RuntimeTypeHandle typeHandle) 504public static void RunClassConstructor(RuntimeTypeHandle typeHandle)
Internal\Reflection\Core\Execution\ExecutionDomain.cs (3)
32public static MethodBase GetMethod(RuntimeTypeHandle declaringTypeHandle, QMethodDefinition methodHandle, RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 91internal static RuntimeTypeInfo GetNamedTypeForHandle(RuntimeTypeHandle typeHandle)
Internal\Reflection\Core\Execution\ExecutionEnvironment.cs (35)
37public abstract QTypeDefinition GetMetadataForNamedType(RuntimeTypeHandle runtimeTypeHandle); 38public abstract bool TryGetNamedTypeForMetadata(QTypeDefinition qTypeDefinition, out RuntimeTypeHandle runtimeTypeHandle); 40public abstract bool TryGetArrayTypeForElementType(RuntimeTypeHandle elementTypeHandle, out RuntimeTypeHandle arrayTypeHandle); 42public abstract bool TryGetMultiDimArrayTypeForElementType(RuntimeTypeHandle elementTypeHandle, int rank, out RuntimeTypeHandle arrayTypeHandle); 44public abstract bool TryGetFunctionPointerTypeForComponents(RuntimeTypeHandle returnTypeHandle, RuntimeTypeHandle[] parameterHandles, bool isUnmanaged, out RuntimeTypeHandle functionPointerTypeHandle); 46public abstract bool TryGetPointerTypeForTargetType(RuntimeTypeHandle targetTypeHandle, out RuntimeTypeHandle pointerTypeHandle); 48public abstract bool TryGetByRefTypeForTargetType(RuntimeTypeHandle targetTypeHandle, out RuntimeTypeHandle byRefTypeHandle); 50public abstract bool TryGetConstructedGenericTypeForComponents(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles, out RuntimeTypeHandle runtimeTypeHandle); 51public abstract bool TryGetConstructedGenericTypeForComponentsNoConstraintCheck(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles, out RuntimeTypeHandle runtimeTypeHandle); 57public abstract MethodBaseInvoker TryGetMethodInvokerNoConstraintCheck(RuntimeTypeHandle declaringTypeHandle, QMethodDefinition methodHandle, RuntimeTypeHandle[] genericMethodTypeArgumentHandles); 58public abstract FieldAccessor TryGetFieldAccessor(MetadataReader reader, RuntimeTypeHandle declaringTypeHandle, RuntimeTypeHandle fieldTypeHandle, FieldHandle fieldHandle); 63public abstract bool TryGetMethodFromHandle(RuntimeMethodHandle runtimeMethodHandle, out RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles); 64public abstract bool TryGetMethodFromHandleAndType(RuntimeMethodHandle runtimeMethodHandle, RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles); 65public abstract bool TryGetFieldFromHandle(RuntimeFieldHandle runtimeFieldHandle, out RuntimeTypeHandle declaringTypeHandle, out FieldHandle fieldHandle); 66public abstract bool TryGetFieldFromHandleAndType(RuntimeFieldHandle runtimeFieldHandle, RuntimeTypeHandle declaringTypeHandle, out FieldHandle fieldHandle); 79public abstract FieldAccessor CreateLiteralFieldAccessor(object value, RuntimeTypeHandle fieldTypeHandle); 80public abstract void GetEnumInfo(RuntimeTypeHandle typeHandle, out string[] names, out object[] values, out bool isFlags); 84public abstract IntPtr GetStaticClassConstructionContext(RuntimeTypeHandle typeHandle); 105RuntimeTypeHandle typeDefinitionHandle = declaringType.TypeHandle; 106RuntimeTypeHandle[] genericMethodTypeArgumentHandles = new RuntimeTypeHandle[genericMethodTypeArguments.Length];
Internal\Reflection\Core\Execution\MethodBaseInvoker.cs (2)
47public abstract Delegate CreateDelegate(RuntimeTypeHandle delegateType, object target, bool isStatic, bool isVirtual, bool isOpen); 54protected static void ValidateThis(object thisObject, RuntimeTypeHandle declaringTypeHandle)
Internal\Runtime\Augments\RuntimeAugments.cs (74)
69public static object RawNewObject(RuntimeTypeHandle typeHandle) 91public static Array NewArray(RuntimeTypeHandle typeHandleForArrayType, int count) 113public static unsafe Array NewMultiDimArray(RuntimeTypeHandle typeHandleForArrayType, int[] lengths, int[]? lowerBounds) 169public static IntPtr GetAllocateObjectHelperForType(RuntimeTypeHandle type) 182public static Delegate CreateDelegate(RuntimeTypeHandle typeHandleForDelegate, IntPtr ldftnResult, object thisObject, bool isStatic, bool isOpen) 190public static IntPtr GetDelegateLdFtnResult(Delegate d, out RuntimeTypeHandle typeOfFirstParameterIfInstanceDelegate, out bool isOpenResolver) 217public static IntPtr GetPointerFromTypeHandle(RuntimeTypeHandle typeHandle) 222public static unsafe TypeManagerHandle GetModuleFromTypeHandle(RuntimeTypeHandle typeHandle) 227public static unsafe RuntimeTypeHandle CreateRuntimeTypeHandle(IntPtr ldTokenResult) 232public static unsafe void StoreValueTypeField(IntPtr address, object fieldValue, RuntimeTypeHandle fieldType) 237public static unsafe object LoadValueTypeField(IntPtr address, RuntimeTypeHandle fieldType) 242public static unsafe object LoadPointerTypeField(IntPtr address, RuntimeTypeHandle fieldType) 250public static unsafe void StoreValueTypeField(object obj, int fieldOffset, object fieldValue, RuntimeTypeHandle fieldType) 256public static unsafe object LoadValueTypeField(object obj, int fieldOffset, RuntimeTypeHandle fieldType) 262public static unsafe object LoadPointerTypeField(object obj, int fieldOffset, RuntimeTypeHandle fieldType) 295public static void StoreValueTypeFieldValueIntoValueType(TypedReference typedReference, int fieldOffset, object fieldValue, RuntimeTypeHandle fieldTypeHandle) 303public static object LoadValueTypeFieldValueFromValueType(TypedReference typedReference, int fieldOffset, RuntimeTypeHandle fieldTypeHandle) 328public static unsafe object LoadPointerTypeFieldValueFromValueType(TypedReference typedReference, int fieldOffset, RuntimeTypeHandle fieldTypeHandle) 358public static Type GetEnumUnderlyingType(RuntimeTypeHandle enumTypeHandle) 390public static RuntimeTypeHandle GetRelatedParameterTypeHandle(RuntimeTypeHandle parameterTypeHandle) 396public static unsafe int GetArrayRankOrMinusOneForSzArray(RuntimeTypeHandle arrayHandle) 402public static bool IsValueType(RuntimeTypeHandle type) 407public static bool IsInterface(RuntimeTypeHandle type) 412public static unsafe object Box(RuntimeTypeHandle type, IntPtr address) 425public static RuntimeTypeHandle ProjectionTypeForArrays 436public static bool IsAssignableFrom(RuntimeTypeHandle dstType, RuntimeTypeHandle srcType) 450public static bool TryGetBaseType(RuntimeTypeHandle typeHandle, out RuntimeTypeHandle baseTypeHandle) 455baseTypeHandle = default(RuntimeTypeHandle); 462public static int GetGCDescSize(RuntimeTypeHandle typeHandle) 467public static int GetInterfaceCount(RuntimeTypeHandle typeHandle) 472public static RuntimeTypeHandle GetInterface(RuntimeTypeHandle typeHandle, int index) 478public static RuntimeTypeHandle GetCanonType() 484public static RuntimeTypeHandle GetGenericDefinition(RuntimeTypeHandle typeHandle) 491public static RuntimeTypeHandle GetGenericArgument(RuntimeTypeHandle typeHandle, int argumentIndex) 498public static RuntimeTypeHandle GetGenericInstantiation(RuntimeTypeHandle typeHandle, out RuntimeTypeHandle[] genericTypeArgumentHandles) 505genericTypeArgumentHandles = new RuntimeTypeHandle[eeType->GenericArity]; 514public static bool IsGenericType(RuntimeTypeHandle typeHandle) 519public static bool IsArrayType(RuntimeTypeHandle typeHandle) 524public static bool IsByRefLike(RuntimeTypeHandle typeHandle) => typeHandle.ToMethodTable()->IsByRefLike; 526public static bool IsDynamicType(RuntimeTypeHandle typeHandle) 531public static unsafe IntPtr ResolveStaticDispatchOnType(RuntimeTypeHandle instanceType, RuntimeTypeHandle interfaceType, int slot, out RuntimeTypeHandle genericContext) 542public static unsafe IntPtr ResolveDispatchOnType(RuntimeTypeHandle instanceType, RuntimeTypeHandle interfaceType, int slot) 547public static bool IsUnmanagedPointerType(RuntimeTypeHandle typeHandle) 552public static bool IsFunctionPointerType(RuntimeTypeHandle typeHandle) 557public static unsafe RuntimeTypeHandle GetFunctionPointerReturnType(RuntimeTypeHandle typeHandle) 562public static unsafe int GetFunctionPointerParameterCount(RuntimeTypeHandle typeHandle) 567public static unsafe RuntimeTypeHandle GetFunctionPointerParameterType(RuntimeTypeHandle typeHandle, int argumentIndex) 573public static unsafe RuntimeTypeHandle[] GetFunctionPointerParameterTypes(RuntimeTypeHandle typeHandle) 577return Array.Empty<RuntimeTypeHandle>(); 579RuntimeTypeHandle[] result = new RuntimeTypeHandle[paramCount]; 589public static unsafe bool IsUnmanagedFunctionPointerType(RuntimeTypeHandle typeHandle) 594public static bool IsByRefType(RuntimeTypeHandle typeHandle) 599public static bool IsGenericTypeDefinition(RuntimeTypeHandle typeHandle) 604public static object CheckArgument(object srcObject, RuntimeTypeHandle dstType, BinderBundle? binderBundle) 611public static object CheckArgumentForDirectFieldAccess(object srcObject, RuntimeTypeHandle dstType) 616public static bool IsAssignable(object srcObject, RuntimeTypeHandle dstType) 625public static bool IsNullable(RuntimeTypeHandle declaringTypeHandle) 630public static RuntimeTypeHandle GetNullableType(RuntimeTypeHandle nullableType)
Internal\Runtime\Augments\TypeLoaderCallbacks.cs (14)
17public abstract bool TryGetOwningTypeForMethodDictionary(IntPtr dictionary, out RuntimeTypeHandle owningType); 19public abstract bool TryGetConstructedGenericTypeForComponents(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles, out RuntimeTypeHandle runtimeTypeHandle); 22public abstract RuntimeMethodHandle GetRuntimeMethodHandleForComponents(RuntimeTypeHandle declaringTypeHandle, MethodHandle handle, RuntimeTypeHandle[] genericMethodArgs); 23public abstract IntPtr TryGetDefaultConstructorForType(RuntimeTypeHandle runtimeTypeHandle); 24public abstract IntPtr ResolveGenericVirtualMethodTarget(RuntimeTypeHandle targetTypeHandle, RuntimeMethodHandle declMethod); 25public abstract RuntimeFieldHandle GetRuntimeFieldHandleForComponents(RuntimeTypeHandle declaringTypeHandle, FieldHandle handle); 26public abstract bool TryGetPointerTypeForTargetType(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle pointerTypeHandle); 27public abstract bool TryGetArrayTypeForElementType(RuntimeTypeHandle elementTypeHandle, bool isMdArray, int rank, out RuntimeTypeHandle arrayTypeHandle); 31public abstract IntPtr ConvertUnboxingFunctionPointerToUnderlyingNonUnboxingPointer(IntPtr unboxingFunctionPointer, RuntimeTypeHandle declaringType);
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (6)
607public static unsafe object InitializeCustomMarshaller(RuntimeTypeHandle pParameterType, RuntimeTypeHandle pMarshallerType, string cookie, delegate*<string, object> getInstanceMethod) 662public CustomMarshallerKey(RuntimeTypeHandle pParameterType, RuntimeTypeHandle pMarshallerType, string cookie, delegate*<string, object> getInstanceMethod) 670public RuntimeTypeHandle ParameterType { get; } 671public RuntimeTypeHandle MarshallerType { get; }
Internal\Runtime\CompilerHelpers\ReflectionHelpers.cs (2)
31public static Assembly GetExecutingAssembly(RuntimeTypeHandle typeHandle) 43public static MethodBase GetCurrentMethodGeneric(RuntimeMethodHandle methodHandle, RuntimeTypeHandle typeHandle)
Internal\Runtime\CompilerHelpers\RuntimeInteropData.cs (12)
17public static uint GetStructFieldOffset(RuntimeTypeHandle structureTypeHandle, string fieldName) 53public static unsafe int GetStructUnsafeStructSize(RuntimeTypeHandle structureTypeHandle) 87public static IntPtr GetStructUnmarshalStub(RuntimeTypeHandle structureTypeHandle) 93public static IntPtr GetStructMarshalStub(RuntimeTypeHandle structureTypeHandle) 99public static IntPtr GetDestroyStructureStub(RuntimeTypeHandle structureTypeHandle) 105public static IntPtr GetForwardDelegateCreationStub(RuntimeTypeHandle delegateTypeHandle) 113public static IntPtr GetDelegateMarshallingStub(RuntimeTypeHandle delegateTypeHandle, bool openStaticDelegate) 137private static unsafe bool GetMarshallersForDelegate(RuntimeTypeHandle delegateTypeHandle, out IntPtr openStub, out IntPtr closedStub, out IntPtr delegateCreationStub) 159RuntimeTypeHandle foundDelegateType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 173private static unsafe bool TryGetStructData(RuntimeTypeHandle structTypeHandle, out ExternalReferencesTable externalReferences, out NativeParser entryParser) 191RuntimeTypeHandle foundStructType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 202private static unsafe void GetMarshallersForStruct(RuntimeTypeHandle structTypeHandle, out IntPtr marshalStub, out IntPtr unmarshalStub, out IntPtr destroyStub)
Internal\Runtime\CompilerHelpers\SharedCodeHelpers.cs (1)
31bool success = RuntimeAugments.TypeLoaderCallbacks.TryGetOwningTypeForMethodDictionary(pDictionary, out RuntimeTypeHandle th);
Internal\Runtime\CompilerHelpers\StartupCode\StartupCodeHelpers.Reflection.cs (2)
12private static RuntimeTypeHandle s_entryAssemblyType; 14internal static void InitializeEntryAssembly(RuntimeTypeHandle entryAssemblyType)
Internal\Runtime\CompilerServices\OpenMethodResolver.cs (5)
37public OpenMethodResolver(RuntimeTypeHandle declaringTypeOfSlot, int slot, GCHandle readerGCHandle, int handle) 47public OpenMethodResolver(RuntimeTypeHandle declaringTypeOfSlot, RuntimeMethodHandle gvmSlot, GCHandle readerGCHandle, int handle) 60public OpenMethodResolver(RuntimeTypeHandle declaringType, IntPtr codePointer, GCHandle readerGCHandle, int handle, short resolveType) 83public RuntimeTypeHandle DeclaringType 170public static IntPtr ResolveMethod(IntPtr resolverPtr, RuntimeTypeHandle thisType)
src\runtime\src\coreclr\nativeaot\Common\src\Internal\Runtime\TypeLoader\ExternalReferencesTable.cs (1)
60public RuntimeTypeHandle GetRuntimeTypeHandleFromIndex(uint index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2252private static object InternalBoxEnum(RuntimeTypeHandle type, long value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
343public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_NonReflectedType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
105public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
92public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_ModifiedType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
209public sealed override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
53public override RuntimeTypeHandle TypeHandle => typeImpl.TypeHandle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\IDynamicInterfaceCastable.cs (4)
32bool IsInterfaceImplemented(RuntimeTypeHandle interfaceType, bool throwIfNotImplemented); 48RuntimeTypeHandle GetInterfaceImplementation(RuntimeTypeHandle interfaceType); 52/// Attribute required by any type that is returned by <see cref="IDynamicInterfaceCastable.GetInterfaceImplementation(RuntimeTypeHandle)"/>.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (2)
467public virtual RuntimeTypeHandle TypeHandle 473public static RuntimeTypeHandle GetTypeHandle(object o)
System\ActivatorImplementation.cs (2)
35RuntimeTypeHandle typeHandle = type.TypeHandle; 88RuntimeTypeHandle typeHandle = type.TypeHandle;
System\ArgIterator.cs (2)
45public System.TypedReference GetNextArg(System.RuntimeTypeHandle rth) 50public unsafe System.RuntimeTypeHandle GetNextArgType()
System\Array.NativeAot.cs (1)
111RuntimeTypeHandle arrayTypeHandle = arrayType.IsSZArray
System\Delegate.cs (4)
88internal unsafe IntPtr GetDelegateLdFtnResult(out RuntimeTypeHandle typeOfFirstParameterIfInstanceDelegate, out bool isOpenResolver) 90typeOfFirstParameterIfInstanceDelegate = default(RuntimeTypeHandle); 295IntPtr ldftnResult = GetDelegateLdFtnResult(out RuntimeTypeHandle _, out bool isOpenResolver); 387RuntimeTypeHandle typeHandle = t.TypeHandle;
System\ModuleHandle.cs (9)
55public RuntimeTypeHandle GetRuntimeTypeHandleFromMetadataToken(int typeToken) 85public RuntimeFieldHandle ResolveFieldHandle(int fieldToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) 97public RuntimeMethodHandle ResolveMethodHandle(int methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) 103public RuntimeTypeHandle ResolveTypeHandle(int typeToken) 109public RuntimeTypeHandle ResolveTypeHandle(int typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
System\Reflection\Emit\DynamicILInfo.cs (3)
40public int GetTokenFor(RuntimeMethodHandle method, RuntimeTypeHandle contextType) 48public int GetTokenFor(RuntimeFieldHandle field, RuntimeTypeHandle contextType) 52public int GetTokenFor(RuntimeTypeHandle type)
System\Reflection\FieldInfo.NativeAot.cs (1)
11public static FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle, RuntimeTypeHandle declaringType) => ReflectionAugments.GetFieldFromHandle(handle, declaringType);
System\Reflection\MethodBase.NativeAot.cs (1)
13public static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle, RuntimeTypeHandle declaringType) => ReflectionAugments.GetMethodFromHandle(handle, declaringType);
System\Reflection\Runtime\Assemblies\NativeFormat\NativeFormatRuntimeAssembly.cs (1)
81NativeFormatRuntimeNamedTypeInfo containingType = NativeFormatRuntimeNamedTypeInfo.GetRuntimeNamedTypeInfo(reader, declaringTypeHandle, default(RuntimeTypeHandle));
System\Reflection\Runtime\CustomAttributes\NativeFormat\NativeFormatCustomAttributeData.cs (1)
63NativeFormatRuntimeNamedTypeInfo attributeType = NativeFormatRuntimeNamedTypeInfo.GetRuntimeNamedTypeInfo(reader, declaringType, default(RuntimeTypeHandle));
System\Reflection\Runtime\General\Helpers.cs (2)
27public static bool IsNull(this RuntimeTypeHandle h) 29return h.Equals(default(RuntimeTypeHandle));
System\Reflection\Runtime\General\TypeUnifier.cs (46)
75public static RuntimeTypeInfo GetRuntimeTypeInfoForRuntimeTypeHandle(this RuntimeTypeHandle typeHandle) 94internal static RuntimeArrayTypeInfo GetArrayTypeInfo(RuntimeTypeInfo elementType, bool multiDim, int rank, RuntimeTypeHandle precomputedTypeHandle) 108private static RuntimeTypeHandle GetRuntimeTypeHandleIfAny(RuntimeTypeInfo elementType, bool multiDim, int rank) 112RuntimeTypeHandle elementTypeHandle = elementType.InternalTypeHandleIfAvailable; 114return default(RuntimeTypeHandle); 124RuntimeTypeHandle typeHandle; 128return default(RuntimeTypeHandle); 133return default(RuntimeTypeHandle); 201internal static RuntimeByRefTypeInfo GetByRefTypeInfo(RuntimeTypeInfo elementType, RuntimeTypeHandle precomputedTypeHandle) 208private static RuntimeTypeHandle GetRuntimeTypeHandleIfAny(RuntimeTypeInfo elementType) 210RuntimeTypeHandle elementTypeHandle = elementType.InternalTypeHandleIfAvailable; 212return default(RuntimeTypeHandle); 214RuntimeTypeHandle typeHandle; 216return default(RuntimeTypeHandle); 245internal static RuntimePointerTypeInfo GetPointerTypeInfo(RuntimeTypeInfo elementType, RuntimeTypeHandle precomputedTypeHandle) 252private static RuntimeTypeHandle GetRuntimeTypeHandleIfAny(RuntimeTypeInfo elementType) 254RuntimeTypeHandle elementTypeHandle = elementType.InternalTypeHandleIfAvailable; 256return default(RuntimeTypeHandle); 258RuntimeTypeHandle typeHandle; 260return default(RuntimeTypeHandle); 286RuntimeTypeHandle precomputedTypeHandle = GetRuntimeTypeHandleIfAny(returnType, parameterTypes, isUnmanaged); 290internal static RuntimeFunctionPointerTypeInfo GetFunctionPointerTypeInfo(RuntimeTypeInfo returnType, RuntimeTypeInfo[] parameterTypes, bool isUnmanaged, RuntimeTypeHandle precomputedTypeHandle) 298private static RuntimeTypeHandle GetRuntimeTypeHandleIfAny(RuntimeTypeInfo returnType, RuntimeTypeInfo[] parameterTypes, bool isUnmanaged) 300RuntimeTypeHandle returnTypeHandle = returnType.InternalTypeHandleIfAvailable; 302return default(RuntimeTypeHandle); 305RuntimeTypeHandle[] parameterTypeHandles = new RuntimeTypeHandle[count]; 308RuntimeTypeHandle parameterHandle = parameterTypes[i].InternalTypeHandleIfAvailable; 310return default(RuntimeTypeHandle); 314if (ReflectionCoreExecution.ExecutionEnvironment.TryGetFunctionPointerTypeForComponents(returnTypeHandle, parameterTypeHandles, isUnmanaged, out RuntimeTypeHandle typeHandle)) 317return default(RuntimeTypeHandle); 340RuntimeTypeHandle precomputedTypeHandle = GetRuntimeTypeHandleIfAny(genericTypeDefinition, genericTypeArguments, del); 348RuntimeTypeHandle precomputedTypeHandle = GetRuntimeTypeHandleIfAny(genericTypeDefinition, genericTypeArguments, del); 352internal static RuntimeConstructedGenericTypeInfo GetRuntimeConstructedGenericTypeInfo(RuntimeTypeInfo genericTypeDefinition, RuntimeTypeInfo[] genericTypeArguments, RuntimeTypeHandle precomputedTypeHandle) 360private delegate bool TryGetConstructedGenericTypeDelegate(RuntimeTypeHandle genericDefinition, RuntimeTypeHandle[] genericArguments, out RuntimeTypeHandle result); 362private static RuntimeTypeHandle GetRuntimeTypeHandleIfAny(RuntimeTypeInfo genericTypeDefinition, RuntimeTypeInfo[] genericTypeArguments, TryGetConstructedGenericTypeDelegate constructor) 364RuntimeTypeHandle genericTypeDefinitionHandle = genericTypeDefinition.InternalTypeHandleIfAvailable; 366return default(RuntimeTypeHandle); 369RuntimeTypeHandle[] genericTypeArgumentHandles = new RuntimeTypeHandle[count]; 372RuntimeTypeHandle genericTypeArgumentHandle = genericTypeArguments[i].InternalTypeHandleIfAvailable; 374return default(RuntimeTypeHandle); 378RuntimeTypeHandle typeHandle; 380return default(RuntimeTypeHandle);
System\Reflection\Runtime\General\TypeUnifier.NativeFormat.cs (5)
46return typeDefinitionHandle.GetNamedType(reader, default(RuntimeTypeHandle)); 55public static RuntimeTypeDefinitionTypeInfo GetNamedType(this TypeDefinitionHandle typeDefinitionHandle, MetadataReader reader, RuntimeTypeHandle precomputedTypeHandle) 69internal static NativeFormatRuntimeNamedTypeInfo GetRuntimeNamedTypeInfo(MetadataReader metadataReader, TypeDefinitionHandle typeDefHandle, RuntimeTypeHandle precomputedTypeHandle) 71RuntimeTypeHandle typeHandle = precomputedTypeHandle; 75typeHandle = default(RuntimeTypeHandle);
System\Reflection\Runtime\MethodInfos\CustomMethodInvoker.cs (1)
81public sealed override Delegate CreateDelegate(RuntimeTypeHandle delegateType, object target, bool isStatic, bool isVirtual, bool isOpen)
System\Reflection\Runtime\MethodInfos\NativeFormat\NativeFormatMethodCommon.cs (2)
192RuntimeTypeHandle[]? genericArgHandles; 195genericArgHandles = new RuntimeTypeHandle[genericArgs.Length];
System\Reflection\Runtime\MethodInfos\OpenMethodInvoker.cs (1)
47public sealed override Delegate CreateDelegate(RuntimeTypeHandle delegateType, object target, bool isStatic, bool isVirtual, bool isOpen)
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeNamedTypeInfo.cs (2)
18private NativeFormatRuntimeNamedTypeInfo(MetadataReader reader, TypeDefinitionHandle typeDefinitionHandle, RuntimeTypeHandle typeHandle) : 46RuntimeTypeHandle typeHandle = InternalTypeHandleIfAvailable;
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeNamedTypeInfo.UnificationKey.cs (2)
30public UnificationKey(MetadataReader reader, TypeDefinitionHandle typeDefinitionHandle, RuntimeTypeHandle typeHandle) 39public RuntimeTypeHandle TypeHandle { get; }
System\Reflection\Runtime\TypeInfos\RuntimeArrayTypeInfo.cs (1)
299RuntimeTypeHandle projectionTypeHandleForArrays = RuntimeAugments.ProjectionTypeForArrays;
System\Reflection\Runtime\TypeInfos\RuntimeConstructedGenericTypeInfo.cs (1)
229internal sealed override RuntimeTypeHandle InternalTypeHandleIfAvailable
System\Reflection\Runtime\TypeInfos\RuntimeConstructedGenericTypeInfo.UnificationKey.cs (2)
28public UnificationKey(RuntimeTypeInfo genericTypeDefinition, RuntimeTypeInfo[] genericTypeArguments, RuntimeTypeHandle typeHandle) 37public RuntimeTypeHandle TypeHandle { get; }
System\Reflection\Runtime\TypeInfos\RuntimeFunctionPointerTypeInfo.cs (1)
110internal override RuntimeTypeHandle InternalTypeHandleIfAvailable => _key.TypeHandle;
System\Reflection\Runtime\TypeInfos\RuntimeFunctionPointerTypeInfo.UnificationKey.cs (2)
28public UnificationKey(RuntimeTypeInfo returnType, RuntimeTypeInfo[] parameterTypes, bool isUnmanaged, RuntimeTypeHandle typeHandle) 39public RuntimeTypeHandle TypeHandle { get; }
System\Reflection\Runtime\TypeInfos\RuntimeGenericParameterTypeInfo.cs (2)
112internal sealed override RuntimeTypeHandle InternalTypeHandleIfAvailable 116return default(RuntimeTypeHandle);
System\Reflection\Runtime\TypeInfos\RuntimeHasElementTypeInfo.cs (1)
163internal sealed override RuntimeTypeHandle InternalTypeHandleIfAvailable
System\Reflection\Runtime\TypeInfos\RuntimeHasElementTypeInfo.UnificationKey.cs (2)
28public UnificationKey(RuntimeTypeInfo elementType, RuntimeTypeHandle typeHandle) 35public RuntimeTypeHandle TypeHandle { get; }
System\Reflection\Runtime\TypeInfos\RuntimeNamedTypeInfo.cs (3)
21protected RuntimeNamedTypeInfo(RuntimeTypeHandle typeHandle) 179internal sealed override RuntimeTypeHandle InternalTypeHandleIfAvailable 204private readonly RuntimeTypeHandle _typeHandle;
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.cs (13)
82RuntimeTypeHandle typeHandle = InternalTypeHandleIfAvailable; 85RuntimeTypeHandle baseTypeHandle; 197RuntimeTypeHandle typeHandle = TypeHandle; 198RuntimeTypeHandle interfaceTypeHandle = interfaceType.TypeHandle; 262RuntimeTypeHandle typeHandle = InternalTypeHandleIfAvailable; 310RuntimeTypeHandle toTypeHandle = toTypeInfo.InternalTypeHandleIfAvailable; 311RuntimeTypeHandle fromTypeHandle = fromTypeInfo.InternalTypeHandleIfAvailable; 520public RuntimeTypeHandle TypeHandle 524RuntimeTypeHandle typeHandle = InternalTypeHandleIfAvailable; 613internal abstract RuntimeTypeHandle InternalTypeHandleIfAvailable { get; } 622RuntimeTypeHandle runtimeTypeHandle = InternalTypeHandleIfAvailable; 799RuntimeTypeHandle typeHandle = thisType.InternalTypeHandleIfAvailable; 802RuntimeTypeHandle baseTypeHandle;
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (4)
32public static void RunClassConstructor(RuntimeTypeHandle type) 222public static void PrepareMethod(RuntimeMethodHandle method, RuntimeTypeHandle[] instantiation) 369public static unsafe object? Box(ref byte target, RuntimeTypeHandle type) 401public static unsafe int SizeOf(RuntimeTypeHandle type)
System\Runtime\InteropServices\IDynamicInterfaceCastable.cs (1)
23RuntimeTypeHandle handle = instance.GetInterfaceImplementation(new RuntimeTypeHandle(interfaceType));
System\Runtime\InteropServices\Marshal.NativeAot.cs (3)
66RuntimeTypeHandle structureTypeHandle = new RuntimeTypeHandle(structureMT); 95RuntimeTypeHandle structureTypeHandle = structuretype.TypeHandle; 123RuntimeTypeHandle structureTypeHandle = new RuntimeTypeHandle(structureMT);
System\Runtime\InteropServices\PInvokeMarshal.cs (1)
195public static unsafe Delegate? GetDelegateForFunctionPointer(IntPtr ptr, RuntimeTypeHandle delegateType)
System\Runtime\InteropServices\TypeMapLazyDictionary.NativeAot.cs (8)
23RuntimeTypeHandle typeMapGroupHandle = typeMapGroup.TypeHandle; 40RuntimeTypeHandle foundTypeMapGroup = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 66RuntimeTypeHandle typeMapGroupHandle = typeMapGroup.TypeHandle; 83RuntimeTypeHandle foundTypeMapGroup = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 158RuntimeTypeHandle typeHandle = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 184RuntimeTypeHandle handle = key.TypeHandle; 195RuntimeTypeHandle foundHandle = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 198RuntimeTypeHandle targetHandle = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned());
System\RuntimeFieldHandle.cs (1)
91public RuntimeTypeHandle DeclaringType;
System\RuntimeMethodHandle.cs (4)
55RuntimeTypeHandle* thisFirstArg = &thisInfo->FirstArgument; 56RuntimeTypeHandle* thatFirstArg = &thatInfo->FirstArgument; 124public RuntimeTypeHandle DeclaringType; 127public RuntimeTypeHandle FirstArgument;
System\RuntimeType.NativeAot.cs (1)
218public override RuntimeTypeHandle TypeHandle
System\RuntimeTypeHandle.cs (18)
17public unsafe struct RuntimeTypeHandle : IEquatable<RuntimeTypeHandle>, ISerializable 29if (obj is RuntimeTypeHandle handle) 45public bool Equals(RuntimeTypeHandle handle) 50public static RuntimeTypeHandle FromIntPtr(IntPtr value) => new RuntimeTypeHandle(value); 52public static IntPtr ToIntPtr(RuntimeTypeHandle value) => value.Value; 54public static bool operator ==(object? left, RuntimeTypeHandle right) 56if (left is RuntimeTypeHandle) 57return right.Equals((RuntimeTypeHandle)left); 61public static bool operator ==(RuntimeTypeHandle left, object? right) 63if (right is RuntimeTypeHandle) 64return left.Equals((RuntimeTypeHandle)right); 68public static bool operator !=(object? left, RuntimeTypeHandle right) 70if (left is RuntimeTypeHandle) 71return !right.Equals((RuntimeTypeHandle)left); 75public static bool operator !=(RuntimeTypeHandle left, object? right) 77if (right is RuntimeTypeHandle) 78return !left.Equals((RuntimeTypeHandle)right); 115internal static unsafe RuntimeTypeHandle GetRuntimeTypeHandleFromMethodTable(MethodTable* pMT)
System\Type.NativeAot.cs (1)
23public static unsafe Type? GetTypeFromHandle(RuntimeTypeHandle handle) => handle.IsNull ? null : GetTypeFromMethodTable(handle.ToMethodTable());
System\TypedReference.cs (5)
21private readonly RuntimeTypeHandle _typeHandle; 23private TypedReference(object target, int offset, RuntimeTypeHandle typeHandle) 39public static RuntimeTypeHandle TargetTypeToken(TypedReference value) 48RuntimeTypeHandle handle = value._typeHandle; 79internal static ref byte GetRefAny(RuntimeTypeHandle type, TypedReference value)
System.Private.DataContractSerialization (57)
System\Runtime\Serialization\DataContract.cs (14)
68internal static DataContract GetDataContract(RuntimeTypeHandle typeHandle) 77internal static DataContract GetDataContract(int id, RuntimeTypeHandle typeHandle) 85internal static DataContract GetDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type? type) 92internal static DataContract GetGetOnlyCollectionDataContract(int id, RuntimeTypeHandle typeHandle, Type? type) 105internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type? type) 120internal static int GetId(RuntimeTypeHandle typeHandle) 353internal static DataContract GetDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type? type) 369internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type? type) 408internal static int GetId(RuntimeTypeHandle typeHandle) 445private static DataContract CreateDataContract(int id, RuntimeTypeHandle typeHandle, Type? type) 525private static DataContract CreateGetOnlyCollectionDataContract(int id, RuntimeTypeHandle typeHandle, Type? type) 580private static RuntimeTypeHandle GetDataContractAdapterTypeHandle(RuntimeTypeHandle typeHandle) 958RuntimeTypeHandle runtimeTypeHandle = GetDataContractAdapterTypeHandle(type.TypeHandle);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
422internal static void WriteJsonValue(JsonDataContract contract, XmlWriterDelegator writer, object graph, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
106public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
System\Runtime\Serialization\Json\JsonCollectionDataContract.cs (1)
151public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
System\Runtime\Serialization\Json\JsonDataContract.cs (3)
96public void WriteJsonValue(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle) 105public virtual void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle) 189internal static int GetId(RuntimeTypeHandle typeHandle)
System\Runtime\Serialization\Json\JsonEnumDataContract.cs (1)
43public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (3)
704LocalBuilder typeHandleValue = _ilg.DeclareLocal(typeof(RuntimeTypeHandle)); 710_ilg.Call(typeof(RuntimeTypeHandle).GetMethod("Equals", new Type[] { typeof(RuntimeTypeHandle) })!);
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (1)
61public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
50public override void WriteJsonValueCore(XmlWriterDelegator jsonWriter, object obj, XmlObjectSerializerWriteContextComplexJson? context, RuntimeTypeHandle declaredTypeHandle)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (3)
264internal override DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type? type) 273internal override DataContract GetDataContractSkipValidation(int typeId, RuntimeTypeHandle typeHandle, Type? type) 282internal override DataContract GetDataContract(int id, RuntimeTypeHandle typeHandle)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (7)
150protected override void WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle declaredTypeHandle) 173protected override void SerializeWithXsiType(XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle objectTypeHandle, Type? objectType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType) 242internal override void SerializeWithXsiTypeAtTopLevel(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle originalDeclaredTypeHandle, Type graphType) 369internal override DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type? type) 378internal override DataContract GetDataContractSkipValidation(int typeId, RuntimeTypeHandle typeHandle, Type? type) 387internal override DataContract GetDataContract(int id, RuntimeTypeHandle typeHandle)
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
359s_internalDeserializeMethod = typeof(XmlObjectSerializerReadContext).GetMethod("InternalDeserialize", Globals.ScanAllMembers, new Type[] { typeof(XmlReaderDelegator), typeof(int), typeof(RuntimeTypeHandle), typeof(string), typeof(string) });
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (3)
717LocalBuilder typeHandleValue = _ilg.DeclareLocal(typeof(RuntimeTypeHandle)); 722_ilg.Call(typeof(RuntimeTypeHandle).GetMethod("Equals", new Type[] { typeof(RuntimeTypeHandle) })!);
System\Runtime\Serialization\XmlObjectSerializerContext.cs (3)
107internal virtual DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type? type) 121internal virtual DataContract GetDataContractSkipValidation(int typeId, RuntimeTypeHandle typeHandle, Type? type) 135internal virtual DataContract GetDataContract(int id, RuntimeTypeHandle typeHandle)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
87internal virtual object? InternalDeserialize(XmlReaderDelegator xmlReader, int id, RuntimeTypeHandle declaredTypeHandle, string name, string ns)
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (1)
37internal override object? InternalDeserialize(XmlReaderDelegator xmlReader, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle, string name, string ns)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (9)
85internal void InternalSerializeReference(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle) 94internal virtual void InternalSerialize(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle) 108RuntimeTypeHandle objTypeHandle = obj.GetType().TypeHandle; 125internal void SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle declaredTypeHandle) 143internal virtual void SerializeWithXsiTypeAtTopLevel(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle originalDeclaredTypeHandle, Type graphType) 166protected virtual void SerializeWithXsiType(XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle objectTypeHandle, Type? objectType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType) 231protected void SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, bool verifyKnownType, RuntimeTypeHandle declaredTypeHandle, Type declaredType) 576protected virtual void WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle declaredTypeHandle)
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (3)
147internal override void InternalSerialize(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle) 227private void InternalSerializeWithSurrogate(XmlWriterDelegator xmlWriter, object obj, bool isDeclaredType, bool writeXsiType, RuntimeTypeHandle declaredTypeHandle) 229RuntimeTypeHandle objTypeHandle = isDeclaredType ? declaredTypeHandle : obj.GetType().TypeHandle;
System.Private.Reflection.Execution (97)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.MappingTables.cs (56)
37private static RuntimeTypeHandle GetTypeDefinition(RuntimeTypeHandle typeHandle) 68public sealed override QTypeDefinition GetMetadataForNamedType(RuntimeTypeHandle runtimeTypeHandle) 92public sealed override unsafe bool TryGetNamedTypeForMetadata(QTypeDefinition qTypeDefinition, out RuntimeTypeHandle runtimeTypeHandle) 106public sealed override unsafe bool TryGetArrayTypeForElementType(RuntimeTypeHandle elementTypeHandle, out RuntimeTypeHandle arrayTypeHandle) 110arrayTypeHandle = default(RuntimeTypeHandle); 128public sealed override unsafe bool TryGetMultiDimArrayTypeForElementType(RuntimeTypeHandle elementTypeHandle, int rank, out RuntimeTypeHandle arrayTypeHandle) 132arrayTypeHandle = default(RuntimeTypeHandle); 151public sealed override unsafe bool TryGetPointerTypeForTargetType(RuntimeTypeHandle targetTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 156public override bool TryGetFunctionPointerTypeForComponents(RuntimeTypeHandle returnTypeHandle, RuntimeTypeHandle[] parameterHandles, bool isUnmanaged, out RuntimeTypeHandle functionPointerTypeHandle) 168public sealed override unsafe bool TryGetByRefTypeForTargetType(RuntimeTypeHandle targetTypeHandle, out RuntimeTypeHandle byRefTypeHandle) 181public sealed override unsafe bool TryGetConstructedGenericTypeForComponents(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles, out RuntimeTypeHandle runtimeTypeHandle) 216public sealed override unsafe bool TryGetConstructedGenericTypeForComponentsNoConstraintCheck(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles, out RuntimeTypeHandle runtimeTypeHandle) 226public sealed override MethodBaseInvoker TryGetMethodInvokerNoConstraintCheck(RuntimeTypeHandle declaringTypeHandle, QMethodDefinition methodHandle, RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 250private static RuntimeTypeHandle[] GetTypeSequence(ref ExternalReferencesTable extRefs, ref NativeParser parser) 253RuntimeTypeHandle[] result = new RuntimeTypeHandle[count]; 261private static IntPtr TryGetVirtualResolveData(RuntimeTypeHandle methodHandleDeclaringType, QMethodDefinition methodHandle, RuntimeTypeHandle[] genericArgs) 292RuntimeTypeHandle declaringTypeHandle, 294RuntimeTypeHandle[] genericMethodTypeArgumentHandles, 339private static RuntimeTypeHandle GetExactDeclaringType(RuntimeTypeHandle dstType, RuntimeTypeHandle srcType) 354RuntimeTypeHandle dstTypeDef = GetTypeDefinition(dstType); 365RuntimeTypeHandle srcTypeDef = GetTypeDefinition(srcType); 383return default(RuntimeTypeHandle); 486internal bool TryGetMethodForOriginalLdFtnResult(IntPtr originalLdFtnResult, ref RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 519internal bool TryGetMethodForStartAddress(IntPtr methodStartAddress, ref RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle) 578RuntimeTypeHandle declaringTypeHandle = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 611private unsafe bool TryGetMethodForOriginalLdFtnResult_InvokeMap_Inner(NativeFormatModuleInfo mappingTableModule, bool forStartAddress, IntPtr canonOriginalLdFtnResult, IntPtr instantiationArgument, uint parserOffset, ref RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 680RuntimeTypeHandle entryType = externalReferences.GetRuntimeTypeHandleFromIndex(entryDeclaringTypeRaw); 684RuntimeTypeHandle declaringTypeHandleDefinition = GetTypeDefinition(declaringTypeHandle); 695private static unsafe bool TryGetMethodForOriginalLdFtnResult_GenericMethodWithInstantiationArgument(IntPtr instantiationArgument, ref RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 715RuntimeTypeHandle declaringTypeHandle, 716RuntimeTypeHandle fieldTypeHandle, 798public sealed override unsafe bool TryGetMethodFromHandle(RuntimeMethodHandle runtimeMethodHandle, out RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 806public sealed override bool TryGetMethodFromHandleAndType(RuntimeMethodHandle runtimeMethodHandle, RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 814public sealed override unsafe bool TryGetFieldFromHandle(RuntimeFieldHandle runtimeFieldHandle, out RuntimeTypeHandle declaringTypeHandle, out FieldHandle fieldHandle) 822public sealed override bool TryGetFieldFromHandleAndType(RuntimeFieldHandle runtimeFieldHandle, RuntimeTypeHandle declaringTypeHandle, out FieldHandle fieldHandle)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.Runtime.cs (4)
66public sealed override FieldAccessor CreateLiteralFieldAccessor(object value, RuntimeTypeHandle fieldTypeHandle) 71public sealed override void GetEnumInfo(RuntimeTypeHandle typeHandle, out string[] names, out object[] values, out bool isFlags) 75RuntimeTypeHandle typeDefHandle = typeHandle; 114public override IntPtr GetStaticClassConstructionContext(RuntimeTypeHandle typeHandle)
Internal\Reflection\Execution\FieldAccessors\InstanceFieldAccessor.cs (4)
14public InstanceFieldAccessor(RuntimeTypeHandle declaringTypeHandle, RuntimeTypeHandle fieldTypeHandle, int offsetPlusHeader) 97protected RuntimeTypeHandle DeclaringTypeHandle { get; } 98protected RuntimeTypeHandle FieldTypeHandle { get; }
Internal\Reflection\Execution\FieldAccessors\LiteralFieldAccessor.cs (1)
11public LiteralFieldAccessor(object value, RuntimeTypeHandle fieldTypeHandle)
Internal\Reflection\Execution\FieldAccessors\PointerTypeFieldAccessorForInstanceFields.cs (2)
13public PointerTypeFieldAccessorForInstanceFields(int offsetPlusHeader, RuntimeTypeHandle declaringTypeHandle, RuntimeTypeHandle fieldTypeHandle)
Internal\Reflection\Execution\FieldAccessors\PointerTypeFieldAccessorForStaticFields.cs (1)
15public PointerTypeFieldAccessorForStaticFields(IntPtr cctorContext, IntPtr staticsBase, int fieldOffset, FieldTableFlags fieldBase, RuntimeTypeHandle fieldTypeHandle)
Internal\Reflection\Execution\FieldAccessors\ReferenceTypeFieldAccessorForInstanceFields.cs (2)
12public ReferenceTypeFieldAccessorForInstanceFields(int offsetPlusHeader, RuntimeTypeHandle declaringTypeHandle, RuntimeTypeHandle fieldTypeHandle)
Internal\Reflection\Execution\FieldAccessors\ReferenceTypeFieldAccessorForStaticFields.cs (1)
15public ReferenceTypeFieldAccessorForStaticFields(IntPtr cctorContext, IntPtr staticsBase, int fieldOffset, FieldTableFlags fieldBase, RuntimeTypeHandle fieldTypeHandle)
Internal\Reflection\Execution\FieldAccessors\RegularStaticFieldAccessor.cs (1)
12protected RegularStaticFieldAccessor(IntPtr cctorContext, IntPtr staticsBase, int fieldOffset, FieldTableFlags fieldBase, RuntimeTypeHandle fieldTypeHandle)
Internal\Reflection\Execution\FieldAccessors\StaticFieldAccessor.cs (2)
15protected RuntimeTypeHandle FieldTypeHandle { get; } 19public StaticFieldAccessor(IntPtr cctorContext, RuntimeTypeHandle fieldTypeHandle)
Internal\Reflection\Execution\FieldAccessors\ValueTypeFieldAccessorForInstanceFields.cs (2)
12public ValueTypeFieldAccessorForInstanceFields(int offsetPlusHeader, RuntimeTypeHandle declaringTypeHandle, RuntimeTypeHandle fieldTypeHandle)
Internal\Reflection\Execution\FieldAccessors\ValueTypeFieldAccessorForStaticFields.cs (1)
15public ValueTypeFieldAccessorForStaticFields(IntPtr cctorContext, IntPtr staticsBase, int fieldOffset, FieldTableFlags fieldBase, RuntimeTypeHandle fieldTypeHandle)
Internal\Reflection\Execution\FieldAccessors\WritableStaticFieldAccessor.cs (1)
13protected WritableStaticFieldAccessor(IntPtr cctorContext, RuntimeTypeHandle fieldTypeHandle)
Internal\Reflection\Execution\MethodInvokers\InstanceMethodInvoker.cs (3)
20public InstanceMethodInvoker(MethodInvokeInfo methodInvokeInfo, RuntimeTypeHandle declaringTypeHandle) 121public sealed override Delegate CreateDelegate(RuntimeTypeHandle delegateType, object target, bool isStatic, bool isVirtual, bool isOpen) 150private RuntimeTypeHandle _declaringTypeHandle;
Internal\Reflection\Execution\MethodInvokers\MethodInvokerWithMethodInvokeInfo.cs (2)
21public override Delegate CreateDelegate(RuntimeTypeHandle delegateType, object target, bool isStatic, bool isVirtual, bool isOpen) 34internal static MethodBaseInvoker CreateMethodInvoker(RuntimeTypeHandle declaringTypeHandle, QMethodDefinition methodHandle, MethodInvokeInfo methodInvokeInfo)
Internal\Reflection\Execution\MethodInvokers\VirtualMethodInvoker.cs (4)
17public VirtualMethodInvoker(MethodInvokeInfo methodInvokeInfo, RuntimeTypeHandle declaringTypeHandle) 23public sealed override Delegate CreateDelegate(RuntimeTypeHandle delegateType, object target, bool isStatic, bool isVirtual, bool isOpen) 130internal IntPtr ResolveTarget(RuntimeTypeHandle type) 152private RuntimeTypeHandle _declaringTypeHandle;
Internal\Reflection\Execution\ReflectionExecution.cs (6)
64RuntimeTypeHandle declaringTypeHandle = default(RuntimeTypeHandle); 86RuntimeTypeHandle declaringTypeHandle = default(RuntimeTypeHandle); 97public static MethodBase GetMethodBaseFromOriginalLdftnResult(IntPtr methodStartAddress, RuntimeTypeHandle declaringTypeHandle) 100ref declaringTypeHandle, out QMethodDefinition qMethodDefinition, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles))
Internal\Reflection\Execution\RuntimeHandlesExtensions.cs (2)
13public static bool IsNull(this RuntimeTypeHandle rtth) 14=> RuntimeTypeHandle.ToIntPtr(rtth) == 0;
Internal\Reflection\Extensions\NonPortable\DelegateMethodInfoRetriever.cs (2)
20IntPtr originalLdFtnResult = RuntimeAugments.GetDelegateLdFtnResult(del, out RuntimeTypeHandle typeOfFirstParameterIfInstanceDelegate, out bool isOpenResolver); 23RuntimeTypeHandle[] genericMethodTypeArgumentHandles = null;
System.Private.TypeLoader (313)
Internal\Runtime\TypeLoader\CanonicallyEquivalentEntryLocator.cs (10)
16private RuntimeTypeHandle _typeToFind; 17private RuntimeTypeHandle _genericDefinition; 18private RuntimeTypeHandle[] _genericArgs; 21public CanonicallyEquivalentEntryLocator(RuntimeTypeHandle typeToFind) 30_genericDefinition = default(RuntimeTypeHandle); 40_genericDefinition = default(RuntimeTypeHandle); 41_typeToFind = default(RuntimeTypeHandle); 59public bool IsCanonicallyEquivalent(RuntimeTypeHandle other) 73RuntimeTypeHandle otherGenericDefinition; 74RuntimeTypeHandle[] otherGenericArgs;
Internal\Runtime\TypeLoader\EETypeCreator.cs (30)
17public static unsafe MethodTable* ToEETypePtr(this RuntimeTypeHandle rtth) 22public static unsafe IntPtr ToIntPtr(this RuntimeTypeHandle rtth) 27public static unsafe bool IsDynamicType(this RuntimeTypeHandle rtth) 32public static unsafe bool IsDynamicTypeWithCctor(this RuntimeTypeHandle rtth) 37public static unsafe int GetNumVtableSlots(this RuntimeTypeHandle rtth) 42public static unsafe TypeManagerHandle GetTypeManager(this RuntimeTypeHandle rtth) 47public static unsafe IntPtr GetDictionary(this RuntimeTypeHandle rtth) 52public static unsafe void SetDictionary(this RuntimeTypeHandle rtth, int dictionarySlot, IntPtr dictionary) 58public static unsafe void SetInterface(this RuntimeTypeHandle rtth, int interfaceIndex, RuntimeTypeHandle interfaceType) 63public static unsafe void SetGenericDefinition(this RuntimeTypeHandle rtth, RuntimeTypeHandle genericDefinitionHandle) 68public static unsafe void SetGenericArgument(this RuntimeTypeHandle rtth, int argumentIndex, RuntimeTypeHandle argumentType) 74public static unsafe void SetRelatedParameterType(this RuntimeTypeHandle rtth, RuntimeTypeHandle relatedTypeHandle) 79public static unsafe void SetParameterizedTypeShape(this RuntimeTypeHandle rtth, uint value) 84public static unsafe void SetBaseType(this RuntimeTypeHandle rtth, RuntimeTypeHandle baseTypeHandle) 89public static unsafe void SetComponentSize(this RuntimeTypeHandle rtth, ushort componentSize) 538public static RuntimeTypeHandle CreateFunctionPointerEEType(uint hashCodeOfNewType, RuntimeTypeHandle returnTypeHandle, RuntimeTypeHandle[] parameterHandles, FunctionPointerType functionPointerType) 556public static RuntimeTypeHandle CreatePointerEEType(uint hashCodeOfNewType, RuntimeTypeHandle pointeeTypeHandle, TypeDesc pointerType) 570public static RuntimeTypeHandle CreateByRefEEType(uint hashCodeOfNewType, RuntimeTypeHandle pointeeTypeHandle, TypeDesc byRefType) 592public static RuntimeTypeHandle CreateEEType(TypeDesc type, TypeBuilderState state) 607RuntimeTypeHandle templateTypeHandle; 624RuntimeTypeHandle templateTypeHandle = state.TemplateType.RuntimeTypeHandle;
Internal\Runtime\TypeLoader\GenericDictionaryCell.cs (7)
34private static RuntimeTypeHandle GetRuntimeTypeHandleWithNullableTransform(TypeBuilder builder, TypeDesc type) 36RuntimeTypeHandle th = builder.GetRuntimeTypeHandle(type); 136out RuntimeTypeHandle genericContext); 228RuntimeTypeHandle typeHandle = builder.GetRuntimeTypeHandle(Type); 331RuntimeTypeHandle[] genericArgHandles = Method.HasInstantiation && !Method.IsMethodDefinition ? 358RuntimeTypeHandle th = GetRuntimeTypeHandleWithNullableTransform(builder, Type); 364RuntimeTypeHandle th = GetRuntimeTypeHandleWithNullableTransform(builder, Type);
Internal\Runtime\TypeLoader\LowLevelStringConverter.cs (2)
116public static string LowLevelToString(this RuntimeTypeHandle rtth) 133public static string LowLevelToStringRawEETypeAddress(this RuntimeTypeHandle rtth)
Internal\Runtime\TypeLoader\MethodTable.Runtime.cs (2)
21internal readonly unsafe RuntimeTypeHandle ToRuntimeTypeHandle() 24return *(RuntimeTypeHandle*)&result;
Internal\Runtime\TypeLoader\NativeLayoutInfoLoadContext.cs (1)
82RuntimeTypeHandle rtth = _externalReferencesLookup.GetRuntimeTypeHandleFromIndex(index);
Internal\Runtime\TypeLoader\NoMetadataRuntimeInterfacesAlgorithm.cs (1)
22RuntimeTypeHandle itfHandle = RuntimeAugments.GetInterface(type.RuntimeTypeHandle, i);
Internal\Runtime\TypeLoader\TemplateLocator.cs (1)
45RuntimeTypeHandle candidateTemplateTypeHandle = externalFixupsTable.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned());
Internal\Runtime\TypeLoader\TypeBuilder.cs (28)
454public GCLayout(RuntimeTypeHandle rtth) 514RuntimeTypeHandle rtt = EETypeCreator.CreateEEType(type, state); 537public RuntimeTypeHandle GetRuntimeTypeHandle(TypeDesc type) 543var rtth = type.RuntimeTypeHandle; 553public RuntimeTypeHandle[] GetRuntimeTypeHandles(Instantiation types) 556return Array.Empty<RuntimeTypeHandle>(); 558RuntimeTypeHandle[] result = new RuntimeTypeHandle[types.Length]; 569RuntimeTypeHandle thBaseTypeTemplate = type.RuntimeTypeHandle.ToEETypePtr()->BaseType->ToRuntimeTypeHandle(); 658RuntimeTypeHandle baseTypeHandle = GetRuntimeTypeHandle(baseType); 681state.HalfBakedRuntimeTypeHandle.SetBaseType(baseType == null ? default(RuntimeTypeHandle) : GetRuntimeTypeHandle(baseType)); 726RuntimeTypeHandle elementTypeHandle = GetRuntimeTypeHandle(typeAsSzArrayType.ElementType); 1040RuntimeTypeHandle declaringTypeHandle; 1041RuntimeTypeHandle[] genericMethodArgHandles; 1121public static bool TryBuildGenericType(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles, out RuntimeTypeHandle runtimeTypeHandle) 1145runtimeTypeHandle = default(RuntimeTypeHandle); 1150public static bool TryBuildArrayType(RuntimeTypeHandle elementTypeHandle, bool isMdArray, int rank, out RuntimeTypeHandle arrayTypeHandle) 1171arrayTypeHandle = default(RuntimeTypeHandle); 1176public static bool TryBuildPointerType(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 1196public static bool TryBuildByRefType(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle byRefTypeHandle) 1216public static bool TryBuildFunctionPointerType(RuntimeTypeHandle returnTypeHandle, RuntimeTypeHandle[] parameterHandles, bool isUnmanaged, out RuntimeTypeHandle runtimeTypeHandle)
Internal\Runtime\TypeLoader\TypeBuilderState.cs (1)
46public RuntimeTypeHandle HalfBakedRuntimeTypeHandle;
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericMethodsLookup.cs (15)
26public RuntimeTypeHandle _declaringTypeHandle; 28public RuntimeTypeHandle[] _genericMethodArgumentHandles; 157RuntimeTypeHandle parsedDeclaringTypeHandle = externalReferencesLookup.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 176RuntimeTypeHandle[] parsedArgsHandles = GetTypeSequence(ref externalReferencesLookup, ref entryParser); 235public bool TryGetGenericMethodComponents(IntPtr methodDictionary, out RuntimeTypeHandle declaringType, out MethodNameAndSignature nameAndSignature, out RuntimeTypeHandle[] genericMethodArgumentHandles, out bool isAsyncVariant) 246public static bool TryGetGenericMethodComponents(IntPtr methodDictionary, out RuntimeTypeHandle declaringType, out RuntimeTypeHandle[] genericMethodArgumentHandles) 398private bool TryGetDynamicGenericMethodComponents(IntPtr methodDictionary, out RuntimeTypeHandle declaringType, out MethodNameAndSignature methodNameAndSignature, out RuntimeTypeHandle[] genericMethodArgumentHandles, out bool isAsyncVariant) 400declaringType = default(RuntimeTypeHandle); 422private static unsafe bool TryGetStaticGenericMethodComponents(IntPtr methodDictionary, out RuntimeTypeHandle declaringType, out MethodNameAndSignature nameAndSignature, out RuntimeTypeHandle[] genericMethodArgumentHandles, out bool isAsyncVariant) 459genericMethodArgumentHandles = new RuntimeTypeHandle[arity]; 470declaringType = default(RuntimeTypeHandle);
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericTypesLookup.cs (20)
25public RuntimeTypeHandle _instantiatedTypeHandle; 26public RuntimeTypeHandle _genericTypeDefinitionHandle; 27public RuntimeTypeHandle[] _genericTypeArgumentHandles; 96private RuntimeTypeHandle _genericTypeDefinitionHandle; 97private RuntimeTypeHandle[] _genericTypeArgumentHandles; 107internal GenericTypeLookupData(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles) 120internal bool MatchParsedEntry(RuntimeTypeHandle tentativeType) 122RuntimeTypeHandle parsedTypeDefinitionHandle = RuntimeAugments.GetGenericDefinition(tentativeType); 130RuntimeTypeHandle parsedArg = RuntimeAugments.GetGenericArgument(tentativeType, i); 131RuntimeTypeHandle lookupArg = (_typeToLookup != null ? _typeToLookup.Instantiation[i].RuntimeTypeHandle : _genericTypeArgumentHandles[i]); 203internal bool TryLookupConstructedGenericTypeForComponents(GenericTypeLookupData lookupData, out RuntimeTypeHandle runtimeTypeHandle) 212public bool TryLookupConstructedGenericTypeForComponents(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles, out RuntimeTypeHandle runtimeTypeHandle) 224private unsafe bool TryGetDynamicGenericTypeForComponents(GenericTypeLookupData lookupData, out RuntimeTypeHandle runtimeTypeHandle) 226runtimeTypeHandle = default(RuntimeTypeHandle); 242internal static unsafe bool TryGetStaticGenericTypeForComponents(GenericTypeLookupData lookupData, out RuntimeTypeHandle runtimeTypeHandle) 248runtimeTypeHandle = default(RuntimeTypeHandle); 264RuntimeTypeHandle tentativeType = externalReferencesLookup.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned());
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.cs (48)
24public override bool TryGetOwningTypeForMethodDictionary(IntPtr dictionary, out RuntimeTypeHandle owningType) 35public override bool TryGetConstructedGenericTypeForComponents(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles, out RuntimeTypeHandle runtimeTypeHandle) 51public override RuntimeMethodHandle GetRuntimeMethodHandleForComponents(RuntimeTypeHandle declaringTypeHandle, MethodHandle handle, RuntimeTypeHandle[] genericMethodArgs) 56public override IntPtr TryGetDefaultConstructorForType(RuntimeTypeHandle runtimeTypeHandle) 61public override IntPtr ResolveGenericVirtualMethodTarget(RuntimeTypeHandle targetTypeHandle, RuntimeMethodHandle declMethod) 66public override RuntimeFieldHandle GetRuntimeFieldHandleForComponents(RuntimeTypeHandle declaringTypeHandle, FieldHandle handle) 71public override IntPtr ConvertUnboxingFunctionPointerToUnderlyingNonUnboxingPointer(IntPtr unboxingFunctionPointer, RuntimeTypeHandle declaringType) 76public override bool TryGetPointerTypeForTargetType(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 81public override bool TryGetArrayTypeForElementType(RuntimeTypeHandle elementTypeHandle, bool isMdArray, int rank, out RuntimeTypeHandle arrayTypeHandle) 208private static RuntimeTypeHandle[] GetTypeSequence(ref ExternalReferencesTable extRefs, ref NativeParser parser) 211RuntimeTypeHandle[] result = new RuntimeTypeHandle[count]; 218public bool TryGetConstructedGenericTypeForComponents(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles, out RuntimeTypeHandle runtimeTypeHandle) 229public bool TryGetFunctionPointerTypeForComponents(RuntimeTypeHandle returnTypeHandle, RuntimeTypeHandle[] parameterHandles, bool isUnmanaged, out RuntimeTypeHandle runtimeTypeHandle) 240public bool TryLookupFunctionPointerTypeForComponents(RuntimeTypeHandle returnTypeHandle, RuntimeTypeHandle[] parameterHandles, bool isUnmanaged, out RuntimeTypeHandle runtimeTypeHandle) 256static bool AllNonDynamicTypes(RuntimeTypeHandle[] handles) 258foreach (RuntimeTypeHandle h in handles) 266public bool TryGetArrayTypeForElementType(RuntimeTypeHandle elementTypeHandle, bool isMdArray, int rank, out RuntimeTypeHandle arrayTypeHandle) 277arrayTypeHandle = default(RuntimeTypeHandle); 289internal static bool TryGetArrayTypeForElementType_LookupOnly(RuntimeTypeHandle elementTypeHandle, bool isMdArray, int rank, out RuntimeTypeHandle arrayTypeHandle) 293arrayTypeHandle = default(RuntimeTypeHandle); 310public bool TryGetPointerTypeForTargetType(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 324public static bool TryGetPointerTypeForTargetType_LookupOnly(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 339public bool TryGetByRefTypeForTargetType(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle byRefTypeHandle) 353public static bool TryGetByRefTypeForTargetType_LookupOnly(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 368public int GetCanonicalHashCode(RuntimeTypeHandle typeHandle, CanonicalFormKind kind) 378public bool TryGetGenericMethodDictionaryForComponents(RuntimeTypeHandle declaringTypeHandle, RuntimeTypeHandle[] genericMethodArgHandles, MethodNameAndSignature nameAndSignature, out IntPtr methodDictionary) 403public bool CanInstantiationsShareCode(RuntimeTypeHandle[] genericArgHandles1, RuntimeTypeHandle[] genericArgHandles2, CanonicalFormKind kind) 456public static IntPtr ConvertUnboxingFunctionPointerToUnderlyingNonUnboxingPointer(IntPtr unboxingFunctionPointer, RuntimeTypeHandle declaringType)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.FieldAccess.cs (2)
52RuntimeTypeHandle declaringTypeHandle, 85RuntimeTypeHandle entryDeclaringTypeHandle = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned());
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.GVMResolution.cs (13)
39RuntimeTypeHandle rtth = type.GetRuntimeTypeHandle(); 122internal unsafe IntPtr ResolveGenericVirtualMethodTarget(RuntimeTypeHandle type, RuntimeMethodHandle slot) 155private static RuntimeTypeHandle GetTypeDefinition(RuntimeTypeHandle typeHandle) 180RuntimeTypeHandle targetTypeHandle = default; 201RuntimeTypeHandle implementingTypeHandle = extRefs.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 332RuntimeTypeHandle openCallingTypeHandle = slotMethod.OwningType.GetTypeDefinition().RuntimeTypeHandle; 335RuntimeTypeHandle openTargetTypeHandle = targetType.GetTypeDefinition().RuntimeTypeHandle; 362RuntimeTypeHandle interfaceTypeHandle = extRefs.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 458RuntimeTypeHandle openCallingTypeHandle = GetTypeDefinition(slotMethod.OwningType.GetTypeDefinition().RuntimeTypeHandle); 461RuntimeTypeHandle openTargetTypeHandle = GetTypeDefinition(targetType.GetTypeDefinition().RuntimeTypeHandle); 490RuntimeTypeHandle parsedCallingTypeHandle = extRefs.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 494RuntimeTypeHandle parsedTargetTypeHandle = extRefs.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned());
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.LdTokenResultLookup.cs (24)
29private RuntimeTypeHandle _declaringType; 32public RuntimeFieldHandleKey(RuntimeTypeHandle declaringType, FieldHandle fieldHandle) 57private RuntimeTypeHandle _declaringType; 59private RuntimeTypeHandle[] _genericArgs; 62public RuntimeMethodHandleKey(RuntimeTypeHandle declaringType, MethodHandle handle, RuntimeTypeHandle[] genericArgs, bool isAsyncVariant) 125public unsafe RuntimeFieldHandle GetRuntimeFieldHandleForComponents(RuntimeTypeHandle declaringTypeHandle, int handle) 130public unsafe RuntimeFieldHandle GetRuntimeFieldHandleForComponents(RuntimeTypeHandle declaringTypeHandle, FieldHandle handle) 150public unsafe bool TryGetRuntimeFieldHandleComponents(RuntimeFieldHandle runtimeFieldHandle, out RuntimeTypeHandle declaringTypeHandle, out FieldHandle fieldHandle) 161public unsafe RuntimeMethodHandle GetRuntimeMethodHandleForComponents(RuntimeTypeHandle declaringTypeHandle, int handle, RuntimeTypeHandle[] genericMethodArgs, bool isAsyncVariant) 169public unsafe RuntimeMethodHandle GetRuntimeMethodHandleForComponents(RuntimeTypeHandle declaringTypeHandle, MethodHandle handle, RuntimeTypeHandle[] genericMethodArgs, bool isAsyncVariant) 187RuntimeTypeHandle* genericArgPtr = &methodData->FirstArgument; 190RuntimeTypeHandle currentArg = genericMethodArgs[i]; 205bool success = TryGetRuntimeMethodHandleComponents(runtimeMethodHandle, out RuntimeTypeHandle declaringTypeHandle, 206out MethodHandle handle, out RuntimeTypeHandle[] genericMethodArgs, out bool isAsyncVariant); 223public unsafe bool TryGetRuntimeMethodHandleComponents(RuntimeMethodHandle runtimeMethodHandle, out RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition handle, out RuntimeTypeHandle[] genericMethodArgs) 236public unsafe bool TryGetRuntimeMethodHandleComponents(RuntimeMethodHandle runtimeMethodHandle, out RuntimeTypeHandle declaringTypeHandle, out MethodHandle handle, out RuntimeTypeHandle[] genericMethodArgs, out bool isAsyncVariant) 246RuntimeTypeHandle* genericArgPtr = (RuntimeTypeHandle*)&methodData->FirstArgument; 247genericMethodArgs = new RuntimeTypeHandle[methodData->NumGenericArgs];
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.Metadata.cs (46)
103public static unsafe bool TryGetMetadataForNamedType(RuntimeTypeHandle runtimeTypeHandle, out QTypeDefinition qTypeDefinition) 123RuntimeTypeHandle foundType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 155public static unsafe bool TryGetNamedTypeForMetadata(QTypeDefinition qTypeDefinition, out RuntimeTypeHandle runtimeTypeHandle) 200public static unsafe bool TryGetArrayTypeForNonDynamicElementType(RuntimeTypeHandle elementTypeHandle, bool isMdArray, int rank, out RuntimeTypeHandle arrayTypeHandle) 202arrayTypeHandle = default(RuntimeTypeHandle); 225RuntimeTypeHandle foundArrayType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 226RuntimeTypeHandle foundArrayElementType = RuntimeAugments.GetRelatedParameterTypeHandle(foundArrayType); 240public static unsafe bool TryGetByRefTypeForNonDynamicElementType(RuntimeTypeHandle elementTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 246public static unsafe bool TryGetPointerTypeForNonDynamicElementType(RuntimeTypeHandle elementTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 252private static unsafe bool TryGetParameterizedTypeForNonDynamicElementType(RuntimeTypeHandle elementTypeHandle, int hashCode, ReflectionMapBlob blob, out RuntimeTypeHandle parameterizedTypeHandle) 269RuntimeTypeHandle foundParameterizedType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 270RuntimeTypeHandle foundElementType = RuntimeAugments.GetRelatedParameterTypeHandle(foundParameterizedType); 284public bool TryGetStaticFunctionPointerTypeForComponents(RuntimeTypeHandle returnTypeHandle, RuntimeTypeHandle[] parameterHandles, bool isUnmanaged, out RuntimeTypeHandle runtimeTypeHandle) 303RuntimeTypeHandle foundTypeHandle = externalReferences.GetRuntimeTypeHandleFromIndex(foundFnPtrTypeIndex); 332public static unsafe IntPtr GetStaticClassConstructionContext(RuntimeTypeHandle typeHandle) 370RuntimeTypeHandle foundType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 437public IntPtr TryGetDefaultConstructorForType(RuntimeTypeHandle runtimeTypeHandle) 479RuntimeTypeHandle entryType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 492public RuntimeTypeHandle DeclaringInvokeType; 499RuntimeTypeHandle methodHandleDeclaringType, QMethodDefinition method, RuntimeTypeHandle[] genericArgs, 538RuntimeTypeHandle entryType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 551RuntimeTypeHandle declaringTypeOfVirtualInvoke = methodHandleDeclaringType; 605RuntimeTypeHandle declaringTypeHandle, 607RuntimeTypeHandle[] genericMethodTypeArgumentHandles, 638RuntimeTypeHandle declaringTypeHandle, 640RuntimeTypeHandle[] genericMethodTypeArgumentHandles, 699bool CompareMethodInstantiation(RuntimeTypeHandle[] methodInstantiation); 700bool CanInstantiationsShareCode(RuntimeTypeHandle[] methodInstantiation, CanonicalFormKind canonFormKind); 708private readonly RuntimeTypeHandle _declaringTypeHandle; 709private readonly RuntimeTypeHandle[] _genericMethodTypeArgumentHandles; 711public PreloadedTypeComparator(RuntimeTypeHandle declaringTypeHandle, RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 742public bool CompareMethodInstantiation(RuntimeTypeHandle[] methodInstantiation) 747public bool CanInstantiationsShareCode(RuntimeTypeHandle[] methodInstantiation, CanonicalFormKind canonFormKind) 765public RuntimeTypeHandle _entryType; 768public RuntimeTypeHandle[] _methodInstantiation; 786_entryType = default(RuntimeTypeHandle); 803_entryType = default(RuntimeTypeHandle); 892public bool TryGetMetadataForTypeMethodNameAndSignature(RuntimeTypeHandle declaringTypeHandle, MethodNameAndSignature nameAndSignature, out QMethodDefinition methodHandle)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.StaticsLookup.cs (6)
30public IntPtr TryGetNonGcStaticFieldData(RuntimeTypeHandle runtimeTypeHandle) 69public IntPtr TryGetGcStaticFieldData(RuntimeTypeHandle runtimeTypeHandle) 110public IntPtr TryGetThreadStaticFieldData(RuntimeTypeHandle runtimeTypeHandle) 163public void RegisterDynamicThreadStaticsInfo(RuntimeTypeHandle runtimeTypeHandle, uint offsetValue, IntPtr gcDesc) 225private static NativeParser GetStaticInfo(RuntimeTypeHandle instantiatedType, out ExternalReferencesTable staticsInfoLookup) 240RuntimeTypeHandle parsedInstantiatedType = externalReferencesLookup.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned());
Internal\Runtime\TypeLoader\TypeLoaderTypeSystemContext.cs (1)
122return (DefType)ResolveRuntimeTypeHandle(typeof(RuntimeTypeHandle).TypeHandle);
Internal\Runtime\TypeLoader\TypeSystemExtensions.cs (2)
52public static bool IsNull(this RuntimeTypeHandle rtth) 53=> RuntimeTypeHandle.ToIntPtr(rtth) == 0;
Internal\TypeSystem\RuntimeNoMetadataType.cs (6)
31private RuntimeTypeHandle _genericTypeDefinition; 38public unsafe NoMetadataType(TypeSystemContext context, RuntimeTypeHandle genericTypeDefinition, int instantiationLength, ReadOnlySpan<Runtime.GenericVariance> runtimeVarianceData, int hashcode) 65public unsafe NoMetadataType(TypeSystemContext context, RuntimeTypeHandle genericTypeDefinition, DefType genericTypeDefinitionAsDefType, Instantiation instantiation, int hashcode) 70private void Init(TypeSystemContext context, RuntimeTypeHandle genericTypeDefinition, DefType genericTypeDefinitionAsDefType, Instantiation instantiation, int hashcode) 116RuntimeTypeHandle baseTypeHandle; 329RuntimeTypeHandle genericDefinitionHandle = GetTypeDefinition().GetRuntimeTypeHandle();
Internal\TypeSystem\TypeDesc.Runtime.cs (10)
21private RuntimeTypeHandle _runtimeTypeHandle; 22public RuntimeTypeHandle RuntimeTypeHandle 34public void SetRuntimeTypeHandleUnsafe(RuntimeTypeHandle runtimeTypeHandle) 45public RuntimeTypeHandle GetRuntimeTypeHandle() 72RuntimeTypeHandle typeDefHandle = typeDefinition.RuntimeTypeHandle; 90RuntimeTypeHandle rtth; 109RuntimeTypeHandle rtth; 131RuntimeTypeHandle[] parameterHandles = new RuntimeTypeHandle[sig.Length]; 150out RuntimeTypeHandle rtth))
Internal\TypeSystem\TypeSystemContext.Runtime.cs (36)
26internal class RuntimeTypeHandleToParameterTypeRuntimeTypeHandleHashtable : LockFreeReaderHashtableOfPointers<RuntimeTypeHandle, RuntimeTypeHandle> 28protected override bool CompareKeyToValue(RuntimeTypeHandle key, RuntimeTypeHandle value) 36protected override bool CompareValueToValue(RuntimeTypeHandle value1, RuntimeTypeHandle value2) 41protected override RuntimeTypeHandle ConvertIntPtrToValue(IntPtr pointer) 49protected override IntPtr ConvertValueToIntPtr(RuntimeTypeHandle value) 54protected override RuntimeTypeHandle CreateValueFromKey(RuntimeTypeHandle key) 59protected override int GetKeyHashCode(RuntimeTypeHandle key) 64protected override int GetValueHashCode(RuntimeTypeHandle value) 75public readonly RuntimeTypeHandle ReturnType; 76public readonly RuntimeTypeHandle[] ParameterTypes; 78public FunctionPointerTypeKey(RuntimeTypeHandle returnType, RuntimeTypeHandle[] parameterTypes, bool isUnmanaged) 82internal class FunctionPointerRuntimeTypeHandleHashtable : LockFreeReaderHashtableOfPointers<FunctionPointerTypeKey, RuntimeTypeHandle> 84protected override bool CompareKeyToValue(FunctionPointerTypeKey key, RuntimeTypeHandle value) 98protected override bool CompareValueToValue(RuntimeTypeHandle value1, RuntimeTypeHandle value2) 103protected override RuntimeTypeHandle ConvertIntPtrToValue(IntPtr pointer) 111protected override IntPtr ConvertValueToIntPtr(RuntimeTypeHandle value) 116protected override RuntimeTypeHandle CreateValueFromKey(FunctionPointerTypeKey key) 126protected override int GetValueHashCode(RuntimeTypeHandle value) 164public TypeDesc[] ResolveRuntimeTypeHandlesInternal(RuntimeTypeHandle[] runtimeTypeHandles) 172public Instantiation ResolveRuntimeTypeHandles(RuntimeTypeHandle[] runtimeTypeHandles) 178private LowLevelDictionary<RuntimeTypeHandle, TypeDesc> _runtimeTypeHandleResolutionCache = 179new LowLevelDictionary<RuntimeTypeHandle, TypeDesc>(); 181public TypeDesc ResolveRuntimeTypeHandle(RuntimeTypeHandle rtth) 205RuntimeTypeHandle typeDefRuntimeTypeHandle; 206RuntimeTypeHandle[] genericArgRuntimeTypeHandles; 215RuntimeTypeHandle elementTypeHandle = RuntimeAugments.GetRelatedParameterTypeHandle(rtth); 227RuntimeTypeHandle targetTypeHandle = RuntimeAugments.GetRelatedParameterTypeHandle(rtth); 233RuntimeTypeHandle returnTypeHandle = RuntimeAugments.GetFunctionPointerReturnType(rtth); 234RuntimeTypeHandle[] parameterHandles = RuntimeAugments.GetFunctionPointerParameterTypes(rtth); 247RuntimeTypeHandle targetTypeHandle = RuntimeAugments.GetRelatedParameterTypeHandle(rtth);
src\runtime\src\coreclr\nativeaot\Common\src\Internal\Runtime\TypeLoader\ExternalReferencesTable.cs (1)
60public RuntimeTypeHandle GetRuntimeTypeHandleFromIndex(uint index)
System.Private.Xml (1)
System\Xml\Serialization\CodeGenerator.cs (1)
774Call(typeof(Type).GetMethod("GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public, new Type[] { typeof(RuntimeTypeHandle) })!);
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
150public override RuntimeTypeHandle TypeHandle
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
52private static readonly MethodInfo s_getTypeFromHandleMethod = typeof(Type).GetMethod("GetTypeFromHandle", new Type[] { typeof(RuntimeTypeHandle) })!;
System.Reflection.Emit (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
343public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_NonReflectedType);
System\Reflection\Emit\EnumBuilderImpl.cs (1)
52public override RuntimeTypeHandle TypeHandle => _typeBuilder.TypeHandle;
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (1)
89public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException();
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
388public sealed override RuntimeTypeHandle TypeHandle => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
749[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.RuntimeTypeHandle))]
System.Runtime.InteropServices (22)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (2)
58public IComExposedDetails? GetComExposedTypeDetails(RuntimeTypeHandle type) => DefaultIUnknownInterfaceDetailsStrategy.Instance.GetComExposedTypeDetails(type); 60public IIUnknownDerivedDetails? GetIUnknownDerivedDetails(RuntimeTypeHandle type)
System\Runtime\InteropServices\Marshalling\ComObject.cs (4)
95RuntimeTypeHandle IDynamicInterfaceCastable.GetInterfaceImplementation(RuntimeTypeHandle interfaceType) 105bool IDynamicInterfaceCastable.IsInterfaceImplemented(RuntimeTypeHandle interfaceType, bool throwIfNotImplemented) 118private bool LookUpVTableInfo(RuntimeTypeHandle handle, out IIUnknownCacheStrategy.TableInfo result, out int qiHResult)
System\Runtime\InteropServices\Marshalling\DefaultCaching.cs (4)
15private readonly ConcurrentDictionary<RuntimeTypeHandle, IIUnknownCacheStrategy.TableInfo> _cache = new(concurrencyLevel: 1, capacity: 16); 17IIUnknownCacheStrategy.TableInfo IIUnknownCacheStrategy.ConstructTableInfo(RuntimeTypeHandle handle, IIUnknownDerivedDetails details, void* ptr) 28bool IIUnknownCacheStrategy.TryGetTableInfo(RuntimeTypeHandle handle, out IIUnknownCacheStrategy.TableInfo info) 33bool IIUnknownCacheStrategy.TrySetTableInfo(RuntimeTypeHandle handle, IIUnknownCacheStrategy.TableInfo info)
System\Runtime\InteropServices\Marshalling\DefaultIUnknownInterfaceDetailsStrategy.cs (2)
10public IComExposedDetails? GetComExposedTypeDetails(RuntimeTypeHandle type) 15public IIUnknownDerivedDetails? GetIUnknownDerivedDetails(RuntimeTypeHandle type)
System\Runtime\InteropServices\Marshalling\IComExposedDetails.cs (1)
21internal static IComExposedDetails? GetFromAttribute(RuntimeTypeHandle handle)
System\Runtime\InteropServices\Marshalling\IIUnknownCacheStrategy.cs (4)
31public RuntimeTypeHandle ManagedType { get; init; } 41TableInfo ConstructTableInfo(RuntimeTypeHandle handle, IIUnknownDerivedDetails interfaceDetails, void* ptr); 49bool TryGetTableInfo(RuntimeTypeHandle handle, out TableInfo info); 57bool TrySetTableInfo(RuntimeTypeHandle handle, TableInfo info);
System\Runtime\InteropServices\Marshalling\IIUnknownDerivedDetails.cs (1)
32internal static IIUnknownDerivedDetails? GetFromAttribute(RuntimeTypeHandle handle)
System\Runtime\InteropServices\Marshalling\IIUnknownInterfaceDetailsStrategy.cs (4)
16/// Given a <see cref="RuntimeTypeHandle"/> get the IUnknown details. 20IIUnknownDerivedDetails? GetIUnknownDerivedDetails(RuntimeTypeHandle type); 23/// Given a <see cref="RuntimeTypeHandle"/> get the details about the type that are exposed to COM. 27IComExposedDetails? GetComExposedTypeDetails(RuntimeTypeHandle type);
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.Types.cs (1)
63internal RuntimeTypeHandle typeHandle;
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (1)
694typeof(Type).GetMethod(nameof(Type.GetTypeFromHandle), new[] { typeof(RuntimeTypeHandle) })!;
System.Windows.Forms (1)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
315RuntimeTypeHandle type = GetType().TypeHandle;
System.Xaml (1)
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
612null, new Type[] { typeof(RuntimeTypeHandle) }, null);