9 overrides of TypeHandle
System.Private.CoreLib (6)
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;
System\RuntimeType.NativeAot.cs (1)
218public override RuntimeTypeHandle TypeHandle
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
150public override RuntimeTypeHandle TypeHandle
System.Reflection.Emit (1)
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.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
388public sealed override RuntimeTypeHandle TypeHandle => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
291 references to TypeHandle
dotnet-svcutil-lib (27)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (5)
111return GetDataContract(type.TypeHandle, type); 617int id = DataContract.GetId(classContract.TypeForInitialization.TypeHandle); 801if (Globals.TypeOfDateTimeOffset.TypeHandle.Equals(typeHandle)) 803return Globals.TypeOfDateTimeOffsetAdapter.TypeHandle; 1091s_typeHandleRef.Value = GetDataContractAdapterTypeHandle(type.TypeHandle);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSerializer.cs (3)
338context.SerializeWithoutXsiType(contract, writer, graph, declaredType.TypeHandle); 360context.SerializeWithXsiTypeAtTopLevel(contract, writer, graph, declaredType.TypeHandle, graphType); 377return DataContract.GetDataContract(objectType.TypeHandle, objectType, SerializationMode.SharedContract);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (2)
269return DataContract.GetGetOnlyCollectionDataContract(DataContract.GetId(dataMemberType.TypeHandle), dataMemberType.TypeHandle, dataMemberType, SerializationMode.SharedContract);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataMember.cs (2)
277_memberTypeContract = DataContract.GetGetOnlyCollectionDataContract(DataContract.GetId(MemberType.TypeHandle), MemberType.TypeHandle, MemberType, SerializationMode.SharedContract);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
380context.SerializeWithoutXsiType(propDataContract, writer, prop.GetValue(value), prop.PropertyType.TypeHandle);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
474_ilg.Load(DataContract.GetId(declaredType.TypeHandle));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
628_ilg.Load(DataContract.GetId(memberType.TypeHandle));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerContext.cs (1)
127return GetDataContract(type.TypeHandle, type);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (2)
105dataContract = (declaredTypeID < 0) ? GetDataContract(declaredType) : GetDataContract(declaredTypeID, declaredType.TypeHandle); 115dataContract = (declaredTypeID < 0) ? GetDataContract(declaredType) : GetDataContract(declaredTypeID, declaredType.TypeHandle);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (5)
118SerializeWithXsiType(xmlWriter, obj, obj.GetType().TypeHandle, null/*type*/, -1, declaredType.TypeHandle, declaredType); 127RuntimeTypeHandle objTypeHandle = obj.GetType().TypeHandle; 501return obj.GetType().TypeHandle.Equals(memberType.TypeHandle);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (4)
253RuntimeTypeHandle objTypeHandle = isDeclaredType ? declaredTypeHandle : obj.GetType().TypeHandle; 259declaredTypeHandle = declaredType.TypeHandle; 262objTypeHandle = objType.TypeHandle; 269SerializeWithXsiType(xmlWriter, obj, objTypeHandle, objType, -1, declaredType.TypeHandle, declaredType);
ILCompiler.Compiler (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
22/// <see cref="System.Type.TypeHandle"/>
ILCompiler.Diagnostics (1)
_generated\1\Microsoft.DiaSymReader.ISymNGenWriter2.cs (1)
34global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymNGenWriter).TypeHandle).ManagedVirtualMethodTable,
illink (1)
ILLink.RoslynAnalyzer (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
22/// <see cref="System.Type.TypeHandle"/>
Microsoft.Diagnostics.DataContractReader.Legacy (68)
_generated\0\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAppDomain.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataAppDomain).TypeHandle);
_generated\1\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataExceptionState.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionState).TypeHandle);
_generated\10\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataValue.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue).TypeHandle);
_generated\11\Microsoft.Diagnostics.DataContractReader.Legacy.DacDbiImpl.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IDacDbiInterface).TypeHandle);
_generated\12\Microsoft.Diagnostics.DataContractReader.Legacy.MetaDataImportImpl.cs (3)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport2).TypeHandle); 17details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport).TypeHandle); 20details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataAssemblyImport).TypeHandle);
_generated\13\Microsoft.Diagnostics.DataContractReader.Legacy.SOSDacImpl.cs (21)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface).TypeHandle); 17details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface2).TypeHandle); 20details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface3).TypeHandle); 23details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface4).TypeHandle); 26details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface5).TypeHandle); 29details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface6).TypeHandle); 32details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7).TypeHandle); 35details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8).TypeHandle); 38details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface9).TypeHandle); 41details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface10).TypeHandle); 44details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface11).TypeHandle); 47details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface12).TypeHandle); 50details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface13).TypeHandle); 53details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface14).TypeHandle); 56details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface15).TypeHandle); 59details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface16).TypeHandle); 62details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface17).TypeHandle); 65details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataEnumMemoryRegions).TypeHandle); 68details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataProcess3).TypeHandle); 71details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataProcess2).TypeHandle); 74details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataProcess).TypeHandle);
_generated\14\Microsoft.Diagnostics.DataContractReader.Legacy.SOSDacImpl.SOSHandleEnum.cs (2)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSHandleEnum).TypeHandle); 17details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum).TypeHandle);
_generated\15\Microsoft.Diagnostics.DataContractReader.Legacy.SOSDacImpl.SOSMemoryEnum.cs (2)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSMemoryEnum).TypeHandle); 17details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum).TypeHandle);
_generated\16\Microsoft.Diagnostics.DataContractReader.Legacy.SOSDacImpl.SOSStackRefEnum.cs (2)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStackRefEnum).TypeHandle); 17details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum).TypeHandle);
_generated\17\Microsoft.Diagnostics.DataContractReader.Legacy.SOSDacImpl.SOSMethodEnum.cs (2)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSMethodEnum).TypeHandle); 17details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum).TypeHandle);
_generated\18\Microsoft.Diagnostics.DataContractReader.Legacy.SOSDacImpl.SOSStressLogThreadEnum.cs (2)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStressLogThreadEnum).TypeHandle); 17details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum).TypeHandle);
_generated\19\Microsoft.Diagnostics.DataContractReader.Legacy.SOSDacImpl.SOSStressLogMsgEnum.cs (2)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStressLogMsgEnum).TypeHandle); 17details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum).TypeHandle);
_generated\2\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataFrame.cs (2)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataFrame).TypeHandle); 17details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataFrame2).TypeHandle);
_generated\21\Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugMutableDataTarget.cs (1)
33global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICorDebugDataTarget).TypeHandle).ManagedVirtualMethodTable,
_generated\25\Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget2.cs (1)
40global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget).TypeHandle).ManagedVirtualMethodTable,
_generated\26\Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget3.cs (1)
43global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget2).TypeHandle).ManagedVirtualMethodTable,
_generated\3\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataMethodDefinition.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition).TypeHandle);
_generated\30\Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport2.cs (1)
97global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport).TypeHandle).ManagedVirtualMethodTable,
_generated\33\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSHandleEnum.cs (1)
31global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum).TypeHandle).ManagedVirtualMethodTable,
_generated\34\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStackRefErrorEnum.cs (1)
31global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum).TypeHandle).ManagedVirtualMethodTable,
_generated\35\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStackRefEnum.cs (1)
32global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum).TypeHandle).ManagedVirtualMethodTable,
_generated\36\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSMemoryEnum.cs (1)
31global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum).TypeHandle).ManagedVirtualMethodTable,
_generated\4\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataMethodInstance.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance).TypeHandle);
_generated\5\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataModule.cs (2)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule).TypeHandle); 17details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule2).TypeHandle);
_generated\51\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSMethodEnum.cs (1)
31global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum).TypeHandle).ManagedVirtualMethodTable,
_generated\54\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStressLogThreadEnum.cs (1)
31global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum).TypeHandle).ManagedVirtualMethodTable,
_generated\55\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStressLogMsgEnum.cs (1)
32global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum).TypeHandle).ManagedVirtualMethodTable,
_generated\6\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataStackWalk.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataStackWalk).TypeHandle);
_generated\61\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataProcess2.cs (1)
75global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataProcess).TypeHandle).ManagedVirtualMethodTable,
_generated\62\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataProcess3.cs (1)
76global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataProcess2).TypeHandle).ManagedVirtualMethodTable,
_generated\7\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataTask.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask).TypeHandle);
_generated\76\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionNotification2.cs (1)
38global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionNotification).TypeHandle).ManagedVirtualMethodTable,
_generated\77\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionNotification3.cs (1)
39global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionNotification2).TypeHandle).ManagedVirtualMethodTable,
_generated\78\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionNotification4.cs (1)
40global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionNotification3).TypeHandle).ManagedVirtualMethodTable,
_generated\79\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionNotification5.cs (1)
41global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionNotification4).TypeHandle).ManagedVirtualMethodTable,
_generated\8\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataTypeDefinition.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeDefinition).TypeHandle);
_generated\80\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTarget3.cs (1)
41global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget2).TypeHandle).ManagedVirtualMethodTable,
_generated\9\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataTypeInstance.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance).TypeHandle);
Microsoft.DiaSymReader (19)
_generated\0\Microsoft.DiaSymReader.MetadataAdapterBase.cs (2)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.DiaSymReader.IMetadataImport).TypeHandle); 17details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.DiaSymReader.IMetadataEmit).TypeHandle);
_generated\1\Microsoft.DiaSymReader.SymReaderMetadataAdapter.cs (2)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.DiaSymReader.IMetadataImport).TypeHandle); 17details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.DiaSymReader.IMetadataEmit).TypeHandle);
_generated\12\Microsoft.DiaSymReader.ISymUnmanagedBinder2.cs (1)
30global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedBinder).TypeHandle).ManagedVirtualMethodTable,
_generated\13\Microsoft.DiaSymReader.ISymUnmanagedBinder3.cs (1)
31global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedBinder2).TypeHandle).ManagedVirtualMethodTable,
_generated\14\Microsoft.DiaSymReader.ISymUnmanagedBinder4.cs (1)
33global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedBinder3).TypeHandle).ManagedVirtualMethodTable,
_generated\2\Microsoft.DiaSymReader.SymWriterMetadataAdapter.cs (2)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.DiaSymReader.IMetadataImport).TypeHandle); 17details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.DiaSymReader.IMetadataEmit).TypeHandle);
_generated\20\Microsoft.DiaSymReader.ISymUnmanagedMethod2.cs (1)
38global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedMethod).TypeHandle).ManagedVirtualMethodTable,
_generated\23\Microsoft.DiaSymReader.ISymUnmanagedReader2.cs (1)
47global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedReader).TypeHandle).ManagedVirtualMethodTable,
_generated\24\Microsoft.DiaSymReader.ISymUnmanagedReader3.cs (1)
49global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedReader2).TypeHandle).ManagedVirtualMethodTable,
_generated\25\Microsoft.DiaSymReader.ISymUnmanagedReader4.cs (1)
52global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedReader3).TypeHandle).ManagedVirtualMethodTable,
_generated\26\Microsoft.DiaSymReader.ISymUnmanagedReader5.cs (1)
53global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedReader4).TypeHandle).ManagedVirtualMethodTable,
_generated\29\Microsoft.DiaSymReader.ISymUnmanagedScope2.cs (1)
37global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedScope).TypeHandle).ManagedVirtualMethodTable,
_generated\3\Microsoft.DiaSymReader.ComMemoryStream.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.DiaSymReader.IUnsafeComStream).TypeHandle);
_generated\38\Microsoft.DiaSymReader.ISymUnmanagedWriter8.cs (1)
65global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymUnmanagedWriter5).TypeHandle).ManagedVirtualMethodTable,
_generated\4\Microsoft.DiaSymReader.ComStreamWrapper.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.DiaSymReader.IUnsafeComStream).TypeHandle);
_generated\5\Microsoft.DiaSymReader.Utilities.UnsafeComStreamWrapper.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(Microsoft.DiaSymReader.IUnsafeComStream).TypeHandle);
Microsoft.TestPlatform.AdapterUtilities (1)
ManagedNameUtilities\ManagedNameHelper.Reflection.cs (1)
160method = MethodBase.GetMethodFromHandle(methodHandle, semanticType.TypeHandle)!;
PresentationFramework (6)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1379RuntimeHelpers.RunClassConstructor(currentType.TypeHandle);
System\Windows\Markup\RoutedEventConverter.cs (1)
113RuntimeHelpers.RunClassConstructor(currentType.TypeHandle);
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
45RuntimeHelpers.RunClassConstructor(currentType.TypeHandle);
System\Windows\Markup\XamlReader.cs (1)
953RuntimeHelpers.RunClassConstructor(typeof(Application).TypeHandle);
System\Windows\Markup\XamlTypeMapper.cs (1)
1998RuntimeHelpers.RunClassConstructor(currentType.TypeHandle);
System\Windows\SystemResources.cs (1)
808RuntimeHelpers.RunClassConstructor(knownTypeHelper.TypeHandle);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
428System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(editorBaseType.TypeHandle);
System.Private.CoreLib (60)
Internal\IntrinsicSupport\ComparerHelpers.cs (5)
22MethodTable* icomparableType = typeof(IComparable<>).TypeHandle.ToMethodTable(); 62openComparerType = typeof(NullableComparer<>).TypeHandle; 67openComparerType = typeof(EnumComparer<>).TypeHandle; 75openComparerType = typeof(GenericComparer<>).TypeHandle; 80openComparerType = typeof(ObjectComparer<>).TypeHandle;
Internal\IntrinsicSupport\EqualityComparerHelpers.cs (5)
25MethodTable* iequatableType = typeof(IEquatable<>).TypeHandle.ToMethodTable(); 75openComparerType = typeof(NullableEqualityComparer<>).TypeHandle; 80openComparerType = typeof(EnumEqualityComparer<>).TypeHandle; 88openComparerType = typeof(GenericEqualityComparer<>).TypeHandle; 93openComparerType = typeof(ObjectEqualityComparer<>).TypeHandle;
Internal\Reflection\Augments\ReflectionAugments.cs (1)
58eeType = underlyingType.TypeHandle.ToMethodTable();
Internal\Runtime\Augments\RuntimeAugments.cs (2)
132return NewArray(elementType.MakeArrayType().TypeHandle, lengths[0]); 397return typeof(Array<>).TypeHandle;
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\SR.cs (4)
84RuntimeHelpers.RunClassConstructor(typeof(ResourceManager).TypeHandle); 85RuntimeHelpers.RunClassConstructor(typeof(ResourceReader).TypeHandle); 86RuntimeHelpers.RunClassConstructor(typeof(RuntimeResourceSet).TypeHandle); 87RuntimeHelpers.RunClassConstructor(typeof(BinaryReader).TypeHandle);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
477return o.GetType().TypeHandle;
System\ActivatorImplementation.cs (2)
35RuntimeTypeHandle typeHandle = type.TypeHandle; 88RuntimeTypeHandle typeHandle = type.TypeHandle;
System\Array.NativeAot.cs (4)
73return RuntimeAugments.NewArray(elementType.MakeArrayType().TypeHandle, pLengths[0]); 84return NewMultiDimArray(arrayType.TypeHandle.ToMethodTable(), pImmutableLengths, rank); 113: arrayType.GetElementType().MakeArrayType().TypeHandle; 252return RuntimeImports.RhNewArray(elementType.MakeArrayType().TypeHandle.ToMethodTable(), pDimensions[0]);
System\Collections\Generic\Comparer.NativeAot.cs (1)
24return Unsafe.As<Comparer<T>>(ComparerHelpers.GetComparer(typeof(T).TypeHandle));
System\Collections\Generic\EqualityComparer.NativeAot.cs (1)
30return Unsafe.As<EqualityComparer<T>>(EqualityComparerHelpers.GetComparer(typeof(T).TypeHandle));
System\Delegate.cs (1)
372RuntimeTypeHandle typeHandle = t.TypeHandle;
System\InvokeUtils.cs (1)
403if (dstEEType == typeof(void*).TypeHandle.ToMethodTable() || RuntimeImports.AreTypesAssignable(pSourceType: srcPointer.GetPointerType().TypeHandle.ToMethodTable(), pTargetType: dstEEType))
System\Reflection\DynamicInvokeInfo.cs (2)
84MethodTable* eeArgumentType = argumentType.TypeHandle.ToMethodTable(); 130MethodTable* eeReturnType = returnType.TypeHandle.ToMethodTable();
System\Reflection\Runtime\FieldInfos\NativeFormat\NativeFormatRuntimeFieldInfo.cs (3)
132DeclaringType.TypeHandle, 144return ReflectionCoreExecution.ExecutionEnvironment.TryGetFieldAccessor(this._reader, this.DeclaringType.TypeHandle, this.FieldType.TypeHandle, _fieldHandle);
System\Reflection\Runtime\FieldInfos\RuntimeFieldInfo.cs (1)
210_lazyFieldAccessor = fieldAccessor = ReflectionCoreExecution.ExecutionEnvironment.CreateLiteralFieldAccessor(defaultValue, FieldType.TypeHandle);
System\Reflection\Runtime\General\MetadataReaderExtensions.NativeFormat.cs (8)
173value = RuntimeAugments.Box(enumType.TypeHandle, (IntPtr)(&v)); 182value = RuntimeAugments.Box(enumType.TypeHandle, (IntPtr)(&v)); 191value = RuntimeAugments.Box(enumType.TypeHandle, (IntPtr)(&v)); 200value = RuntimeAugments.Box(enumType.TypeHandle, (IntPtr)(&v)); 209value = RuntimeAugments.Box(enumType.TypeHandle, (IntPtr)(&v)); 218value = RuntimeAugments.Box(enumType.TypeHandle, (IntPtr)(&v)); 227value = RuntimeAugments.Box(enumType.TypeHandle, (IntPtr)(&v)); 236value = RuntimeAugments.Box(enumType.TypeHandle, (IntPtr)(&v));
System\Reflection\Runtime\MethodInfos\CustomMethodInvoker.cs (2)
42ValidateThis(thisObject, _thisType.TypeHandle); 53convertedArguments[i] = RuntimeAugments.CheckArgument(arguments[i], _parameterTypes[i].TypeHandle, binderBundle, out copyBack);
System\Reflection\Runtime\MethodInfos\NativeFormat\NativeFormatMethodCommon.cs (1)
197genericArgHandles[i] = genericArgs[i].TypeHandle;
System\Reflection\Runtime\MethodInfos\RuntimeMethodInfo.cs (3)
400return MethodInvoker.CreateDelegate(delegateType.TypeHandle, target, isStatic: isStatic, isVirtual: false, isOpen: isOpen); 420if (RuntimeAugments.IsAssignableFrom(dstType.TypeHandle, srcType.TypeHandle))
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.cs (2)
59public bool IsVoid => InternalTypeHandleIfAvailable.Equals(typeof(void).TypeHandle); 198RuntimeTypeHandle interfaceTypeHandle = interfaceType.TypeHandle;
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (2)
328MethodTable* mt = type.TypeHandle.ToMethodTable(); 362RunClassConstructor(type.TypeHandle);
System\Runtime\InteropServices\Marshal.NativeAot.cs (3)
47if (t.TypeHandle.ToMethodTable()->IsGenericTypeDefinition) 50return new IntPtr(RuntimeInteropData.GetStructFieldOffset(t.TypeHandle, fieldName)); 95RuntimeTypeHandle structureTypeHandle = structuretype.TypeHandle;
System\Runtime\InteropServices\TypeMapLazyDictionary.NativeAot.cs (1)
184RuntimeTypeHandle handle = key.TypeHandle;
System\RuntimeType.NativeAot.cs (1)
174if (!(underlyingType.TypeHandle.ToMethodTable() == value.GetMethodTable()))
System\TypedReference.cs (2)
34return new TypedReference(target, offset, type.TypeHandle); 56handle = typeof(UIntPtr).TypeHandle;
System.Private.DataContractSerialization (48)
System\Runtime\Serialization\DataContract.cs (7)
63return GetDataContract(type.TypeHandle, verifyConstructor); 387int id = DataContract.GetId(classContract.TypeForInitialization.TypeHandle); 582if (Globals.TypeOfDateTimeOffset.TypeHandle.Equals(typeHandle)) 584return Globals.TypeOfDateTimeOffsetAdapter.TypeHandle; 586if (Globals.TypeOfMemoryStream.TypeHandle.Equals(typeHandle)) 588return Globals.TypeOfMemoryStreamAdapter.TypeHandle; 958RuntimeTypeHandle runtimeTypeHandle = GetDataContractAdapterTypeHandle(type.TypeHandle);
System\Runtime\Serialization\DataContractSerializer.cs (2)
397context.SerializeWithoutXsiType(contract, writer, graph, declaredType.TypeHandle); 417context.SerializeWithXsiTypeAtTopLevel(contract, writer, graph, declaredType.TypeHandle, graphType);
System\Runtime\Serialization\DataContractSet.cs (2)
287return DataContract.GetGetOnlyCollectionDataContract(DataContract.GetId(dataMemberType.TypeHandle), dataMemberType.TypeHandle, dataMemberType);
System\Runtime\Serialization\DataMember.cs (2)
192_memberTypeContract = DataContract.GetGetOnlyCollectionDataContract(DataContract.GetId(MemberType.TypeHandle), MemberType.TypeHandle, MemberType);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (4)
526context.SerializeWithoutXsiType(contract, writer, graph, declaredType.TypeHandle); 530DataContractJsonSerializer.WriteJsonValue(JsonDataContract.GetJsonDataContract(contract), writer, graph, null, declaredType.TypeHandle); // XmlObjectSerializerWriteContextComplexJson 540context.SerializeWithXsiTypeAtTopLevel(contract, writer, graph, declaredType.TypeHandle, graphType); 544context.SerializeWithoutXsiType(contract, writer, graph, declaredType.TypeHandle);
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
179int id = JsonDataContractCriticalHelper.GetId(traditionalDataContract.UnderlyingType.TypeHandle);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
563_ilg.Load(DataContract.GetId(declaredType.TypeHandle));
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
712_ilg.Load(DataContract.GetId(memberType.TypeHandle));
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
119jsonDataContract!.WriteJsonValue(jsonWriter, current, context, collectionContract.ItemType.TypeHandle);
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (2)
201SerializeAndVerifyType(dataContract, xmlWriter, obj, verifyKnownType, declaredType.TypeHandle, declaredType); 259SerializeAndVerifyType(dataContract, xmlWriter, obj, verifyKnownType, declaredType.TypeHandle, declaredType);
System\Runtime\Serialization\ReflectionClassWriter.cs (8)
62ReflectionInternalSerialize(xmlWriter, context, memberValue, memberValue.GetType().TypeHandle.Equals(memberType.TypeHandle), writeXsiType, memberType); 102ReflectionInternalSerialize(xmlWriter, context, memberValue!, memberValue!.GetType().TypeHandle.Equals(memberType.TypeHandle), writeXsiType, memberType, originValueIsNullableOfT); 172context.InternalSerialize(xmlWriter, obj, isDeclaredType, writeXsiType, DataContract.GetId(memberType.TypeHandle), memberType.TypeHandle); 176context.InternalSerializeReference(xmlWriter, obj, isDeclaredType, writeXsiType, DataContract.GetId(memberType.TypeHandle), memberType.TypeHandle);
System\Runtime\Serialization\ReflectionReader.cs (2)
395return context.InternalDeserialize(xmlReader, DataContract.GetId(type.TypeHandle), type.TypeHandle, name, ns);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
600_ilg.Load(DataContract.GetId(declaredType.TypeHandle));
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
724_ilg.Load(DataContract.GetId(memberType.TypeHandle));
System\Runtime\Serialization\XmlObjectSerializerContext.cs (1)
102return GetDataContract(type.TypeHandle, type);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (8)
99SerializeWithXsiType(xmlWriter, obj, obj.GetType().TypeHandle, null/*type*/, -1, declaredType.TypeHandle, declaredType); 108RuntimeTypeHandle objTypeHandle = obj.GetType().TypeHandle; 445return obj.GetType().TypeHandle.Equals(memberType.TypeHandle); 567InternalSerializeReference(xmlWriter, obj, false /*isDeclaredType*/, false /*writeXsiType*/, -1, Globals.TypeOfObject.TypeHandle); 730InternalSerialize(xmlWriter, o, false /*isDeclaredType*/, false /*writeXsiType*/, -1, o.GetType().TypeHandle); 748InternalSerialize(xmlWriter, o, false /*isDeclaredType*/, false /*writeXsiType*/, -1, declaredType.TypeHandle);
System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (4)
229RuntimeTypeHandle objTypeHandle = isDeclaredType ? declaredTypeHandle : obj.GetType().TypeHandle; 235declaredTypeHandle = declaredType.TypeHandle; 238objTypeHandle = objType.TypeHandle; 245SerializeWithXsiType(xmlWriter, obj, objTypeHandle, objType, -1, declaredType.TypeHandle, declaredType);
System.Private.Reflection.Execution (9)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.Runtime.cs (2)
34IntPtr classRtMethodHandle = invoker.ResolveTarget(instanceType.TypeHandle); 40MethodBase methodBase = ReflectionExecution.GetMethodBaseFromOriginalLdftnResult(classRtMethodHandle, instanceType.TypeHandle);
Internal\Reflection\Execution\FieldAccessors\InstanceFieldAccessor.cs (2)
39if (!(targetType.TypeHandle.Equals(this.DeclaringTypeHandle))) 72if (!(targetType.TypeHandle.Equals(this.DeclaringTypeHandle)))
Internal\Reflection\Execution\FieldAccessors\PointerTypeFieldAccessorForInstanceFields.cs (2)
31RuntimeAugments.StoreValueTypeField(obj, OffsetPlusHeader, value, value.GetType().TypeHandle); 37RuntimeAugments.StoreValueTypeFieldValueIntoValueType(typedReference, this.Offset, value, value.GetType().TypeHandle);
Internal\Reflection\Execution\FieldAccessors\PointerTypeFieldAccessorForStaticFields.cs (3)
44RuntimeAugments.StoreValueTypeField(gcStaticsRegion, FieldOffset, value, value.GetType().TypeHandle); 48RuntimeAugments.StoreValueTypeField(StaticsBase + FieldOffset, value, value.GetType().TypeHandle); 54RuntimeAugments.StoreValueTypeField(threadStaticsRegion, FieldOffset, value, value.GetType().TypeHandle);
System.Private.TypeLoader (35)
Internal\Runtime\TypeLoader\EETypeCreator.cs (5)
542CreateEETypeWorker(typeof(delegate*<void>).TypeHandle.ToEETypePtr(), hashCodeOfNewType, 0, state); 560CreateEETypeWorker(typeof(void*).TypeHandle.ToEETypePtr(), hashCodeOfNewType, 0, state); 576CreateEETypeWorker(typeof(void*).TypeHandle.ToEETypePtr(), hashCodeOfNewType, 0, state); 611templateTypeHandle = typeof(delegate*<void>).TypeHandle; 616templateTypeHandle = typeof(void*).TypeHandle;
Internal\Runtime\TypeLoader\TypeBuilderState.cs (2)
63_templateType = TypeBeingBuilt.Context.ResolveRuntimeTypeHandle(typeof(object[,]).TypeHandle); 75_templateType = TypeBeingBuilt.Context.ResolveRuntimeTypeHandle(typeof(char*[]).TypeHandle);
Internal\Runtime\TypeLoader\TypeLoaderTypeSystemContext.cs (26)
56return (DefType)ResolveRuntimeTypeHandle(typeof(void).TypeHandle); 59return (DefType)ResolveRuntimeTypeHandle(typeof(bool).TypeHandle); 62return (DefType)ResolveRuntimeTypeHandle(typeof(char).TypeHandle); 65return (DefType)ResolveRuntimeTypeHandle(typeof(sbyte).TypeHandle); 68return (DefType)ResolveRuntimeTypeHandle(typeof(byte).TypeHandle); 71return (DefType)ResolveRuntimeTypeHandle(typeof(short).TypeHandle); 74return (DefType)ResolveRuntimeTypeHandle(typeof(ushort).TypeHandle); 77return (DefType)ResolveRuntimeTypeHandle(typeof(int).TypeHandle); 80return (DefType)ResolveRuntimeTypeHandle(typeof(uint).TypeHandle); 83return (DefType)ResolveRuntimeTypeHandle(typeof(long).TypeHandle); 86return (DefType)ResolveRuntimeTypeHandle(typeof(ulong).TypeHandle); 89return (DefType)ResolveRuntimeTypeHandle(typeof(IntPtr).TypeHandle); 92return (DefType)ResolveRuntimeTypeHandle(typeof(UIntPtr).TypeHandle); 95return (DefType)ResolveRuntimeTypeHandle(typeof(float).TypeHandle); 98return (DefType)ResolveRuntimeTypeHandle(typeof(double).TypeHandle); 101return (DefType)ResolveRuntimeTypeHandle(typeof(ValueType).TypeHandle); 104return (DefType)ResolveRuntimeTypeHandle(typeof(Enum).TypeHandle); 107return (DefType)ResolveRuntimeTypeHandle(typeof(Nullable<>).TypeHandle); 110return (DefType)ResolveRuntimeTypeHandle(typeof(object).TypeHandle); 113return (DefType)ResolveRuntimeTypeHandle(typeof(string).TypeHandle); 116return (DefType)ResolveRuntimeTypeHandle(typeof(Array).TypeHandle); 119return (DefType)ResolveRuntimeTypeHandle(typeof(MulticastDelegate).TypeHandle); 122return (DefType)ResolveRuntimeTypeHandle(typeof(RuntimeTypeHandle).TypeHandle); 125return (DefType)ResolveRuntimeTypeHandle(typeof(RuntimeMethodHandle).TypeHandle); 128return (DefType)ResolveRuntimeTypeHandle(typeof(RuntimeFieldHandle).TypeHandle); 131return (DefType)ResolveRuntimeTypeHandle(typeof(Exception).TypeHandle);
Internal\TypeSystem\RuntimeNoMetadataType.cs (2)
183(MethodTable->IsGenericTypeDefinition || MethodTable->BaseType == typeof(System.Enum).TypeHandle.ToEETypePtr())) 194MethodTable->BaseType != typeof(System.Enum).TypeHandle.ToEETypePtr());
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
152get { return _typeInfo.TypeHandle; }
System.Runtime.InteropServices (5)
System\Runtime\InteropServices\Marshalling\ComInterfaceMarshaller.cs (1)
24private static readonly Guid? TargetInterfaceIID = StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(T).TypeHandle)?.Iid;
System\Runtime\InteropServices\Marshalling\ComObject.cs (1)
155if (!LookUpVTableInfo(type.TypeHandle, out IIUnknownCacheStrategy.TableInfo result, out int qiHResult))
System\Runtime\InteropServices\Marshalling\ComVariantMarshaller.cs (1)
103else if (managed is not null && StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetComExposedTypeDetails(managed.GetType().TypeHandle) is not null)
System\Runtime\InteropServices\Marshalling\DefaultCaching.cs (1)
24ManagedType = details.Implementation.TypeHandle
System\Runtime\InteropServices\Marshalling\StrategyBasedComWrappers.cs (1)
85if (GetOrCreateInterfaceDetailsStrategy().GetComExposedTypeDetails(obj.GetType().TypeHandle) is { } details)
System.Transactions.Local (4)
_generated\1\System.Transactions.DtcProxyShim.EnlistmentNotifyShim.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionResourceAsync).TypeHandle);
_generated\2\System.Transactions.DtcProxyShim.Phase0NotifyShim.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionPhase0NotifyAsync).TypeHandle);
_generated\3\System.Transactions.DtcProxyShim.ResourceManagerNotifyShim.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerSink).TypeHandle);
_generated\4\System.Transactions.DtcProxyShim.VoterNotifyShim.cs (1)
14details = global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionVoterNotifyAsync2).TypeHandle);
System.Windows.Forms (3)
System\Windows\Forms\Accessibility\AccessibleObject.cs (3)
315RuntimeTypeHandle type = GetType().TypeHandle; 316return type.Equals(typeof(AccessibleObject).TypeHandle) 317|| type.GetModuleHandle().Equals(typeof(AccessibleObject).TypeHandle.GetModuleHandle());