39 instantiations of Handle
System.Reflection.Metadata (39)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (2)
293return new Handle((byte)handle.Type, relativeHeapOffset); 330return new Handle((byte)handle.Type, relativeRowId);
System\Reflection\Metadata\Handle.cs (1)
30return new Handle((byte)(vToken >> TokenTypeIds.RowIdBitCount), (int)(vToken & TokenTypeIds.RIDMask));
System\Reflection\Metadata\PortablePdb\Handles.Debug.cs (7)
29return new Handle(tokenTypeSmall, handle._rowId); 112return new Handle(tokenTypeSmall, handle._rowId); 207return new Handle(tokenTypeSmall, handle._rowId); 290return new Handle(tokenTypeSmall, handle._rowId); 373return new Handle(tokenTypeSmall, handle._rowId); 456return new Handle(tokenTypeSmall, handle._rowId); 539return new Handle(tokenTypeSmall, handle._rowId);
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (29)
29return new Handle(tokenTypeSmall, handle._rowId); 112return new Handle(tokenTypeSmall, handle._rowId); 195return new Handle(tokenTypeSmall, handle._rowId); 278return new Handle(tokenTypeSmall, handle._rowId); 373return new Handle(tokenTypeSmall, handle._rowId); 456return new Handle(tokenTypeSmall, handle._rowId); 539return new Handle(tokenTypeSmall, handle._rowId); 622return new Handle(tokenTypeSmall, handle._rowId); 705return new Handle(tokenTypeSmall, handle._rowId); 788return new Handle(tokenTypeSmall, handle._rowId); 871return new Handle(tokenTypeSmall, handle._rowId); 954return new Handle(tokenTypeSmall, handle._rowId); 1037return new Handle(tokenTypeSmall, handle._rowId); 1120return new Handle(tokenTypeSmall, handle._rowId); 1203return new Handle(tokenTypeSmall, handle._rowId); 1286return new Handle(tokenTypeSmall, handle._rowId); 1369return new Handle(tokenTypeSmall, handle._rowId); 1452return new Handle(tokenTypeSmall, handle._rowId); 1535return new Handle(tokenTypeSmall, handle._rowId); 1736return new Handle(tokenTypeSmall, handle._rowId); 1819return new Handle(tokenTypeSmall, handle._rowId); 1902return new Handle(tokenTypeSmall, handle._rowId); 1985return new Handle(tokenTypeSmall, handle._rowId); 2068return new Handle(tokenTypeSmall, handle._rowId); 2160return new Handle((byte)HandleType.UserString, handle._offset); 2345return new Handle( 2475return new Handle( 2607return new Handle( 2698return new Handle((byte)HandleType.Guid, handle._index);
151 references to Handle
BuildValidator (1)
Util.cs (1)
47foreach (var attributeHandle in reader.GetCustomAttributes(Handle.AssemblyDefinition))
Microsoft.CodeAnalysis (1)
PEWriter\MetadataWriter.cs (1)
2052EntityHandle parentHandle = Handle.AssemblyDefinition;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\EditAndContinue\EditAndContinueTests.cs (4)
897Handle(7, TableIndex.MethodDef), 898Handle(4, TableIndex.CustomAttribute), 903new CustomAttributeRow(Handle(7, TableIndex.MethodDef), Handle(2, TableIndex.MethodDef))
Microsoft.CodeAnalysis.Test.Utilities (3)
Metadata\AggregatedMetadataReader.cs (3)
34private TEntity GetValue<TEntity>(Handle handle, Func<MetadataReader, Handle, TEntity> getter) 36var genHandle = _aggregator.GetGenerationHandle(handle, out var generation);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (17)
Emit\EditAndContinue\EditAndContinuePdbTests.vb (15)
179Handle(11, TableIndex.MethodDebugInformation), 180Handle(13, TableIndex.MethodDebugInformation), 181Handle(16, TableIndex.MethodDebugInformation), 182Handle(17, TableIndex.MethodDebugInformation), 183Handle(18, TableIndex.MethodDebugInformation), 184Handle(19, TableIndex.MethodDebugInformation)) 288Handle(10, TableIndex.MethodDebugInformation), 289Handle(11, TableIndex.MethodDebugInformation), 290Handle(13, TableIndex.MethodDebugInformation), 291Handle(16, TableIndex.MethodDebugInformation), 292Handle(17, TableIndex.MethodDebugInformation), 293Handle(18, TableIndex.MethodDebugInformation), 294Handle(19, TableIndex.MethodDebugInformation), 295Handle(20, TableIndex.MethodDebugInformation), 296Handle(21, TableIndex.MethodDebugInformation))
Emit\EditAndContinue\EditAndContinueTestBase.vb (2)
270getName As Func(Of MetadataReader, Handle, StringHandle), 271toHandle As Func(Of THandle, Handle),
Roslyn.Test.PdbUtilities (3)
EditAndContinue\EditAndContinueTestUtilities.cs (3)
104Func<MetadataReader, Handle, StringHandle> getName, 105Func<THandle, Handle> toHandle, 112var genEntityHandle = aggregator.GetGenerationHandle(toHandle(handle), out int typeGeneration);
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
61Handle handle = MetadataTokens.Handle(methodToken);
System.Reflection.Metadata (118)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (2)
247public Handle GetGenerationHandle(Handle handle, out int generation)
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (11)
41public static int GetHeapOffset(this MetadataReader reader, Handle handle) 80public static int GetToken(this MetadataReader reader, Handle handle) 95private static int MapVirtualHandleRowId(MetadataReader reader, Handle handle) 134/// See <see cref="GetHeapOffset(MetadataReader, Handle)"/>. 136public static int GetHeapOffset(Handle handle) 157/// See <see cref="GetHeapOffset(MetadataReader, Handle)"/>. 185/// See <see cref="GetHeapOffset(MetadataReader, Handle)"/>. 194/// See <see cref="GetToken(MetadataReader, Handle)"/>. 200public static int GetToken(Handle handle) 289public static Handle Handle(int token) 296return Metadata.Handle.FromVToken((uint)token);
System\Reflection\Metadata\EntityHandle.cs (4)
15/// It has smaller memory footprint than <see cref="Handle"/>. 30public static implicit operator Handle(EntityHandle handle) 32return Handle.FromVToken(handle._vToken); 35public static explicit operator EntityHandle(Handle handle)
System\Reflection\Metadata\Handle.cs (12)
14/// Use <see cref="Handle"/> to store multiple kinds of handles. 16public readonly struct Handle : IEquatable<Handle> 26/// Creates <see cref="Handle"/> from a token or a token combined with a virtual flag. 28internal static Handle FromVToken(uint vToken) 165return obj is Handle handle && Equals(handle); 168public bool Equals(Handle other) 178public static bool operator ==(Handle left, Handle right) 183public static bool operator !=(Handle left, Handle right) 188internal static int Compare(Handle left, Handle right)
System\Reflection\Metadata\HandleComparer.cs (10)
8public sealed class HandleComparer : IEqualityComparer<Handle>, IComparer<Handle>, IEqualityComparer<EntityHandle>, IComparer<EntityHandle> 21public bool Equals(Handle x, Handle y) 31public int GetHashCode(Handle obj) 46/// Returns 0 if and only if <see cref="Equals(Handle, Handle)"/> returns true. 48public int Compare(Handle x, Handle y) 50return Handle.Compare(x, y);
System\Reflection\Metadata\Internal\MetadataFlags.cs (1)
199/// These constants are all in the byte range and apply to the interpretation of <see cref="Handle.VType"/>,
System\Reflection\Metadata\PortablePdb\Handles.Debug.cs (14)
27public static implicit operator Handle(DocumentHandle handle) 37public static explicit operator DocumentHandle(Handle handle) 110public static implicit operator Handle(MethodDebugInformationHandle handle) 120public static explicit operator MethodDebugInformationHandle(Handle handle) 205public static implicit operator Handle(LocalScopeHandle handle) 215public static explicit operator LocalScopeHandle(Handle handle) 288public static implicit operator Handle(LocalVariableHandle handle) 298public static explicit operator LocalVariableHandle(Handle handle) 371public static implicit operator Handle(LocalConstantHandle handle) 381public static explicit operator LocalConstantHandle(Handle handle) 454public static implicit operator Handle(ImportScopeHandle handle) 464public static explicit operator ImportScopeHandle(Handle handle) 537public static implicit operator Handle(CustomDebugInformationHandle handle) 547public static explicit operator CustomDebugInformationHandle(Handle handle)
System\Reflection\Metadata\PortablePdb\ImportDefinition.cs (3)
16private readonly Handle _typeOrNamespace; 22Handle typeOrNamespace = default(Handle))
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (61)
27public static implicit operator Handle(ModuleDefinitionHandle handle) 37public static explicit operator ModuleDefinitionHandle(Handle handle) 110public static implicit operator Handle(AssemblyDefinitionHandle handle) 120public static explicit operator AssemblyDefinitionHandle(Handle handle) 193public static implicit operator Handle(InterfaceImplementationHandle handle) 203public static explicit operator InterfaceImplementationHandle(Handle handle) 276public static implicit operator Handle(MethodDefinitionHandle handle) 286public static explicit operator MethodDefinitionHandle(Handle handle) 371public static implicit operator Handle(MethodImplementationHandle handle) 381public static explicit operator MethodImplementationHandle(Handle handle) 454public static implicit operator Handle(MethodSpecificationHandle handle) 464public static explicit operator MethodSpecificationHandle(Handle handle) 537public static implicit operator Handle(TypeDefinitionHandle handle) 547public static explicit operator TypeDefinitionHandle(Handle handle) 620public static implicit operator Handle(ExportedTypeHandle handle) 630public static explicit operator ExportedTypeHandle(Handle handle) 703public static implicit operator Handle(TypeReferenceHandle handle) 713public static explicit operator TypeReferenceHandle(Handle handle) 786public static implicit operator Handle(TypeSpecificationHandle handle) 796public static explicit operator TypeSpecificationHandle(Handle handle) 869public static implicit operator Handle(MemberReferenceHandle handle) 879public static explicit operator MemberReferenceHandle(Handle handle) 952public static implicit operator Handle(FieldDefinitionHandle handle) 962public static explicit operator FieldDefinitionHandle(Handle handle) 1035public static implicit operator Handle(EventDefinitionHandle handle) 1045public static explicit operator EventDefinitionHandle(Handle handle) 1118public static implicit operator Handle(PropertyDefinitionHandle handle) 1128public static explicit operator PropertyDefinitionHandle(Handle handle) 1201public static implicit operator Handle(StandaloneSignatureHandle handle) 1211public static explicit operator StandaloneSignatureHandle(Handle handle) 1284public static implicit operator Handle(ParameterHandle handle) 1294public static explicit operator ParameterHandle(Handle handle) 1367public static implicit operator Handle(GenericParameterHandle handle) 1377public static explicit operator GenericParameterHandle(Handle handle) 1450public static implicit operator Handle(GenericParameterConstraintHandle handle) 1460public static explicit operator GenericParameterConstraintHandle(Handle handle) 1533public static implicit operator Handle(ModuleReferenceHandle handle) 1543public static explicit operator ModuleReferenceHandle(Handle handle) 1639public static implicit operator Handle(AssemblyReferenceHandle handle) 1641return Handle.FromVToken(handle.VToken); 1649public static explicit operator AssemblyReferenceHandle(Handle handle) 1734public static implicit operator Handle(CustomAttributeHandle handle) 1744public static explicit operator CustomAttributeHandle(Handle handle) 1817public static implicit operator Handle(DeclarativeSecurityAttributeHandle handle) 1827public static explicit operator DeclarativeSecurityAttributeHandle(Handle handle) 1900public static implicit operator Handle(ConstantHandle handle) 1910public static explicit operator ConstantHandle(Handle handle) 1983public static implicit operator Handle(ManifestResourceHandle handle) 1993public static explicit operator ManifestResourceHandle(Handle handle) 2066public static implicit operator Handle(AssemblyFileHandle handle) 2076public static explicit operator AssemblyFileHandle(Handle handle) 2158public static implicit operator Handle(UserStringHandle handle) 2163public static explicit operator UserStringHandle(Handle handle) 2342public static implicit operator Handle(StringHandle handle) 2350public static explicit operator StringHandle(Handle handle) 2473public static implicit operator Handle(NamespaceDefinitionHandle handle) 2480public static explicit operator NamespaceDefinitionHandle(Handle handle) 2604public static implicit operator Handle(BlobHandle handle) 2612public static explicit operator BlobHandle(Handle handle) 2696public static implicit operator Handle(GuidHandle handle) 2701public static explicit operator GuidHandle(Handle handle)
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (2)
59public static int GetToken(this Handle handle) => MetadataTokens.GetToken(handle); 91public static Handle ToHandle(this int token) => MetadataTokens.Handle(token);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (1)
58Handle handle = entryPointToken.ToHandle();