3 instantiations of ExportedTypeHandle
System.Reflection.Metadata (3)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (3)
617return new ExportedTypeHandle(rowId); 637return new ExportedTypeHandle(handle.RowId); 647return new ExportedTypeHandle(handle.RowId);
78 references to ExportedTypeHandle
ILCompiler.Compiler (3)
Compiler\AnalysisBasedMetadataManager.cs (2)
15using ExportedTypeHandle = System.Reflection.Metadata.ExportedTypeHandle; 262public bool GeneratesMetadata(EcmaModule module, ExportedTypeHandle exportedTypeHandle)
Compiler\UsageBasedMetadataManager.cs (1)
1050public bool GeneratesMetadata(EcmaModule module, ExportedTypeHandle exportedTypeHandle)
ILCompiler.MetadataTransform (6)
ILCompiler\Metadata\IMetadataPolicy.cs (1)
55bool GeneratesMetadata(Cts.Ecma.EcmaModule module, Ecma.ExportedTypeHandle exportedType);
ILCompiler\Metadata\Transform.TypeForwarders.cs (5)
28foreach (var exportedTypeHandle in module.MetadataReader.ExportedTypes) 47private TypeForwarder HandleTypeForwarder(Cts.Ecma.EcmaModule module, Ecma.ExportedTypeHandle handle) 84TypeForwarder scope = HandleTypeForwarder(module, (Ecma.ExportedTypeHandle)exportedType.Implementation); 102public readonly Ecma.ExportedTypeHandle ExportedType; 103public ForwarderKey(Cts.Ecma.EcmaModule module, Ecma.ExportedTypeHandle exportedType)
ILCompiler.ReadyToRun (6)
Compiler\DependencyAnalysis\ReadyToRun\TypesTableNode.cs (3)
59foreach (TypeInfo<ExportedTypeHandle> expTypeInfo in r2rManager.GetExportedTypes(_module)) 61ExportedTypeHandle expTypeHandle = expTypeInfo.Handle; 74expTypeHandle = (ExportedTypeHandle)expType.Implementation;
Compiler\ReadyToRunTableManager.cs (3)
208public IEnumerable<TypeInfo<ExportedTypeHandle>> GetExportedTypes(EcmaModule module) 210foreach (ExportedTypeHandle exportedTypeHandle in module.MetadataReader.ExportedTypes) 212yield return new TypeInfo<ExportedTypeHandle>(module.MetadataReader, exportedTypeHandle);
ILCompiler.TypeSystem (16)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaModule.cs (16)
139item = _module.ResolveExportedType((ExportedTypeHandle)handle); 339private ExportedTypeHandle[] _exportedTypeBuckets; 340private volatile ExportedTypeHandle[] _exportedTypeBucketHeads; 342private ExportedTypeHandle[] InitializeExportedTypeBucketHeads() 344ExportedTypeHandle[] buckets = new ExportedTypeHandle[_metadataReader.ExportedTypes.Count + 1]; 345ExportedTypeHandle[] bucketHeads = new ExportedTypeHandle[(buckets.Length / 8) + 1]; 348foreach (ExportedTypeHandle typeHandle in reader.ExportedTypes) 356ref ExportedTypeHandle head = ref bucketHeads[(uint)hashCode % bucketHeads.Length]; 357ref ExportedTypeHandle entry = ref buckets[MetadataTokens.GetRowNumber(typeHandle)]; 369private ExportedTypeHandle FindExportedType(int hashCode, ReadOnlySpan<byte> nameSpace, ReadOnlySpan<byte> name) 373ExportedTypeHandle[] bucketHeads = _exportedTypeBucketHeads ?? InitializeExportedTypeBucketHeads(); 374ExportedTypeHandle entry = bucketHeads[(uint)hashCode % bucketHeads.Length]; 402ExportedTypeHandle exportedTypeHandle = currentModule.FindExportedType(hashCode, nameSpace, name); 725private object ResolveExportedType(ExportedTypeHandle handle)
Microsoft.CodeAnalysis (1)
MetadataReader\PEModule.cs (1)
3863foreach (var handle in forwarders)
Microsoft.CodeAnalysis.Features (1)
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
198foreach (var eth in md.ExportedTypes)
Microsoft.Diagnostics.DataContractReader.Legacy (2)
MetaDataImportImpl.cs (2)
1883ExportedTypeHandle handle = MetadataTokens.ExportedTypeHandle(GetRID(mdct)); 1989foreach (ExportedTypeHandle eth in _reader.ExportedTypes)
Microsoft.DotNet.GenFacades (1)
GenPartialFacadeSourceGenerator.cs (1)
119foreach (var exportedTypeHandle in reader.ExportedTypes)
System.Reflection.Metadata (39)
System\Reflection\Metadata\Ecma335\CodedIndex.cs (3)
29/// <see cref="ExportedTypeHandle"/>, 76/// <param name="handle"><see cref="AssemblyFileHandle"/>, <see cref="ExportedTypeHandle"/> or <see cref="AssemblyReferenceHandle"/></param> 156/// <see cref="ExportedTypeHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (5)
731/// <see cref="ExportedTypeHandle"/>, 1135/// <param name="implementation"><see cref="AssemblyFileHandle"/>, <see cref="ExportedTypeHandle"/> or <see cref="AssemblyReferenceHandle"/></param> 1138public ExportedTypeHandle AddExportedType( 1154return ExportedTypeHandle.FromRowId(_exportedTypeTable.Count); 1388/// <see cref="ExportedTypeHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (2)
365public static ExportedTypeHandle ExportedTypeHandle(int rowNumber) 367return Metadata.ExportedTypeHandle.FromRowId(ToRowId(rowNumber));
System\Reflection\Metadata\Internal\NamespaceCache.cs (3)
361foreach (var exportedTypeHandle in _metadataReader.ExportedTypes) 418public ImmutableArray<ExportedTypeHandle>.Builder? ExportedTypes; 429ExportedTypes = ImmutableArray.CreateBuilder<ExportedTypeHandle>();
System\Reflection\Metadata\Internal\NamespaceData.cs (2)
15public readonly ImmutableArray<ExportedTypeHandle> ExportedTypes; 23ImmutableArray<ExportedTypeHandle> exportedTypes)
System\Reflection\Metadata\MetadataReader.cs (1)
1168public ExportedType GetExportedType(ExportedTypeHandle handle)
System\Reflection\Metadata\TypeSystem\ExportedType.cs (3)
19private ExportedTypeHandle Handle 21get { return ExportedTypeHandle.FromRowId(rowId); } 73/// <item><description><see cref="ExportedTypeHandle"/> representing the declaring exported type in which this was is nested.</description></item>
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (6)
1431public readonly struct ExportedTypeHandleCollection : IReadOnlyCollection<ExportedTypeHandle> 1451IEnumerator<ExportedTypeHandle> IEnumerable<ExportedTypeHandle>.GetEnumerator() 1461public struct Enumerator : IEnumerator<ExportedTypeHandle>, IEnumerator 1478public ExportedTypeHandle Current 1482return ExportedTypeHandle.FromRowId((int)(_currentRowId & TokenTypeIds.RIDMask));
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (13)
603public readonly struct ExportedTypeHandle : IEquatable<ExportedTypeHandle> 615internal static ExportedTypeHandle FromRowId(int rowId) 620public static implicit operator Handle(ExportedTypeHandle handle) 625public static implicit operator EntityHandle(ExportedTypeHandle handle) 630public static explicit operator ExportedTypeHandle(Handle handle) 640public static explicit operator ExportedTypeHandle(EntityHandle handle) 660public static bool operator ==(ExportedTypeHandle left, ExportedTypeHandle right) 667return obj is ExportedTypeHandle && ((ExportedTypeHandle)obj)._rowId == _rowId; 670public bool Equals(ExportedTypeHandle other) 680public static bool operator !=(ExportedTypeHandle left, ExportedTypeHandle right)
System\Reflection\Metadata\TypeSystem\NamespaceDefinition.cs (1)
60public ImmutableArray<ExportedTypeHandle> ExportedTypes
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.cs (1)
84foreach (ExportedTypeHandle exportedTypeHandle in reader.ExportedTypes)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
27public static ExportedType GetExportedType(this ExportedTypeHandle handle, MetadataReader reader) => reader.GetExportedType(handle);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.GetTypeCore.cs (1)
42foreach (ExportedTypeHandle h in reader.ExportedTypes)