4 instantiations of AssemblyReferenceHandle
System.Reflection.Metadata (4)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (4)
1630return new AssemblyReferenceHandle((uint)rowId); 1636return new AssemblyReferenceHandle(TokenTypeIds.VirtualBit | (uint)virtualIndex); 1656return new AssemblyReferenceHandle(handle.SpecificEntityHandleValue); 1666return new AssemblyReferenceHandle(handle.SpecificHandleValue);
109 references to AssemblyReferenceHandle
BuildBoss (1)
CompilerNuGetCheckerUtil.cs (1)
389foreach (var handle in metadataReader.AssemblyReferences)
Crossgen2Tasks (1)
PrepareForReadyToRunCompilation.cs (1)
479foreach (var assemblyRefHandle in mdReader.AssemblyReferences)
Microsoft.CodeAnalysis (15)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
400protected override AssemblyReferenceHandle GetOrAddAssemblyReferenceHandle(IAssemblyReference reference)
MetadataReader\MetadataDecoder.cs (2)
568var assemblyRef = (AssemblyReferenceHandle)tokenResolutionScope;
MetadataReader\MetadataReaderExtensions.cs (1)
67foreach (var assemblyRef in reader.AssemblyReferences)
MetadataReader\PEModule.cs (7)
2781internal AssemblyReferenceHandle GetAssemblyRef(string assemblyName) 2788foreach (var assemblyRef in MetadataReader.AssemblyReferences) 2802return default(AssemblyReferenceHandle); 2805internal AssemblyReference GetAssemblyRef(AssemblyReferenceHandle assemblyRef) 3834AssemblyReferenceHandle refHandle = (AssemblyReferenceHandle)exportedType.Implementation; 3931internal int GetAssemblyReferenceIndexOrThrow(AssemblyReferenceHandle assemblyRef)
PEWriter\FullMetadataWriter.cs (1)
235protected override AssemblyReferenceHandle GetOrAddAssemblyReferenceHandle(IAssemblyReference reference)
PEWriter\MetadataWriter.cs (3)
284protected abstract AssemblyReferenceHandle GetOrAddAssemblyReferenceHandle(IAssemblyReference reference); 691internal AssemblyReferenceHandle GetAssemblyReferenceHandle(IAssemblyReference assemblyReference) 697return default(AssemblyReferenceHandle);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
12619var mscorlibAssemblyRef = metadata.AddAssemblyReference(
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
EESymbolProvider.cs (1)
47public abstract IAssemblySymbolInternal GetReferencedAssembly(AssemblyReferenceHandle handle);
Microsoft.CodeAnalysis.Features (1)
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
206var assemblyReference = md.GetAssemblyReference((AssemblyReferenceHandle)lastAssemblyReferenceHandle);
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\MetadataReaderUtils.cs (1)
341return reader.GetString(reader.GetAssemblyReference((AssemblyReferenceHandle)handle).Name);
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
VisualBasicEESymbolProvider.vb (1)
69Public Overrides Function GetReferencedAssembly(handle As AssemblyReferenceHandle) As IAssemblySymbolInternal
Microsoft.DotNet.Build.Tasks.Packaging (1)
GetAssemblyReferences.cs (1)
59foreach (var handle in reader.AssemblyReferences)
System.Reflection.Emit (4)
System\Reflection\Emit\ModuleBuilderImpl.cs (4)
22private readonly Dictionary<Assembly, AssemblyReferenceHandle> _assemblyReferences = new(); 845private AssemblyReferenceHandle GetAssemblyReference(Assembly assembly) 847if (!_assemblyReferences.TryGetValue(assembly, out var handle)) 986private AssemblyReferenceHandle AddAssemblyReference(string? name, Version? version, string? culture,
System.Reflection.Metadata (70)
System\Reflection\Metadata\Ecma335\CodedIndex.cs (4)
27/// <see cref="AssemblyReferenceHandle"/>, 76/// <param name="handle"><see cref="AssemblyFileHandle"/>, <see cref="ExportedTypeHandle"/> or <see cref="AssemblyReferenceHandle"/></param> 110/// <param name="handle"><see cref="ModuleDefinitionHandle"/>, <see cref="ModuleReferenceHandle"/>, <see cref="AssemblyReferenceHandle"/> or <see cref="TypeReferenceHandle"/></param> 154/// <see cref="AssemblyReferenceHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (7)
418public AssemblyReferenceHandle AddAssemblyReference( 441return AssemblyReferenceHandle.FromRowId(_assemblyRefTable.Count); 561/// <see cref="ModuleDefinitionHandle"/>, <see cref="ModuleReferenceHandle"/>, <see cref="AssemblyReferenceHandle"/>, <see cref="TypeReferenceHandle"/>, or nil. 729/// <see cref="AssemblyReferenceHandle"/>, 1094/// <param name="implementation"><see cref="AssemblyFileHandle"/>, <see cref="AssemblyReferenceHandle"/>, or nil</param> 1135/// <param name="implementation"><see cref="AssemblyFileHandle"/>, <see cref="ExportedTypeHandle"/> or <see cref="AssemblyReferenceHandle"/></param> 1386/// <see cref="AssemblyReferenceHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (2)
430public static AssemblyReferenceHandle AssemblyReferenceHandle(int rowNumber) 432return Metadata.AssemblyReferenceHandle.FromRowId(ToRowId(rowNumber));
System\Reflection\Metadata\Internal\Tables.cs (1)
2024this.NumberOfVirtualRows = (metadataKind == MetadataKind.Ecma335) ? 0 : (int)AssemblyReferenceHandle.VirtualIndex.Count;
System\Reflection\Metadata\MetadataReader.cs (1)
1118public AssemblyReference GetAssemblyReference(AssemblyReferenceHandle handle)
System\Reflection\Metadata\MetadataReader.WinMD.cs (10)
28public readonly AssemblyReferenceHandle.VirtualIndex AssemblyRef; 37AssemblyReferenceHandle.VirtualIndex clrAssembly, 94internal static AssemblyReferenceHandle GetProjectedAssemblyRef(int projectionIndex) 97return AssemblyReferenceHandle.FromVirtualIndex(s_projectionInfos[projectionIndex].AssemblyRef); 122var systemRuntimeWindowsRuntime = AssemblyReferenceHandle.VirtualIndex.System_Runtime_WindowsRuntime; 123var systemRuntime = AssemblyReferenceHandle.VirtualIndex.System_Runtime; 124var systemObjectModel = AssemblyReferenceHandle.VirtualIndex.System_ObjectModel; 125var systemRuntimeWindowsUiXaml = AssemblyReferenceHandle.VirtualIndex.System_Runtime_WindowsRuntime_UI_Xaml; 126var systemRuntimeInterop = AssemblyReferenceHandle.VirtualIndex.System_Runtime_InteropServices_WindowsRuntime; 127var systemNumericsVectors = AssemblyReferenceHandle.VirtualIndex.System_Numerics_Vectors;
System\Reflection\Metadata\PortablePdb\ImportDefinition.cs (3)
12public AssemblyReferenceHandle TargetAssembly { get; } 21AssemblyReferenceHandle assembly = default(AssemblyReferenceHandle),
System\Reflection\Metadata\TypeSystem\AssemblyReference.cs (13)
131return new CustomAttributeHandleCollection(_reader, AssemblyReferenceHandle.FromRowId(RowId)); 149return StringHandle.FromVirtualIndex(GetVirtualNameIndex((AssemblyReferenceHandle.VirtualIndex)RowId)); 152private static StringHandle.VirtualIndex GetVirtualNameIndex(AssemblyReferenceHandle.VirtualIndex index) 156case AssemblyReferenceHandle.VirtualIndex.System_ObjectModel: 159case AssemblyReferenceHandle.VirtualIndex.System_Runtime: 162case AssemblyReferenceHandle.VirtualIndex.System_Runtime_InteropServices_WindowsRuntime: 165case AssemblyReferenceHandle.VirtualIndex.System_Runtime_WindowsRuntime: 168case AssemblyReferenceHandle.VirtualIndex.System_Runtime_WindowsRuntime_UI_Xaml: 171case AssemblyReferenceHandle.VirtualIndex.System_Numerics_Vectors: 186switch ((AssemblyReferenceHandle.VirtualIndex)RowId) 188case AssemblyReferenceHandle.VirtualIndex.System_Runtime_WindowsRuntime: 189case AssemblyReferenceHandle.VirtualIndex.System_Runtime_WindowsRuntime_UI_Xaml: 208return new CustomAttributeHandleCollection(_reader, AssemblyReferenceHandle.FromRowId(_reader.WinMDMscorlibRef));
System\Reflection\Metadata\TypeSystem\ExportedType.cs (1)
77/// <item><description><see cref="AssemblyReferenceHandle"/> representing another assembly if <see cref="IsForwarder"/> is true.</description></item>
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (9)
1654public readonly struct AssemblyReferenceHandleCollection : IReadOnlyCollection<AssemblyReferenceHandle> 1677IEnumerator<AssemblyReferenceHandle> IEnumerable<AssemblyReferenceHandle>.GetEnumerator() 1687public struct Enumerator : IEnumerator<AssemblyReferenceHandle>, IEnumerator 1707public AssemblyReferenceHandle Current 1715return default(AssemblyReferenceHandle); 1718return AssemblyReferenceHandle.FromVirtualIndex((AssemblyReferenceHandle.VirtualIndex)((uint)_virtualRowId)); 1722return AssemblyReferenceHandle.FromRowId((int)(_currentRowId & TokenTypeIds.RIDMask));
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (14)
1599public readonly struct AssemblyReferenceHandle : IEquatable<AssemblyReferenceHandle> 1627internal static AssemblyReferenceHandle FromRowId(int rowId) 1633internal static AssemblyReferenceHandle FromVirtualIndex(VirtualIndex virtualIndex) 1639public static implicit operator Handle(AssemblyReferenceHandle handle) 1644public static implicit operator EntityHandle(AssemblyReferenceHandle handle) 1649public static explicit operator AssemblyReferenceHandle(Handle handle) 1659public static explicit operator AssemblyReferenceHandle(EntityHandle handle) 1691public static bool operator ==(AssemblyReferenceHandle left, AssemblyReferenceHandle right) 1698return obj is AssemblyReferenceHandle && ((AssemblyReferenceHandle)obj)._value == _value; 1701public bool Equals(AssemblyReferenceHandle other) 1711public static bool operator !=(AssemblyReferenceHandle left, AssemblyReferenceHandle right)
System\Reflection\Metadata\TypeSystem\ManifestResource.cs (1)
63/// <see cref="AssemblyFileHandle"/>, <see cref="AssemblyReferenceHandle"/>, or nil handle.
System\Reflection\Metadata\TypeSystem\TypeReference.cs (4)
49/// <item><description><see cref="AssemblyReferenceHandle"/>, if the target type is defined in a different assembly from the current module.</description></item> 106return AssemblyReferenceHandle.FromVirtualIndex(AssemblyReferenceHandle.VirtualIndex.System_Runtime); 113return default(AssemblyReferenceHandle);
System.Reflection.MetadataLoadContext (12)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.cs (2)
49foreach (AssemblyReferenceHandle handle in reader.AssemblyReferences) 94RoAssembly redirectedAssembly = ((AssemblyReferenceHandle)implementation).ResolveToAssemblyOrExceptionAssembly(GetEcmaManifestModule());
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (1)
14public static RoAssemblyName ToRoAssemblyName(this AssemblyReferenceHandle h, MetadataReader reader)
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (6)
77AssemblyReferenceHandle arh = (AssemblyReferenceHandle)scope; 148public static RoAssembly ResolveAssembly(this AssemblyReferenceHandle handle, EcmaModule module) 156public static RoAssembly? TryResolveAssembly(this AssemblyReferenceHandle handle, EcmaModule module, out Exception? e) 168public static RoAssembly ResolveToAssemblyOrExceptionAssembly(this AssemblyReferenceHandle handle, EcmaModule module) 176RoAssemblyName roAssemblyName = ((AssemblyReferenceHandle)h).ToRoAssemblyName(m.Reader);
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
14public static AssemblyReference GetAssemblyReference(this AssemblyReferenceHandle handle, MetadataReader reader) => reader.GetAssemblyReference(handle);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.GetTypeCore.cs (1)
58RoAssembly? assembly = ((AssemblyReferenceHandle)implementation).TryResolveAssembly(this, out e);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.ManifestResources.cs (1)
65RoAssemblyName destinationAssemblyName = ((AssemblyReferenceHandle)resource.Implementation).ToRoAssemblyName(reader);