52 instantiations of RuntimeTypeHandle
System.Private.CoreLib (52)
Internal\Reflection\Core\Execution\ExecutionDomain.cs (13)
124runtimeTypeInfo = GetNamedTypeForHandle(new RuntimeTypeHandle(pEEType)); 130new RuntimeTypeHandle(pEEType->RelatedParameterType).GetRuntimeTypeInfoForRuntimeTypeHandle(), 132precomputedTypeHandle: new RuntimeTypeHandle(pEEType)); 137new RuntimeTypeHandle(pEEType->RelatedParameterType).GetRuntimeTypeInfoForRuntimeTypeHandle(), 138precomputedTypeHandle: new RuntimeTypeHandle(pEEType)); 143new RuntimeTypeHandle(pEEType->RelatedParameterType).GetRuntimeTypeInfoForRuntimeTypeHandle(), 144precomputedTypeHandle: new RuntimeTypeHandle(pEEType)); 164genericTypeArguments[i] = new RuntimeTypeHandle(arguments[i]).GetRuntimeTypeInfoForRuntimeTypeHandle(); 168new RuntimeTypeHandle(pEEType->GenericDefinition).GetRuntimeTypeInfoForRuntimeTypeHandle(), 170precomputedTypeHandle: new RuntimeTypeHandle(pEEType)); 188parameterTypes[i] = new RuntimeTypeHandle(parameters[i]).GetRuntimeTypeInfoForRuntimeTypeHandle(); 193new RuntimeTypeHandle(pEEType->FunctionPointerReturnType).GetRuntimeTypeInfoForRuntimeTypeHandle(), 196precomputedTypeHandle: new RuntimeTypeHandle(pEEType));
Internal\Runtime\Augments\RuntimeAugments.cs (14)
131Type elementType = Type.GetTypeFromHandle(new RuntimeTypeHandle(typeHandleForArrayType.ToMethodTable()->RelatedParameterType))!; 229return new RuntimeTypeHandle((MethodTable*)ldTokenResult); 361return new RuntimeTypeHandle(elementType); 426baseTypeHandle = new RuntimeTypeHandle(eeType->BaseType); 442return new RuntimeTypeHandle(typeHandle.ToMethodTable()->InterfaceMap[index]); 456return new RuntimeTypeHandle(eeType->GenericDefinition); 463return new RuntimeTypeHandle(eeType->GenericArguments[argumentIndex]); 476genericTypeArgumentHandles[i] = new RuntimeTypeHandle(instantiation[i]); 479return new RuntimeTypeHandle(eeType->GenericDefinition); 504genericContext = new RuntimeTypeHandle(genericContextPtr); 527return new RuntimeTypeHandle(typeHandle.ToMethodTable()->FunctionPointerReturnType); 538return new RuntimeTypeHandle(typeHandle.ToMethodTable()->FunctionPointerParameters[argumentIndex]); 551result[i] = new RuntimeTypeHandle(parameters[i]); 606return new RuntimeTypeHandle(theT);
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (1)
302Assembly callingAssembly = ReflectionAugments.GetAssemblyForHandle(new RuntimeTypeHandle(pCell->CallingAssemblyType));
Internal\Runtime\CompilerServices\OpenMethodResolver.cs (1)
82return new RuntimeTypeHandle(_declaringType);
Internal\Runtime\Dispatch.cs (3)
44new RuntimeTypeHandle(pObject.GetMethodTable()), 88new RuntimeTypeHandle(pObject.GetMethodTable()), 89new RuntimeTypeHandle(owningType),
parent\parent\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.NativeAot.cs (1)
143typeOfFirstParameterIfInstanceDelegate = new RuntimeTypeHandle(_target.GetMethodTable());
System\Enum.NativeAot.cs (1)
53=> InternalBoxEnum(new RuntimeTypeHandle(mt), value);
System\InvokeUtils.cs (4)
101Type exactDstType = Type.GetTypeFromHandle(new RuntimeTypeHandle(dstEEType))!; 116&& castable.IsInterfaceImplemented(new RuntimeTypeHandle(dstEEType), throwIfNotImplemented: false)); 431object? destinationTypeName = Type.GetTypeFromHandle(new RuntimeTypeHandle(dstEEType)); 434return new ArgumentException(SR.Format(SR.Arg_ObjObjEx, Type.GetTypeFromHandle(new RuntimeTypeHandle(srcEEType)), destinationTypeName));
System\Reflection\DynamicInvokeInfo.cs (2)
641&& castable.IsInterfaceImplemented(new RuntimeTypeHandle(dstEEType), throwIfNotImplemented: false)))) 737&& castable.IsInterfaceImplemented(new RuntimeTypeHandle(dstEEType), throwIfNotImplemented: false))))
System\Runtime\InteropServices\IDynamicInterfaceCastable.cs (1)
23RuntimeTypeHandle handle = instance.GetInterfaceImplementation(new RuntimeTypeHandle(interfaceType));
System\Runtime\InteropServices\Marshal.NativeAot.cs (2)
66RuntimeTypeHandle structureTypeHandle = new RuntimeTypeHandle(structureMT); 123RuntimeTypeHandle structureTypeHandle = new RuntimeTypeHandle(structureMT);
System\Runtime\InteropServices\PInvokeMarshal.cs (1)
140IntPtr pTarget = RuntimeInteropData.GetDelegateMarshallingStub(new RuntimeTypeHandle(del.GetMethodTable()), openStaticFunctionPointer != IntPtr.Zero);
System\RuntimeMethodHandle.cs (1)
125new RuntimeTypeHandle(target.GetMethodTable()),
System\RuntimeType.NativeAot.cs (1)
233return new RuntimeTypeHandle(pEEType);
System\RuntimeTypeHandle.cs (2)
50public static RuntimeTypeHandle FromIntPtr(IntPtr value) => new RuntimeTypeHandle(value); 117return new RuntimeTypeHandle(pMT);
891 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;
Microsoft.CodeAnalysis (1)
SpecialType.cs (1)
237/// Indicates that the type is <see cref="RuntimeTypeHandle"/>.
mscorlib (1)
parent\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 (363)
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)
118RuntimeTypeHandle declaringTypeHandle; 119RuntimeTypeHandle[] genericMethodTypeArgumentHandles; 132public static MethodBase GetMethodFromHandle(RuntimeMethodHandle runtimeMethodHandle, RuntimeTypeHandle declaringTypeHandle) 136RuntimeTypeHandle[] genericMethodTypeArgumentHandles; 140RuntimeTypeHandle actualDeclaringTypeHandle; 163RuntimeTypeHandle declaringTypeHandle; 176public static FieldInfo GetFieldFromHandle(RuntimeFieldHandle runtimeFieldHandle, RuntimeTypeHandle declaringTypeHandle) 183RuntimeTypeHandle actualDeclaringTypeHandle; 196private static RuntimeFieldInfo GetFieldInfo(RuntimeTypeHandle declaringTypeHandle, FieldHandle fieldHandle) 369public static IntPtr GetFunctionPointer(RuntimeMethodHandle runtimeMethodHandle, RuntimeTypeHandle declaringTypeHandle) 516public static Assembly GetAssemblyForHandle(RuntimeTypeHandle typeHandle) 521public 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 (34)
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); 83public abstract IntPtr GetStaticClassConstructionContext(RuntimeTypeHandle typeHandle); 104RuntimeTypeHandle typeDefinitionHandle = declaringType.TypeHandle; 105RuntimeTypeHandle[] 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 RuntimeTypeHandle GetRelatedParameterTypeHandle(RuntimeTypeHandle parameterTypeHandle) 364public static unsafe int GetArrayRankOrMinusOneForSzArray(RuntimeTypeHandle arrayHandle) 370public static bool IsValueType(RuntimeTypeHandle type) 375public static bool IsInterface(RuntimeTypeHandle type) 380public static unsafe object Box(RuntimeTypeHandle type, IntPtr address) 393public static RuntimeTypeHandle ProjectionTypeForArrays 404public static bool IsAssignableFrom(RuntimeTypeHandle dstType, RuntimeTypeHandle srcType) 418public static bool TryGetBaseType(RuntimeTypeHandle typeHandle, out RuntimeTypeHandle baseTypeHandle) 423baseTypeHandle = default(RuntimeTypeHandle); 430public static int GetGCDescSize(RuntimeTypeHandle typeHandle) 435public static int GetInterfaceCount(RuntimeTypeHandle typeHandle) 440public static RuntimeTypeHandle GetInterface(RuntimeTypeHandle typeHandle, int index) 446public static RuntimeTypeHandle GetCanonType() 452public static RuntimeTypeHandle GetGenericDefinition(RuntimeTypeHandle typeHandle) 459public static RuntimeTypeHandle GetGenericArgument(RuntimeTypeHandle typeHandle, int argumentIndex) 466public static RuntimeTypeHandle GetGenericInstantiation(RuntimeTypeHandle typeHandle, out RuntimeTypeHandle[] genericTypeArgumentHandles) 473genericTypeArgumentHandles = new RuntimeTypeHandle[eeType->GenericArity]; 482public static bool IsGenericType(RuntimeTypeHandle typeHandle) 487public static bool IsArrayType(RuntimeTypeHandle typeHandle) 492public static bool IsByRefLike(RuntimeTypeHandle typeHandle) => typeHandle.ToMethodTable()->IsByRefLike; 494public static bool IsDynamicType(RuntimeTypeHandle typeHandle) 499public static unsafe IntPtr ResolveStaticDispatchOnType(RuntimeTypeHandle instanceType, RuntimeTypeHandle interfaceType, int slot, out RuntimeTypeHandle genericContext) 510public static unsafe IntPtr ResolveDispatchOnType(RuntimeTypeHandle instanceType, RuntimeTypeHandle interfaceType, int slot) 515public static bool IsUnmanagedPointerType(RuntimeTypeHandle typeHandle) 520public static bool IsFunctionPointerType(RuntimeTypeHandle typeHandle) 525public static unsafe RuntimeTypeHandle GetFunctionPointerReturnType(RuntimeTypeHandle typeHandle) 530public static unsafe int GetFunctionPointerParameterCount(RuntimeTypeHandle typeHandle) 535public static unsafe RuntimeTypeHandle GetFunctionPointerParameterType(RuntimeTypeHandle typeHandle, int argumentIndex) 541public static unsafe RuntimeTypeHandle[] GetFunctionPointerParameterTypes(RuntimeTypeHandle typeHandle) 545return Array.Empty<RuntimeTypeHandle>(); 547RuntimeTypeHandle[] result = new RuntimeTypeHandle[paramCount]; 557public static unsafe bool IsUnmanagedFunctionPointerType(RuntimeTypeHandle typeHandle) 562public static bool IsByRefType(RuntimeTypeHandle typeHandle) 567public static bool IsGenericTypeDefinition(RuntimeTypeHandle typeHandle) 572public static object CheckArgument(object srcObject, RuntimeTypeHandle dstType, BinderBundle? binderBundle) 577public static object CheckArgument(object srcObject, RuntimeTypeHandle dstType, BinderBundle? binderBundle, out bool copyBack) 584public static object CheckArgumentForDirectFieldAccess(object srcObject, RuntimeTypeHandle dstType) 589public static bool IsAssignable(object srcObject, RuntimeTypeHandle dstType) 598public static bool IsNullable(RuntimeTypeHandle declaringTypeHandle) 603public static RuntimeTypeHandle GetNullableType(RuntimeTypeHandle nullableType)
Internal\Runtime\Augments\TypeLoaderCallbacks.cs (15)
18public abstract bool TryGetOwningTypeForMethodDictionary(IntPtr dictionary, out RuntimeTypeHandle owningType); 20public abstract bool TryGetConstructedGenericTypeForComponents(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles, out RuntimeTypeHandle runtimeTypeHandle); 23public abstract RuntimeMethodHandle GetRuntimeMethodHandleForComponents(RuntimeTypeHandle declaringTypeHandle, MethodHandle handle, RuntimeTypeHandle[] genericMethodArgs); 24public abstract IntPtr TryGetDefaultConstructorForType(RuntimeTypeHandle runtimeTypeHandle); 25public abstract unsafe IntPtr ResolveGenericVirtualMethodTarget(RuntimeTypeHandle targetTypeHandle, RuntimeTypeHandle declaringTypeHandle, MethodHandle methodHandle, bool isAsyncVariant, void* methodInstantiation, bool isMethodInstantiationDataRelative); 26public abstract RuntimeFieldHandle GetRuntimeFieldHandleForComponents(RuntimeTypeHandle declaringTypeHandle, FieldHandle handle); 27public abstract bool TryGetPointerTypeForTargetType(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle pointerTypeHandle); 28public abstract bool TryGetArrayTypeForElementType(RuntimeTypeHandle elementTypeHandle, bool isMdArray, int rank, out RuntimeTypeHandle arrayTypeHandle); 32public 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)
26bool 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)
34public OpenMethodResolver(RuntimeTypeHandle declaringTypeOfSlot, int slot, GCHandle readerGCHandle, int handle) 45public OpenMethodResolver(RuntimeTypeHandle declaringTypeOfSlot, RuntimeMethodHandle gvmSlot, GCHandle readerGCHandle, int handle) 55public OpenMethodResolver(RuntimeTypeHandle declaringType, IntPtr codePointer, GCHandle readerGCHandle, int handle, short resolveType) 78public RuntimeTypeHandle DeclaringType 165public static IntPtr ResolveMethod(IntPtr resolverPtr, RuntimeTypeHandle thisType)
Internal\Runtime\Dispatch.cs (1)
45RuntimeTypeHandle.FromIntPtr(pDynamicGvmCell->OwningType),
src\runtime\src\coreclr\nativeaot\Common\src\Internal\Runtime\TypeLoader\ExternalReferencesTable.cs (1)
65public RuntimeTypeHandle GetRuntimeTypeHandleFromIndex(uint index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgIterator.PlatformNotSupported.cs (2)
44public System.TypedReference GetNextArg(System.RuntimeTypeHandle rth) 49public unsafe System.RuntimeTypeHandle GetNextArgType()
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)
345public 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)
34RuntimeTypeHandle typeHandle = type.TypeHandle; 87RuntimeTypeHandle typeHandle = type.TypeHandle;
System\Array.NativeAot.cs (1)
111RuntimeTypeHandle arrayTypeHandle = arrayType.IsSZArray
System\Delegate.NativeAot.cs (3)
125internal unsafe IntPtr GetDelegateLdFtnResult(out RuntimeTypeHandle typeOfFirstParameterIfInstanceDelegate, out bool isOpenResolver) 316IntPtr ldftnResult = GetDelegateLdFtnResult(out RuntimeTypeHandle _, out bool isOpenResolver); 367RuntimeTypeHandle 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)
75NativeFormatRuntimeNamedTypeInfo containingType = NativeFormatRuntimeNamedTypeInfo.GetRuntimeNamedTypeInfo(reader, declaringTypeHandle, default(RuntimeTypeHandle));
System\Reflection\Runtime\General\Helpers.cs (2)
26public static bool IsNull(this RuntimeTypeHandle h) 28return 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) 115RuntimeTypeHandle elementTypeHandle = elementType.InternalTypeHandleIfAvailable; 117return default(RuntimeTypeHandle); 119RuntimeTypeHandle typeHandle; 123return default(RuntimeTypeHandle); 128return default(RuntimeTypeHandle); 184internal static RuntimeByRefTypeInfo GetByRefTypeInfo(RuntimeTypeInfo elementType, RuntimeTypeHandle precomputedTypeHandle) 191private static RuntimeTypeHandle GetRuntimeTypeHandleIfAny(RuntimeTypeInfo elementType) 193RuntimeTypeHandle elementTypeHandle = elementType.InternalTypeHandleIfAvailable; 195return default(RuntimeTypeHandle); 197RuntimeTypeHandle typeHandle; 199return default(RuntimeTypeHandle); 228internal static RuntimePointerTypeInfo GetPointerTypeInfo(RuntimeTypeInfo elementType, RuntimeTypeHandle precomputedTypeHandle) 235private static RuntimeTypeHandle GetRuntimeTypeHandleIfAny(RuntimeTypeInfo elementType) 237RuntimeTypeHandle elementTypeHandle = elementType.InternalTypeHandleIfAvailable; 239return default(RuntimeTypeHandle); 241RuntimeTypeHandle typeHandle; 243return default(RuntimeTypeHandle); 269RuntimeTypeHandle precomputedTypeHandle = GetRuntimeTypeHandleIfAny(returnType, parameterTypes, isUnmanaged); 273internal static RuntimeFunctionPointerTypeInfo GetFunctionPointerTypeInfo(RuntimeTypeInfo returnType, RuntimeTypeInfo[] parameterTypes, bool isUnmanaged, RuntimeTypeHandle precomputedTypeHandle) 281private static RuntimeTypeHandle GetRuntimeTypeHandleIfAny(RuntimeTypeInfo returnType, RuntimeTypeInfo[] parameterTypes, bool isUnmanaged) 283RuntimeTypeHandle returnTypeHandle = returnType.InternalTypeHandleIfAvailable; 285return default(RuntimeTypeHandle); 288RuntimeTypeHandle[] parameterTypeHandles = new RuntimeTypeHandle[count]; 291RuntimeTypeHandle parameterHandle = parameterTypes[i].InternalTypeHandleIfAvailable; 293return default(RuntimeTypeHandle); 297if (ReflectionCoreExecution.ExecutionEnvironment.TryGetFunctionPointerTypeForComponents(returnTypeHandle, parameterTypeHandles, isUnmanaged, out RuntimeTypeHandle typeHandle)) 300return default(RuntimeTypeHandle); 323RuntimeTypeHandle precomputedTypeHandle = GetRuntimeTypeHandleIfAny(genericTypeDefinition, genericTypeArguments, del); 331RuntimeTypeHandle precomputedTypeHandle = GetRuntimeTypeHandleIfAny(genericTypeDefinition, genericTypeArguments, del); 335internal static RuntimeConstructedGenericTypeInfo GetRuntimeConstructedGenericTypeInfo(RuntimeTypeInfo genericTypeDefinition, RuntimeTypeInfo[] genericTypeArguments, RuntimeTypeHandle precomputedTypeHandle) 343private delegate bool TryGetConstructedGenericTypeDelegate(RuntimeTypeHandle genericDefinition, RuntimeTypeHandle[] genericArguments, out RuntimeTypeHandle result); 345private static RuntimeTypeHandle GetRuntimeTypeHandleIfAny(RuntimeTypeInfo genericTypeDefinition, RuntimeTypeInfo[] genericTypeArguments, TryGetConstructedGenericTypeDelegate constructor) 347RuntimeTypeHandle genericTypeDefinitionHandle = genericTypeDefinition.InternalTypeHandleIfAvailable; 349return default(RuntimeTypeHandle); 352RuntimeTypeHandle[] genericTypeArgumentHandles = new RuntimeTypeHandle[count]; 355RuntimeTypeHandle genericTypeArgumentHandle = genericTypeArguments[i].InternalTypeHandleIfAvailable; 357return default(RuntimeTypeHandle); 361RuntimeTypeHandle typeHandle; 363return 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)
106public sealed override Delegate CreateDelegate(RuntimeTypeHandle delegateType, object target, bool isStatic, bool isVirtual, bool isOpen)
System\Reflection\Runtime\MethodInfos\NativeFormat\NativeFormatMethodCommon.cs (2)
175RuntimeTypeHandle[]? genericArgHandles; 178genericArgHandles = new RuntimeTypeHandle[genericArgs.Length];
System\Reflection\Runtime\MethodInfos\OpenMethodInvoker.cs (1)
46public sealed override Delegate CreateDelegate(RuntimeTypeHandle delegateType, object target, bool isStatic, bool isVirtual, bool isOpen)
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeNamedTypeInfo.cs (2)
17private NativeFormatRuntimeNamedTypeInfo(MetadataReader reader, TypeDefinitionHandle typeDefinitionHandle, RuntimeTypeHandle typeHandle) : 45RuntimeTypeHandle 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)
226internal 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)
109internal 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)
111internal sealed override RuntimeTypeHandle InternalTypeHandleIfAvailable 115return default(RuntimeTypeHandle);
System\Reflection\Runtime\TypeInfos\RuntimeHasElementTypeInfo.cs (1)
155internal 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)
20protected RuntimeNamedTypeInfo(RuntimeTypeHandle typeHandle) 158internal sealed override RuntimeTypeHandle InternalTypeHandleIfAvailable 183private readonly RuntimeTypeHandle _typeHandle;
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.cs (13)
83RuntimeTypeHandle typeHandle = InternalTypeHandleIfAvailable; 86RuntimeTypeHandle baseTypeHandle; 200RuntimeTypeHandle typeHandle = TypeHandle; 201RuntimeTypeHandle interfaceTypeHandle = interfaceType.TypeHandle; 265RuntimeTypeHandle typeHandle = InternalTypeHandleIfAvailable; 313RuntimeTypeHandle toTypeHandle = toTypeInfo.InternalTypeHandleIfAvailable; 314RuntimeTypeHandle fromTypeHandle = fromTypeInfo.InternalTypeHandleIfAvailable; 528public RuntimeTypeHandle TypeHandle 532RuntimeTypeHandle typeHandle = InternalTypeHandleIfAvailable; 621internal abstract RuntimeTypeHandle InternalTypeHandleIfAvailable { get; } 630RuntimeTypeHandle runtimeTypeHandle = InternalTypeHandleIfAvailable; 807RuntimeTypeHandle typeHandle = thisType.InternalTypeHandleIfAvailable; 810RuntimeTypeHandle baseTypeHandle;
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (4)
32public static void RunClassConstructor(RuntimeTypeHandle type) 224public static void PrepareMethod(RuntimeMethodHandle method, RuntimeTypeHandle[] instantiation) 371public static unsafe object? Box(ref byte target, RuntimeTypeHandle type) 403public 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; 138public RuntimeTypeHandle DeclaringType; 141public RuntimeTypeHandle FirstArgument;
System\RuntimeType.NativeAot.cs (1)
227public 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)
69internal static DataContract GetDataContract(RuntimeTypeHandle typeHandle, bool verifyConstructor = true) 78internal static DataContract GetDataContract(int id, RuntimeTypeHandle typeHandle) 86internal static DataContract GetDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type? type, bool verifyConstructor = true) 93internal static DataContract GetGetOnlyCollectionDataContract(int id, RuntimeTypeHandle typeHandle, Type? type) 106internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type? type) 121internal static int GetId(RuntimeTypeHandle typeHandle) 354internal static DataContract GetDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type? type, bool verifyConstructor = true) 370internal static DataContract GetGetOnlyCollectionDataContractSkipValidation(int id, RuntimeTypeHandle typeHandle, Type? type) 409internal static int GetId(RuntimeTypeHandle typeHandle) 446private static DataContract CreateDataContract(int id, RuntimeTypeHandle typeHandle, Type? type) 526private static DataContract CreateGetOnlyCollectionDataContract(int id, RuntimeTypeHandle typeHandle, Type? type) 581private static RuntimeTypeHandle GetDataContractAdapterTypeHandle(RuntimeTypeHandle typeHandle) 959RuntimeTypeHandle 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)
151protected override void WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle declaredTypeHandle) 174protected override void SerializeWithXsiType(XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle objectTypeHandle, Type? objectType, int declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType) 243internal override void SerializeWithXsiTypeAtTopLevel(DataContract dataContract, XmlWriterDelegator xmlWriter, object obj, RuntimeTypeHandle originalDeclaredTypeHandle, Type graphType) 370internal override DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type? type) 379internal override DataContract GetDataContractSkipValidation(int typeId, RuntimeTypeHandle typeHandle, Type? type) 388internal override DataContract GetDataContract(int id, RuntimeTypeHandle typeHandle)
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
351s_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 (95)
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, 333private static RuntimeTypeHandle GetExactDeclaringType(RuntimeTypeHandle dstType, RuntimeTypeHandle srcType) 348RuntimeTypeHandle dstTypeDef = GetTypeDefinition(dstType); 359RuntimeTypeHandle srcTypeDef = GetTypeDefinition(srcType); 377return default(RuntimeTypeHandle); 480internal bool TryGetMethodForOriginalLdFtnResult(IntPtr originalLdFtnResult, ref RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 513internal bool TryGetMethodForStartAddress(IntPtr methodStartAddress, ref RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle) 572RuntimeTypeHandle declaringTypeHandle = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 605private unsafe bool TryGetMethodForOriginalLdFtnResult_InvokeMap_Inner(NativeFormatModuleInfo mappingTableModule, bool forStartAddress, IntPtr canonOriginalLdFtnResult, IntPtr instantiationArgument, uint parserOffset, ref RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 674RuntimeTypeHandle entryType = externalReferences.GetRuntimeTypeHandleFromIndex(entryDeclaringTypeRaw); 678RuntimeTypeHandle declaringTypeHandleDefinition = GetTypeDefinition(declaringTypeHandle); 689private static unsafe bool TryGetMethodForOriginalLdFtnResult_GenericMethodWithInstantiationArgument(IntPtr instantiationArgument, ref RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 707RuntimeTypeHandle declaringTypeHandle, 708RuntimeTypeHandle fieldTypeHandle, 790public sealed override unsafe bool TryGetMethodFromHandle(RuntimeMethodHandle runtimeMethodHandle, out RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 798public sealed override bool TryGetMethodFromHandleAndType(RuntimeMethodHandle runtimeMethodHandle, RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 806public sealed override unsafe bool TryGetFieldFromHandle(RuntimeFieldHandle runtimeFieldHandle, out RuntimeTypeHandle declaringTypeHandle, out FieldHandle fieldHandle) 814public sealed override bool TryGetFieldFromHandleAndType(RuntimeFieldHandle runtimeFieldHandle, RuntimeTypeHandle declaringTypeHandle, out FieldHandle fieldHandle)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.Runtime.cs (2)
65public sealed override FieldAccessor CreateLiteralFieldAccessor(object value, RuntimeTypeHandle fieldTypeHandle) 85public 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 (302)
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 (32)
16public static unsafe MethodTable* ToEETypePtr(this RuntimeTypeHandle rtth) 21public static unsafe IntPtr ToIntPtr(this RuntimeTypeHandle rtth) 26public static unsafe bool IsDynamicType(this RuntimeTypeHandle rtth) 31public static unsafe bool IsDynamicTypeWithCctor(this RuntimeTypeHandle rtth) 36public static unsafe int GetNumVtableSlots(this RuntimeTypeHandle rtth) 41public static unsafe TypeManagerHandle GetTypeManager(this RuntimeTypeHandle rtth) 46public static unsafe IntPtr GetDictionary(this RuntimeTypeHandle rtth) 51public static unsafe void SetDictionary(this RuntimeTypeHandle rtth, int dictionarySlot, IntPtr dictionary) 57public static unsafe void SetInterface(this RuntimeTypeHandle rtth, int interfaceIndex, RuntimeTypeHandle interfaceType) 62public static unsafe void SetGenericDefinition(this RuntimeTypeHandle rtth, RuntimeTypeHandle genericDefinitionHandle) 67public static unsafe void SetGenericArgument(this RuntimeTypeHandle rtth, int argumentIndex, RuntimeTypeHandle argumentType) 73public static unsafe void SetRelatedParameterType(this RuntimeTypeHandle rtth, RuntimeTypeHandle relatedTypeHandle) 78public static unsafe void SetParameterizedTypeShape(this RuntimeTypeHandle rtth, uint value) 83public static unsafe void SetBaseType(this RuntimeTypeHandle rtth, RuntimeTypeHandle baseTypeHandle) 88public static unsafe void SetComponentSize(this RuntimeTypeHandle rtth, ushort componentSize) 401RuntimeTypeHandle elementHandle = elementType.GetRuntimeTypeHandle(); 414public static RuntimeTypeHandle CreateFunctionPointerEEType(uint hashCodeOfNewType, RuntimeTypeHandle returnTypeHandle, RuntimeTypeHandle[] parameterHandles, FunctionPointerType functionPointerType) 432public static RuntimeTypeHandle CreatePointerEEType(uint hashCodeOfNewType, RuntimeTypeHandle pointeeTypeHandle, TypeDesc pointerType) 446public static RuntimeTypeHandle CreateByRefEEType(uint hashCodeOfNewType, RuntimeTypeHandle pointeeTypeHandle, TypeDesc byRefType) 468public static RuntimeTypeHandle CreateEEType(TypeDesc type, TypeBuilderState state) 482RuntimeTypeHandle templateTypeHandle; 499RuntimeTypeHandle templateTypeHandle = state.TemplateType.RuntimeTypeHandle; 542RuntimeTypeHandle baseTypeHandle = baseType.GetRuntimeTypeHandle();
Internal\Runtime\TypeLoader\GenericDictionaryCell.cs (7)
31private static RuntimeTypeHandle GetRuntimeTypeHandleWithNullableTransform(TypeBuilder builder, TypeDesc type) 33RuntimeTypeHandle th = builder.GetRuntimeTypeHandle(type); 165out RuntimeTypeHandle genericContext); 257RuntimeTypeHandle typeHandle = builder.GetRuntimeTypeHandle(Type); 360RuntimeTypeHandle[] genericArgHandles = Method.HasInstantiation && !Method.IsMethodDefinition ? 386RuntimeTypeHandle th = GetRuntimeTypeHandleWithNullableTransform(builder, Type); 392RuntimeTypeHandle 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)
40RuntimeTypeHandle candidateTemplateTypeHandle = externalFixupsTable.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned());
Internal\Runtime\TypeLoader\TypeBuilder.cs (26)
388RuntimeTypeHandle rtt = EETypeCreator.CreateEEType(type, state); 411public RuntimeTypeHandle GetRuntimeTypeHandle(TypeDesc type) 417var rtth = type.RuntimeTypeHandle; 427public RuntimeTypeHandle[] GetRuntimeTypeHandles(Instantiation types) 430return Array.Empty<RuntimeTypeHandle>(); 432RuntimeTypeHandle[] result = new RuntimeTypeHandle[types.Length]; 503RuntimeTypeHandle baseTypeHandle = baseType.RuntimeTypeHandle; 519state.HalfBakedRuntimeTypeHandle.SetBaseType(baseType == null ? default(RuntimeTypeHandle) : GetRuntimeTypeHandle(baseType)); 556RuntimeTypeHandle elementTypeHandle = GetRuntimeTypeHandle(typeAsSzArrayType.ElementType); 936RuntimeTypeHandle declaringTypeHandle; 937RuntimeTypeHandle[] genericMethodArgHandles; 1017public static bool TryBuildGenericType(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles, out RuntimeTypeHandle runtimeTypeHandle) 1041runtimeTypeHandle = default(RuntimeTypeHandle); 1046public static bool TryBuildArrayType(RuntimeTypeHandle elementTypeHandle, bool isMdArray, int rank, out RuntimeTypeHandle arrayTypeHandle) 1067arrayTypeHandle = default(RuntimeTypeHandle); 1072public static bool TryBuildPointerType(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 1092public static bool TryBuildByRefType(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle byRefTypeHandle) 1112public static bool TryBuildFunctionPointerType(RuntimeTypeHandle returnTypeHandle, RuntimeTypeHandle[] parameterHandles, bool isUnmanaged, out RuntimeTypeHandle runtimeTypeHandle)
Internal\Runtime\TypeLoader\TypeBuilderState.cs (1)
45public RuntimeTypeHandle HalfBakedRuntimeTypeHandle;
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericMethodsLookup.cs (15)
26public RuntimeTypeHandle _declaringTypeHandle; 28public RuntimeTypeHandle[] _genericMethodArgumentHandles; 151RuntimeTypeHandle parsedDeclaringTypeHandle = externalReferencesLookup.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 175RuntimeTypeHandle parsedArgHandle = externalReferencesLookup.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 229public bool TryGetGenericMethodComponents(IntPtr methodDictionary, out RuntimeTypeHandle declaringType, out MethodNameAndSignature nameAndSignature, out RuntimeTypeHandle[] genericMethodArgumentHandles, out bool isAsyncVariant) 240public static bool TryGetGenericMethodComponents(IntPtr methodDictionary, out RuntimeTypeHandle declaringType, out RuntimeTypeHandle[] genericMethodArgumentHandles) 392private bool TryGetDynamicGenericMethodComponents(IntPtr methodDictionary, out RuntimeTypeHandle declaringType, out MethodNameAndSignature methodNameAndSignature, out RuntimeTypeHandle[] genericMethodArgumentHandles, out bool isAsyncVariant) 394declaringType = default(RuntimeTypeHandle); 416private static unsafe bool TryGetStaticGenericMethodComponents(IntPtr methodDictionary, out RuntimeTypeHandle declaringType, out MethodNameAndSignature nameAndSignature, out RuntimeTypeHandle[] genericMethodArgumentHandles, out bool isAsyncVariant) 453genericMethodArgumentHandles = new RuntimeTypeHandle[arity]; 464declaringType = 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 (47)
25public override bool TryGetOwningTypeForMethodDictionary(IntPtr dictionary, out RuntimeTypeHandle owningType) 36public override bool TryGetConstructedGenericTypeForComponents(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles, out RuntimeTypeHandle runtimeTypeHandle) 52public override RuntimeMethodHandle GetRuntimeMethodHandleForComponents(RuntimeTypeHandle declaringTypeHandle, MethodHandle handle, RuntimeTypeHandle[] genericMethodArgs) 57public override IntPtr TryGetDefaultConstructorForType(RuntimeTypeHandle runtimeTypeHandle) 62public override unsafe IntPtr ResolveGenericVirtualMethodTarget(RuntimeTypeHandle targetTypeHandle, RuntimeTypeHandle declaringTypeHandle, MethodHandle methodHandle, bool isAsyncVariant, void* methodInstantiation, bool isMethodInstantiationDataRelative) 70public override RuntimeFieldHandle GetRuntimeFieldHandleForComponents(RuntimeTypeHandle declaringTypeHandle, FieldHandle handle) 75public override IntPtr ConvertUnboxingFunctionPointerToUnderlyingNonUnboxingPointer(IntPtr unboxingFunctionPointer, RuntimeTypeHandle declaringType) 80public override bool TryGetPointerTypeForTargetType(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 85public override bool TryGetArrayTypeForElementType(RuntimeTypeHandle elementTypeHandle, bool isMdArray, int rank, out RuntimeTypeHandle arrayTypeHandle) 216private static RuntimeTypeHandle[] GetTypeSequence(ref ExternalReferencesTable extRefs, ref NativeParser parser) 219RuntimeTypeHandle[] result = new RuntimeTypeHandle[count]; 226public bool TryGetConstructedGenericTypeForComponents(RuntimeTypeHandle genericTypeDefinitionHandle, RuntimeTypeHandle[] genericTypeArgumentHandles, out RuntimeTypeHandle runtimeTypeHandle) 237public bool TryGetFunctionPointerTypeForComponents(RuntimeTypeHandle returnTypeHandle, RuntimeTypeHandle[] parameterHandles, bool isUnmanaged, out RuntimeTypeHandle runtimeTypeHandle) 248public bool TryLookupFunctionPointerTypeForComponents(RuntimeTypeHandle returnTypeHandle, RuntimeTypeHandle[] parameterHandles, bool isUnmanaged, out RuntimeTypeHandle runtimeTypeHandle) 264static bool AllNonDynamicTypes(RuntimeTypeHandle[] handles) 266foreach (RuntimeTypeHandle h in handles) 274public bool TryGetArrayTypeForElementType(RuntimeTypeHandle elementTypeHandle, bool isMdArray, int rank, out RuntimeTypeHandle arrayTypeHandle) 291internal static bool TryGetArrayTypeForElementType_LookupOnly(RuntimeTypeHandle elementTypeHandle, bool isMdArray, int rank, out RuntimeTypeHandle arrayTypeHandle) 306public bool TryGetPointerTypeForTargetType(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 320public static bool TryGetPointerTypeForTargetType_LookupOnly(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 335public bool TryGetByRefTypeForTargetType(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle byRefTypeHandle) 349public static bool TryGetByRefTypeForTargetType_LookupOnly(RuntimeTypeHandle pointeeTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 364public int GetCanonicalHashCode(RuntimeTypeHandle typeHandle) 374public bool TryGetGenericMethodDictionaryForComponents(RuntimeTypeHandle declaringTypeHandle, RuntimeTypeHandle[] genericMethodArgHandles, MethodNameAndSignature nameAndSignature, out IntPtr methodDictionary) 399public bool CanInstantiationsShareCode(RuntimeTypeHandle[] genericArgHandles1, RuntimeTypeHandle[] genericArgHandles2) 452public static IntPtr ConvertUnboxingFunctionPointerToUnderlyingNonUnboxingPointer(IntPtr unboxingFunctionPointer, RuntimeTypeHandle declaringType)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.FieldAccess.cs (2)
47RuntimeTypeHandle declaringTypeHandle, 80RuntimeTypeHandle entryDeclaringTypeHandle = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned());
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.GVMResolution.cs (16)
40RuntimeTypeHandle rtth = type.GetRuntimeTypeHandle(); 123internal unsafe IntPtr ResolveGenericVirtualMethodTarget(RuntimeTypeHandle targetTypeHandle, RuntimeTypeHandle declaringTypeHandle, MethodHandle methodHandle, bool isAsyncVariant, void* methodInstantiation, bool isMethodInstantiationDataRelative) 130RuntimeTypeHandle[] methodInstantiationHandles = GetMethodInstantiationFromList(methodInstantiation, methodHandle.GetMethod(reader).GenericParameters.Count, isMethodInstantiationDataRelative); 164private static unsafe RuntimeTypeHandle[] GetMethodInstantiationFromList(void* methodInstantiation, int count, bool isRelative) 166RuntimeTypeHandle[] result = new RuntimeTypeHandle[count]; 201RuntimeTypeHandle targetTypeHandle = default; 222RuntimeTypeHandle implementingTypeHandle = extRefs.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 353RuntimeTypeHandle openCallingTypeHandle = slotMethod.OwningType.GetTypeDefinition().RuntimeTypeHandle; 356RuntimeTypeHandle openTargetTypeHandle = targetType.GetTypeDefinition().RuntimeTypeHandle; 383RuntimeTypeHandle interfaceTypeHandle = extRefs.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 479RuntimeTypeHandle openCallingTypeHandle = slotMethod.OwningType.GetTypeDefinition().RuntimeTypeHandle; 482RuntimeTypeHandle openTargetTypeHandle = targetType.GetTypeDefinition().RuntimeTypeHandle; 507RuntimeTypeHandle parsedCallingTypeHandle = extRefs.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 511RuntimeTypeHandle parsedTargetTypeHandle = extRefs.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned());
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.LdTokenResultLookup.cs (22)
27private RuntimeTypeHandle _declaringType; 30public RuntimeFieldHandleKey(RuntimeTypeHandle declaringType, FieldHandle fieldHandle) 55private RuntimeTypeHandle _declaringType; 57private RuntimeTypeHandle[] _genericArgs; 59public RuntimeMethodHandleKey(RuntimeTypeHandle declaringType, MethodHandle handle, RuntimeTypeHandle[] genericArgs) 115public unsafe RuntimeFieldHandle GetRuntimeFieldHandleForComponents(RuntimeTypeHandle declaringTypeHandle, int handle) 120public unsafe RuntimeFieldHandle GetRuntimeFieldHandleForComponents(RuntimeTypeHandle declaringTypeHandle, FieldHandle handle) 140public unsafe bool TryGetRuntimeFieldHandleComponents(RuntimeFieldHandle runtimeFieldHandle, out RuntimeTypeHandle declaringTypeHandle, out FieldHandle fieldHandle) 151public unsafe RuntimeMethodHandle GetRuntimeMethodHandleForComponents(RuntimeTypeHandle declaringTypeHandle, int handle, RuntimeTypeHandle[] genericMethodArgs) 159public unsafe RuntimeMethodHandle GetRuntimeMethodHandleForComponents(RuntimeTypeHandle declaringTypeHandle, MethodHandle handle, RuntimeTypeHandle[] genericMethodArgs) 176RuntimeTypeHandle* genericArgPtr = &methodData->FirstArgument; 179RuntimeTypeHandle currentArg = genericMethodArgs[i]; 192public unsafe bool TryGetRuntimeMethodHandleComponents(RuntimeMethodHandle runtimeMethodHandle, out RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition handle, out RuntimeTypeHandle[] genericMethodArgs) 204public unsafe bool TryGetRuntimeMethodHandleComponents(RuntimeMethodHandle runtimeMethodHandle, out RuntimeTypeHandle declaringTypeHandle, out MethodHandle handle, out RuntimeTypeHandle[] genericMethodArgs) 213RuntimeTypeHandle* genericArgPtr = (RuntimeTypeHandle*)&methodData->FirstArgument; 214genericMethodArgs = new RuntimeTypeHandle[methodData->NumGenericArgs];
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.Metadata.cs (35)
74public static unsafe bool TryGetMetadataForNamedType(RuntimeTypeHandle runtimeTypeHandle, out QTypeDefinition qTypeDefinition) 94RuntimeTypeHandle foundType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 126public static unsafe bool TryGetNamedTypeForMetadata(QTypeDefinition qTypeDefinition, out RuntimeTypeHandle runtimeTypeHandle) 171public static unsafe bool TryGetArrayTypeForNonDynamicElementType(RuntimeTypeHandle elementTypeHandle, bool isMdArray, int rank, out RuntimeTypeHandle arrayTypeHandle) 173arrayTypeHandle = default(RuntimeTypeHandle); 196RuntimeTypeHandle foundArrayType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 197RuntimeTypeHandle foundArrayElementType = RuntimeAugments.GetRelatedParameterTypeHandle(foundArrayType); 211public static unsafe bool TryGetByRefTypeForNonDynamicElementType(RuntimeTypeHandle elementTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 217public static unsafe bool TryGetPointerTypeForNonDynamicElementType(RuntimeTypeHandle elementTypeHandle, out RuntimeTypeHandle pointerTypeHandle) 223private static unsafe bool TryGetParameterizedTypeForNonDynamicElementType(RuntimeTypeHandle elementTypeHandle, int hashCode, ReflectionMapBlob blob, out RuntimeTypeHandle parameterizedTypeHandle) 240RuntimeTypeHandle foundParameterizedType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 241RuntimeTypeHandle foundElementType = RuntimeAugments.GetRelatedParameterTypeHandle(foundParameterizedType); 255public bool TryGetStaticFunctionPointerTypeForComponents(RuntimeTypeHandle returnTypeHandle, RuntimeTypeHandle[] parameterHandles, bool isUnmanaged, out RuntimeTypeHandle runtimeTypeHandle) 274RuntimeTypeHandle foundTypeHandle = externalReferences.GetRuntimeTypeHandleFromIndex(foundFnPtrTypeIndex); 303public static unsafe IntPtr GetStaticClassConstructionContext(RuntimeTypeHandle typeHandle) 341RuntimeTypeHandle foundType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 408public IntPtr TryGetDefaultConstructorForType(RuntimeTypeHandle runtimeTypeHandle) 450RuntimeTypeHandle entryType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 463public RuntimeTypeHandle DeclaringInvokeType; 470RuntimeTypeHandle methodHandleDeclaringType, QMethodDefinition method, RuntimeTypeHandle[] genericArgs, 509RuntimeTypeHandle entryType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 522RuntimeTypeHandle declaringTypeOfVirtualInvoke = methodHandleDeclaringType; 576RuntimeTypeHandle declaringTypeHandle, 578RuntimeTypeHandle[] genericMethodTypeArgumentHandles, 609RuntimeTypeHandle declaringTypeHandle, 611RuntimeTypeHandle[] genericMethodTypeArgumentHandles, 644RuntimeTypeHandle entryType = externalReferences.GetRuntimeTypeHandleFromIndex(entryParser.GetUnsigned()); 659RuntimeTypeHandle[] methodInstantiation = GetTypeSequence(ref externalReferences, ref entryParser);
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)
119return (DefType)ResolveRuntimeTypeHandle(typeof(RuntimeTypeHandle).TypeHandle);
Internal\Runtime\TypeLoader\TypeSystemExtensions.cs (2)
46public static bool IsNull(this RuntimeTypeHandle rtth) 47=> 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)
24internal class RuntimeTypeHandleToParameterTypeRuntimeTypeHandleHashtable : LockFreeReaderHashtableOfPointers<RuntimeTypeHandle, RuntimeTypeHandle> 26protected override bool CompareKeyToValue(RuntimeTypeHandle key, RuntimeTypeHandle value) 34protected override bool CompareValueToValue(RuntimeTypeHandle value1, RuntimeTypeHandle value2) 39protected override RuntimeTypeHandle ConvertIntPtrToValue(IntPtr pointer) 47protected override IntPtr ConvertValueToIntPtr(RuntimeTypeHandle value) 52protected override RuntimeTypeHandle CreateValueFromKey(RuntimeTypeHandle key) 57protected override int GetKeyHashCode(RuntimeTypeHandle key) 62protected override int GetValueHashCode(RuntimeTypeHandle value) 73public readonly RuntimeTypeHandle ReturnType; 74public readonly RuntimeTypeHandle[] ParameterTypes; 76public FunctionPointerTypeKey(RuntimeTypeHandle returnType, RuntimeTypeHandle[] parameterTypes, bool isUnmanaged) 80internal class FunctionPointerRuntimeTypeHandleHashtable : LockFreeReaderHashtableOfPointers<FunctionPointerTypeKey, RuntimeTypeHandle> 82protected override bool CompareKeyToValue(FunctionPointerTypeKey key, RuntimeTypeHandle value) 96protected override bool CompareValueToValue(RuntimeTypeHandle value1, RuntimeTypeHandle value2) 101protected override RuntimeTypeHandle ConvertIntPtrToValue(IntPtr pointer) 109protected override IntPtr ConvertValueToIntPtr(RuntimeTypeHandle value) 114protected override RuntimeTypeHandle CreateValueFromKey(FunctionPointerTypeKey key) 124protected override int GetValueHashCode(RuntimeTypeHandle value) 162public TypeDesc[] ResolveRuntimeTypeHandlesInternal(RuntimeTypeHandle[] runtimeTypeHandles) 170public Instantiation ResolveRuntimeTypeHandles(RuntimeTypeHandle[] runtimeTypeHandles) 176private LowLevelDictionary<RuntimeTypeHandle, TypeDesc> _runtimeTypeHandleResolutionCache = 177new LowLevelDictionary<RuntimeTypeHandle, TypeDesc>(); 179public TypeDesc ResolveRuntimeTypeHandle(RuntimeTypeHandle rtth) 203RuntimeTypeHandle typeDefRuntimeTypeHandle; 204RuntimeTypeHandle[] genericArgRuntimeTypeHandles; 213RuntimeTypeHandle elementTypeHandle = RuntimeAugments.GetRelatedParameterTypeHandle(rtth); 225RuntimeTypeHandle targetTypeHandle = RuntimeAugments.GetRelatedParameterTypeHandle(rtth); 231RuntimeTypeHandle returnTypeHandle = RuntimeAugments.GetFunctionPointerReturnType(rtth); 232RuntimeTypeHandle[] parameterHandles = RuntimeAugments.GetFunctionPointerParameterTypes(rtth); 245RuntimeTypeHandle targetTypeHandle = RuntimeAugments.GetRelatedParameterTypeHandle(rtth);
src\runtime\src\coreclr\nativeaot\Common\src\Internal\Runtime\TypeLoader\ExternalReferencesTable.cs (1)
65public 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)
189public 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)
345public 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)
90public 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)
756[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);