39 instantiations of Handle
System.Reflection.Metadata (39)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (2)
294return new Handle((byte)handle.Type, relativeHeapOffset); 331return 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)
30return new Handle(tokenTypeSmall, handle._rowId); 113return new Handle(tokenTypeSmall, handle._rowId); 196return new Handle(tokenTypeSmall, handle._rowId); 279return new Handle(tokenTypeSmall, handle._rowId); 374return new Handle(tokenTypeSmall, handle._rowId); 457return new Handle(tokenTypeSmall, handle._rowId); 540return new Handle(tokenTypeSmall, handle._rowId); 623return new Handle(tokenTypeSmall, handle._rowId); 706return new Handle(tokenTypeSmall, handle._rowId); 789return new Handle(tokenTypeSmall, handle._rowId); 872return new Handle(tokenTypeSmall, handle._rowId); 955return new Handle(tokenTypeSmall, handle._rowId); 1038return new Handle(tokenTypeSmall, handle._rowId); 1121return new Handle(tokenTypeSmall, handle._rowId); 1204return new Handle(tokenTypeSmall, handle._rowId); 1287return new Handle(tokenTypeSmall, handle._rowId); 1370return new Handle(tokenTypeSmall, handle._rowId); 1453return new Handle(tokenTypeSmall, handle._rowId); 1536return new Handle(tokenTypeSmall, handle._rowId); 1737return new Handle(tokenTypeSmall, handle._rowId); 1820return new Handle(tokenTypeSmall, handle._rowId); 1903return new Handle(tokenTypeSmall, handle._rowId); 1986return new Handle(tokenTypeSmall, handle._rowId); 2069return new Handle(tokenTypeSmall, handle._rowId); 2161return new Handle((byte)HandleType.UserString, handle._offset); 2346return new Handle( 2476return new Handle( 2605return new Handle( 2696return new Handle((byte)HandleType.Guid, handle._index);
127 references to Handle
ILCompiler.ReadyToRun (3)
Compiler\DependencyAnalysis\ReadyToRun\ModuleToken.cs (2)
34public ModuleToken(IEcmaModule module, Handle handle) 82public Handle Handle => MetadataTokens.Handle((int)Token);
Compiler\ReadyToRunStandaloneMethodMetadata.cs (1)
127var handle = MetadataTokens.Handle(token);
ILCompiler.TypeSystem (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\SymbolReader\PortablePdbSymbolReader.cs (1)
215foreach (CustomDebugInformationHandle cdiHandle in _reader.GetCustomDebugInformation(Handle.ModuleDefinition))
Microsoft.CodeAnalysis (1)
PEWriter\MetadataWriter.cs (1)
2068EntityHandle parentHandle = Handle.AssemblyDefinition;
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)
248public 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)
28public static implicit operator Handle(ModuleDefinitionHandle handle) 38public static explicit operator ModuleDefinitionHandle(Handle handle) 111public static implicit operator Handle(AssemblyDefinitionHandle handle) 121public static explicit operator AssemblyDefinitionHandle(Handle handle) 194public static implicit operator Handle(InterfaceImplementationHandle handle) 204public static explicit operator InterfaceImplementationHandle(Handle handle) 277public static implicit operator Handle(MethodDefinitionHandle handle) 287public static explicit operator MethodDefinitionHandle(Handle handle) 372public static implicit operator Handle(MethodImplementationHandle handle) 382public static explicit operator MethodImplementationHandle(Handle handle) 455public static implicit operator Handle(MethodSpecificationHandle handle) 465public static explicit operator MethodSpecificationHandle(Handle handle) 538public static implicit operator Handle(TypeDefinitionHandle handle) 548public static explicit operator TypeDefinitionHandle(Handle handle) 621public static implicit operator Handle(ExportedTypeHandle handle) 631public static explicit operator ExportedTypeHandle(Handle handle) 704public static implicit operator Handle(TypeReferenceHandle handle) 714public static explicit operator TypeReferenceHandle(Handle handle) 787public static implicit operator Handle(TypeSpecificationHandle handle) 797public static explicit operator TypeSpecificationHandle(Handle handle) 870public static implicit operator Handle(MemberReferenceHandle handle) 880public static explicit operator MemberReferenceHandle(Handle handle) 953public static implicit operator Handle(FieldDefinitionHandle handle) 963public static explicit operator FieldDefinitionHandle(Handle handle) 1036public static implicit operator Handle(EventDefinitionHandle handle) 1046public static explicit operator EventDefinitionHandle(Handle handle) 1119public static implicit operator Handle(PropertyDefinitionHandle handle) 1129public static explicit operator PropertyDefinitionHandle(Handle handle) 1202public static implicit operator Handle(StandaloneSignatureHandle handle) 1212public static explicit operator StandaloneSignatureHandle(Handle handle) 1285public static implicit operator Handle(ParameterHandle handle) 1295public static explicit operator ParameterHandle(Handle handle) 1368public static implicit operator Handle(GenericParameterHandle handle) 1378public static explicit operator GenericParameterHandle(Handle handle) 1451public static implicit operator Handle(GenericParameterConstraintHandle handle) 1461public static explicit operator GenericParameterConstraintHandle(Handle handle) 1534public static implicit operator Handle(ModuleReferenceHandle handle) 1544public static explicit operator ModuleReferenceHandle(Handle handle) 1640public static implicit operator Handle(AssemblyReferenceHandle handle) 1642return Handle.FromVToken(handle.VToken); 1650public static explicit operator AssemblyReferenceHandle(Handle handle) 1735public static implicit operator Handle(CustomAttributeHandle handle) 1745public static explicit operator CustomAttributeHandle(Handle handle) 1818public static implicit operator Handle(DeclarativeSecurityAttributeHandle handle) 1828public static explicit operator DeclarativeSecurityAttributeHandle(Handle handle) 1901public static implicit operator Handle(ConstantHandle handle) 1911public static explicit operator ConstantHandle(Handle handle) 1984public static implicit operator Handle(ManifestResourceHandle handle) 1994public static explicit operator ManifestResourceHandle(Handle handle) 2067public static implicit operator Handle(AssemblyFileHandle handle) 2077public static explicit operator AssemblyFileHandle(Handle handle) 2159public static implicit operator Handle(UserStringHandle handle) 2164public static explicit operator UserStringHandle(Handle handle) 2343public static implicit operator Handle(StringHandle handle) 2351public static explicit operator StringHandle(Handle handle) 2474public static implicit operator Handle(NamespaceDefinitionHandle handle) 2481public static explicit operator NamespaceDefinitionHandle(Handle handle) 2602public static implicit operator Handle(BlobHandle handle) 2610public static explicit operator BlobHandle(Handle handle) 2694public static implicit operator Handle(GuidHandle handle) 2699public 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();