2 instantiations of GuidHandle
System.Reflection.Metadata (2)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (2)
2693return new GuidHandle(heapIndex); 2708return new GuidHandle(handle.Offset);
81 references to GuidHandle
BuildValidator (1)
Util.cs (1)
35var mvidHandle = metadataReader.GetModuleDefinition().Mvid;
Microsoft.CodeAnalysis (10)
AssemblyUtilitiesCore.cs (1)
34var mvidHandle = metadataReader.GetModuleDefinition().Mvid;
PEWriter\MetadataWriter.cs (1)
2713GuidHandle mvidHandle;
PEWriter\MetadataWriter.DynamicAnalysis.cs (7)
23public GuidHandle HashAlgorithm; 37private readonly Dictionary<Guid, GuidHandle> _guids; 54_guids = new Dictionary<Guid, GuidHandle>(documentCountEstimate); 101private GuidHandle GetOrAddGuid(Guid guid) 105return default(GuidHandle); 108GuidHandle result; 217HashAlgorithm = (sourceInfo.Checksum.IsDefault ? default(GuidHandle) : GetOrAddGuid(sourceInfo.ChecksumAlgorithmId)),
PEWriter\MetadataWriter.PortablePdb.cs (1)
768hashAlgorithm: info.Checksum.IsDefault ? default(GuidHandle) : _debugMetadataOpt.GetOrAddGuid(info.ChecksumAlgorithmId),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenFunctionPointersTests.cs (2)
12608default(GuidHandle), 12609default(GuidHandle));
Microsoft.CodeAnalysis.Features (1)
Emit\CompilationOutputs.cs (1)
79var mvidHandle = metadataReader.GetModuleDefinition().Mvid;
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
228var mvidHandle = metadataReader.GetModuleDefinition().Mvid;
Microsoft.CodeAnalysis.Test.Utilities (6)
Metadata\DynamicAnalysisDataReader.cs (4)
24public readonly GuidHandle HashAlgorithm; 27public DynamicAnalysisDocument(BlobHandle name, GuidHandle hashAlgorithm, BlobHandle hash) 111var hashAlgorithm = MetadataTokens.GuidHandle(ReadReference(ref reader, isGuidHeapSmall)); 268public Guid GetGuid(GuidHandle handle)
Metadata\MetadataValidation.cs (2)
177var mvidIndex1 = mdReader1.GetModuleDefinition().Mvid; 178var mvidIndex2 = mdReader2.GetModuleDefinition().Mvid;
Microsoft.CodeAnalysis.Workspaces (2)
Serialization\SerializerService_Reference.cs (1)
259var mvidHandle = metadataReader.GetModuleDefinition().Mvid;
src\Compilers\Core\Portable\AssemblyUtilitiesCore.cs (1)
34var mvidHandle = metadataReader.GetModuleDefinition().Mvid;
PrepareTests (1)
MinimizeUtil.cs (1)
329var mvidHandle = metadataReader.GetModuleDefinition().Mvid;
System.Reflection.Metadata (56)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (11)
50private readonly Dictionary<Guid, GuidHandle> _guids = new Dictionary<Guid, GuidHandle>(); 178internal static int SerializeHandle(GuidHandle handle) => handle.Index; 389public GuidHandle GetOrAddGuid(Guid guid) 393return default(GuidHandle); 396GuidHandle result; 415public ReservedBlob<GuidHandle> ReserveGuid() 417var handle = GetNewGuidHandle(); 419return new ReservedBlob<GuidHandle>(handle, content); 422private GuidHandle GetNewGuidHandle() 432return GuidHandle.FromIndex((_guidBuilder.Count >> 4) + 1);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (12)
18private struct ModuleRow { public ushort Generation; public StringHandle Name; public GuidHandle ModuleVersionId; public GuidHandle EncId; public GuidHandle EncBaseId; } 55private struct DocumentRow { public BlobHandle Name; public GuidHandle HashAlgorithm; public BlobHandle Hash; public GuidHandle Language; } 62private struct CustomDebugInformationRow { public int Parent; public GuidHandle Kind; public BlobHandle Value; } 361GuidHandle mvid, 362GuidHandle encId, 363GuidHandle encBaseId) 1221public DocumentHandle AddDocument(BlobHandle name, GuidHandle hashAlgorithm, BlobHandle hash, GuidHandle language) 1405public CustomDebugInformationHandle AddCustomDebugInformation(EntityHandle parent, GuidHandle kind, BlobHandle value)
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (3)
168public static int GetHeapOffset(GuidHandle handle) => handle.Index; 514public static GuidHandle GuidHandle(int offset) 516return Metadata.GuidHandle.FromIndex(offset);
System\Reflection\Metadata\Internal\GuidHeap.cs (1)
17internal Guid GetGuid(GuidHandle handle)
System\Reflection\Metadata\Internal\Tables.cs (6)
54internal GuidHandle GetMvid() 57return GuidHandle.FromIndex(this.Block.PeekHeapReference(_MVIdOffset, _IsGUIDHeapRefSizeSmall)); 60internal GuidHandle GetEncId() 63return GuidHandle.FromIndex(this.Block.PeekHeapReference(_EnCIdOffset, _IsGUIDHeapRefSizeSmall)); 66internal GuidHandle GetEncBaseId() 69return GuidHandle.FromIndex(this.Block.PeekHeapReference(_EnCBaseIdOffset, _IsGUIDHeapRefSizeSmall));
System\Reflection\Metadata\MetadataReader.cs (1)
1103public Guid GetGuid(GuidHandle handle)
System\Reflection\Metadata\PortablePdb\CustomDebugInformation.cs (1)
27public GuidHandle Kind => _reader.CustomDebugInformationTable.GetKind(Handle);
System\Reflection\Metadata\PortablePdb\Document.cs (2)
40public GuidHandle Language => _reader.DocumentTable.GetLanguage(Handle); 45public GuidHandle HashAlgorithm => _reader.DocumentTable.GetHashAlgorithm(Handle);
System\Reflection\Metadata\PortablePdb\Tables.Debug.cs (6)
48internal GuidHandle GetHashAlgorithm(DocumentHandle handle) 51return GuidHandle.FromIndex(Block.PeekHeapReference(rowOffset + _hashAlgorithmOffset, _isGuidHeapRefSizeSmall)); 60internal GuidHandle GetLanguage(DocumentHandle handle) 63return GuidHandle.FromIndex(Block.PeekHeapReference(rowOffset + _languageOffset, _isGuidHeapRefSizeSmall)); 475internal GuidHandle GetKind(CustomDebugInformationHandle handle) 478return GuidHandle.FromIndex(Block.PeekHeapReference(rowOffset + _kindOffset, _isGuidHeapRefSizeSmall));
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (10)
2680public readonly struct GuidHandle : IEquatable<GuidHandle> 2691internal static GuidHandle FromIndex(int heapIndex) 2696public static implicit operator Handle(GuidHandle handle) 2701public static explicit operator GuidHandle(Handle handle) 2723return obj is GuidHandle gh && Equals(gh); 2726public bool Equals(GuidHandle other) 2736public static bool operator ==(GuidHandle left, GuidHandle right) 2741public static bool operator !=(GuidHandle left, GuidHandle right)
System\Reflection\Metadata\TypeSystem\ModuleDefinition.cs (3)
34public GuidHandle Mvid 42public GuidHandle GenerationId 50public GuidHandle BaseGenerationId
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
31public static Guid GetGuid(this GuidHandle handle, MetadataReader reader) => reader.GetGuid(handle);