3 instantiations of ModuleReferenceHandle
System.Reflection.Metadata (3)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (3)
1530return new ModuleReferenceHandle(rowId); 1550return new ModuleReferenceHandle(handle.RowId); 1560return new ModuleReferenceHandle(handle.RowId);
54 references to ModuleReferenceHandle
Microsoft.CodeAnalysis (8)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
419protected override ModuleReferenceHandle GetOrAddModuleReferenceHandle(string reference)
MetadataReader\MetadataDecoder.cs (2)
578var moduleRef = (ModuleReferenceHandle)tokenResolutionScope;
MetadataReader\PEModule.cs (2)
428yield return this.GetModuleRefNameOrThrow((ModuleReferenceHandle)token); 454public string GetModuleRefNameOrThrow(ModuleReferenceHandle moduleRef)
PEWriter\FullMetadataWriter.cs (1)
245protected override ModuleReferenceHandle GetOrAddModuleReferenceHandle(string reference)
PEWriter\MetadataWriter.cs (2)
307protected abstract ModuleReferenceHandle GetOrAddModuleReferenceHandle(string reference); 703internal ModuleReferenceHandle GetModuleReferenceHandle(string moduleName)
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\MetadataReaderUtils.cs (1)
58internal static IEnumerable<ModuleReferenceHandle> GetModuleReferences(this MetadataReader reader)
System.Reflection.Emit (6)
System\Reflection\Emit\ModuleBuilderImpl.cs (6)
27private Dictionary<string, ModuleReferenceHandle>? _moduleReferences; 666private ModuleReferenceHandle GetModuleReference(string moduleName) 668_moduleReferences ??= new Dictionary<string, ModuleReferenceHandle>(); 670if (!_moduleReferences.TryGetValue(moduleName, out var handle)) 964MethodImportAttributes attributes, ModuleReferenceHandle moduleHandle) => 971private ModuleReferenceHandle AddModuleReference(string moduleName) =>
System.Reflection.Metadata (37)
System\Reflection\Metadata\Ecma335\CodedIndex.cs (4)
24/// <see cref="ModuleReferenceHandle"/>, 93/// <see cref="ModuleReferenceHandle"/>, 110/// <param name="handle"><see cref="ModuleDefinitionHandle"/>, <see cref="ModuleReferenceHandle"/>, <see cref="AssemblyReferenceHandle"/> or <see cref="TypeReferenceHandle"/></param> 151/// <see cref="ModuleReferenceHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (7)
561/// <see cref="ModuleDefinitionHandle"/>, <see cref="ModuleReferenceHandle"/>, <see cref="AssemblyReferenceHandle"/>, <see cref="TypeReferenceHandle"/>, or nil. 726/// <see cref="ModuleReferenceHandle"/>, 782public ModuleReferenceHandle AddModuleReference(StringHandle moduleName) 789return ModuleReferenceHandle.FromRowId(_moduleRefTable.Count); 1025ModuleReferenceHandle module) 1067/// <see cref="ModuleReferenceHandle"/>, 1383/// <see cref="ModuleReferenceHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (2)
425public static ModuleReferenceHandle ModuleReferenceHandle(int rowNumber) 427return Metadata.ModuleReferenceHandle.FromRowId(ToRowId(rowNumber));
System\Reflection\Metadata\Internal\Tables.cs (3)
1631internal StringHandle GetName(ModuleReferenceHandle handle) 1712var importScope = ModuleReferenceHandle.FromRowId(Block.PeekReference(rowOffset + _ImportScopeOffset, _IsModuleRefTableRowRefSizeSmall));
System\Reflection\Metadata\MetadataReader.cs (1)
1313public ModuleReference GetModuleReference(ModuleReferenceHandle handle)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (13)
1516public readonly struct ModuleReferenceHandle : IEquatable<ModuleReferenceHandle> 1528internal static ModuleReferenceHandle FromRowId(int rowId) 1533public static implicit operator Handle(ModuleReferenceHandle handle) 1538public static implicit operator EntityHandle(ModuleReferenceHandle handle) 1543public static explicit operator ModuleReferenceHandle(Handle handle) 1553public static explicit operator ModuleReferenceHandle(EntityHandle handle) 1573public static bool operator ==(ModuleReferenceHandle left, ModuleReferenceHandle right) 1580return obj is ModuleReferenceHandle && ((ModuleReferenceHandle)obj)._rowId == _rowId; 1583public bool Equals(ModuleReferenceHandle other) 1593public static bool operator !=(ModuleReferenceHandle left, ModuleReferenceHandle right)
System\Reflection\Metadata\TypeSystem\MethodImport.cs (3)
10private readonly ModuleReferenceHandle _module; 12internal MethodImport(MethodImportAttributes attributes, StringHandle name, ModuleReferenceHandle module) 21public ModuleReferenceHandle Module { get { return _module; } }
System\Reflection\Metadata\TypeSystem\ModuleReference.cs (3)
15internal ModuleReference(MetadataReader reader, ModuleReferenceHandle handle) 24private ModuleReferenceHandle Handle 26get { return ModuleReferenceHandle.FromRowId(_rowId); }
System\Reflection\Metadata\TypeSystem\TypeReference.cs (1)
47/// <item><description><see cref="ModuleReferenceHandle"/>, if the target type is defined in another module within the same assembly as this one.</description></item>
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (1)
102string moduleName = ((ModuleReferenceHandle)scope).GetModuleReference(module.Reader).Name.GetString(module.Reader);
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
46public static ModuleReference GetModuleReference(this ModuleReferenceHandle handle, MetadataReader reader) => reader.GetModuleReference(handle);