39 instantiations of Handle
System.Reflection.Metadata (39)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (2)
294
return new
Handle
((byte)handle.Type, relativeHeapOffset);
331
return new
Handle
((byte)handle.Type, relativeRowId);
System\Reflection\Metadata\Handle.cs (1)
30
return new
Handle
((byte)(vToken >> TokenTypeIds.RowIdBitCount), (int)(vToken & TokenTypeIds.RIDMask));
System\Reflection\Metadata\PortablePdb\Handles.Debug.cs (7)
29
return new
Handle
(tokenTypeSmall, handle._rowId);
112
return new
Handle
(tokenTypeSmall, handle._rowId);
207
return new
Handle
(tokenTypeSmall, handle._rowId);
290
return new
Handle
(tokenTypeSmall, handle._rowId);
373
return new
Handle
(tokenTypeSmall, handle._rowId);
456
return new
Handle
(tokenTypeSmall, handle._rowId);
539
return new
Handle
(tokenTypeSmall, handle._rowId);
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (29)
30
return new
Handle
(tokenTypeSmall, handle._rowId);
113
return new
Handle
(tokenTypeSmall, handle._rowId);
196
return new
Handle
(tokenTypeSmall, handle._rowId);
279
return new
Handle
(tokenTypeSmall, handle._rowId);
374
return new
Handle
(tokenTypeSmall, handle._rowId);
457
return new
Handle
(tokenTypeSmall, handle._rowId);
540
return new
Handle
(tokenTypeSmall, handle._rowId);
623
return new
Handle
(tokenTypeSmall, handle._rowId);
706
return new
Handle
(tokenTypeSmall, handle._rowId);
789
return new
Handle
(tokenTypeSmall, handle._rowId);
872
return new
Handle
(tokenTypeSmall, handle._rowId);
955
return new
Handle
(tokenTypeSmall, handle._rowId);
1038
return new
Handle
(tokenTypeSmall, handle._rowId);
1121
return new
Handle
(tokenTypeSmall, handle._rowId);
1204
return new
Handle
(tokenTypeSmall, handle._rowId);
1287
return new
Handle
(tokenTypeSmall, handle._rowId);
1370
return new
Handle
(tokenTypeSmall, handle._rowId);
1453
return new
Handle
(tokenTypeSmall, handle._rowId);
1536
return new
Handle
(tokenTypeSmall, handle._rowId);
1737
return new
Handle
(tokenTypeSmall, handle._rowId);
1820
return new
Handle
(tokenTypeSmall, handle._rowId);
1903
return new
Handle
(tokenTypeSmall, handle._rowId);
1986
return new
Handle
(tokenTypeSmall, handle._rowId);
2069
return new
Handle
(tokenTypeSmall, handle._rowId);
2161
return new
Handle
((byte)HandleType.UserString, handle._offset);
2346
return new
Handle
(
2476
return new
Handle
(
2605
return new
Handle
(
2696
return new
Handle
((byte)HandleType.Guid, handle._index);
127 references to Handle
ILCompiler.ReadyToRun (3)
Compiler\DependencyAnalysis\ReadyToRun\ModuleToken.cs (2)
34
public ModuleToken(IEcmaModule module,
Handle
handle)
82
public
Handle
Handle => MetadataTokens.Handle((int)Token);
Compiler\ReadyToRunStandaloneMethodMetadata.cs (1)
127
var
handle = MetadataTokens.Handle(token);
ILCompiler.TypeSystem (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\SymbolReader\PortablePdbSymbolReader.cs (1)
215
foreach (CustomDebugInformationHandle cdiHandle in _reader.GetCustomDebugInformation(
Handle
.ModuleDefinition))
Microsoft.CodeAnalysis (1)
PEWriter\MetadataWriter.cs (1)
2068
EntityHandle parentHandle =
Handle
.AssemblyDefinition;
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
61
Handle
handle = MetadataTokens.Handle(methodToken);
System.Reflection.Metadata (118)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (2)
248
public
Handle
GetGenerationHandle(
Handle
handle, out int generation)
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (11)
41
public static int GetHeapOffset(this MetadataReader reader,
Handle
handle)
80
public static int GetToken(this MetadataReader reader,
Handle
handle)
95
private static int MapVirtualHandleRowId(MetadataReader reader,
Handle
handle)
134
/// See <see cref="GetHeapOffset(MetadataReader,
Handle
)"/>.
136
public 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
)"/>.
200
public static int GetToken(
Handle
handle)
289
public static
Handle
Handle(int token)
296
return Metadata.
Handle
.FromVToken((uint)token);
System\Reflection\Metadata\EntityHandle.cs (4)
15
/// It has smaller memory footprint than <see cref="
Handle
"/>.
30
public static implicit operator
Handle
(EntityHandle handle)
32
return
Handle
.FromVToken(handle._vToken);
35
public static explicit operator EntityHandle(
Handle
handle)
System\Reflection\Metadata\Handle.cs (12)
14
/// Use <see cref="
Handle
"/> to store multiple kinds of handles.
16
public readonly struct Handle : IEquatable<
Handle
>
26
/// Creates <see cref="
Handle
"/> from a token or a token combined with a virtual flag.
28
internal static
Handle
FromVToken(uint vToken)
165
return obj is
Handle
handle && Equals(handle);
168
public bool Equals(
Handle
other)
178
public static bool operator ==(
Handle
left,
Handle
right)
183
public static bool operator !=(
Handle
left,
Handle
right)
188
internal static int Compare(
Handle
left,
Handle
right)
System\Reflection\Metadata\HandleComparer.cs (10)
8
public sealed class HandleComparer : IEqualityComparer<
Handle
>, IComparer<
Handle
>, IEqualityComparer<EntityHandle>, IComparer<EntityHandle>
21
public bool Equals(
Handle
x,
Handle
y)
31
public int GetHashCode(
Handle
obj)
46
/// Returns 0 if and only if <see cref="Equals(
Handle
,
Handle
)"/> returns true.
48
public int Compare(
Handle
x,
Handle
y)
50
return
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)
27
public static implicit operator
Handle
(DocumentHandle handle)
37
public static explicit operator DocumentHandle(
Handle
handle)
110
public static implicit operator
Handle
(MethodDebugInformationHandle handle)
120
public static explicit operator MethodDebugInformationHandle(
Handle
handle)
205
public static implicit operator
Handle
(LocalScopeHandle handle)
215
public static explicit operator LocalScopeHandle(
Handle
handle)
288
public static implicit operator
Handle
(LocalVariableHandle handle)
298
public static explicit operator LocalVariableHandle(
Handle
handle)
371
public static implicit operator
Handle
(LocalConstantHandle handle)
381
public static explicit operator LocalConstantHandle(
Handle
handle)
454
public static implicit operator
Handle
(ImportScopeHandle handle)
464
public static explicit operator ImportScopeHandle(
Handle
handle)
537
public static implicit operator
Handle
(CustomDebugInformationHandle handle)
547
public static explicit operator CustomDebugInformationHandle(
Handle
handle)
System\Reflection\Metadata\PortablePdb\ImportDefinition.cs (3)
16
private readonly
Handle
_typeOrNamespace;
22
Handle
typeOrNamespace = default(
Handle
))
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (61)
28
public static implicit operator
Handle
(ModuleDefinitionHandle handle)
38
public static explicit operator ModuleDefinitionHandle(
Handle
handle)
111
public static implicit operator
Handle
(AssemblyDefinitionHandle handle)
121
public static explicit operator AssemblyDefinitionHandle(
Handle
handle)
194
public static implicit operator
Handle
(InterfaceImplementationHandle handle)
204
public static explicit operator InterfaceImplementationHandle(
Handle
handle)
277
public static implicit operator
Handle
(MethodDefinitionHandle handle)
287
public static explicit operator MethodDefinitionHandle(
Handle
handle)
372
public static implicit operator
Handle
(MethodImplementationHandle handle)
382
public static explicit operator MethodImplementationHandle(
Handle
handle)
455
public static implicit operator
Handle
(MethodSpecificationHandle handle)
465
public static explicit operator MethodSpecificationHandle(
Handle
handle)
538
public static implicit operator
Handle
(TypeDefinitionHandle handle)
548
public static explicit operator TypeDefinitionHandle(
Handle
handle)
621
public static implicit operator
Handle
(ExportedTypeHandle handle)
631
public static explicit operator ExportedTypeHandle(
Handle
handle)
704
public static implicit operator
Handle
(TypeReferenceHandle handle)
714
public static explicit operator TypeReferenceHandle(
Handle
handle)
787
public static implicit operator
Handle
(TypeSpecificationHandle handle)
797
public static explicit operator TypeSpecificationHandle(
Handle
handle)
870
public static implicit operator
Handle
(MemberReferenceHandle handle)
880
public static explicit operator MemberReferenceHandle(
Handle
handle)
953
public static implicit operator
Handle
(FieldDefinitionHandle handle)
963
public static explicit operator FieldDefinitionHandle(
Handle
handle)
1036
public static implicit operator
Handle
(EventDefinitionHandle handle)
1046
public static explicit operator EventDefinitionHandle(
Handle
handle)
1119
public static implicit operator
Handle
(PropertyDefinitionHandle handle)
1129
public static explicit operator PropertyDefinitionHandle(
Handle
handle)
1202
public static implicit operator
Handle
(StandaloneSignatureHandle handle)
1212
public static explicit operator StandaloneSignatureHandle(
Handle
handle)
1285
public static implicit operator
Handle
(ParameterHandle handle)
1295
public static explicit operator ParameterHandle(
Handle
handle)
1368
public static implicit operator
Handle
(GenericParameterHandle handle)
1378
public static explicit operator GenericParameterHandle(
Handle
handle)
1451
public static implicit operator
Handle
(GenericParameterConstraintHandle handle)
1461
public static explicit operator GenericParameterConstraintHandle(
Handle
handle)
1534
public static implicit operator
Handle
(ModuleReferenceHandle handle)
1544
public static explicit operator ModuleReferenceHandle(
Handle
handle)
1640
public static implicit operator
Handle
(AssemblyReferenceHandle handle)
1642
return
Handle
.FromVToken(handle.VToken);
1650
public static explicit operator AssemblyReferenceHandle(
Handle
handle)
1735
public static implicit operator
Handle
(CustomAttributeHandle handle)
1745
public static explicit operator CustomAttributeHandle(
Handle
handle)
1818
public static implicit operator
Handle
(DeclarativeSecurityAttributeHandle handle)
1828
public static explicit operator DeclarativeSecurityAttributeHandle(
Handle
handle)
1901
public static implicit operator
Handle
(ConstantHandle handle)
1911
public static explicit operator ConstantHandle(
Handle
handle)
1984
public static implicit operator
Handle
(ManifestResourceHandle handle)
1994
public static explicit operator ManifestResourceHandle(
Handle
handle)
2067
public static implicit operator
Handle
(AssemblyFileHandle handle)
2077
public static explicit operator AssemblyFileHandle(
Handle
handle)
2159
public static implicit operator
Handle
(UserStringHandle handle)
2164
public static explicit operator UserStringHandle(
Handle
handle)
2343
public static implicit operator
Handle
(StringHandle handle)
2351
public static explicit operator StringHandle(
Handle
handle)
2474
public static implicit operator
Handle
(NamespaceDefinitionHandle handle)
2481
public static explicit operator NamespaceDefinitionHandle(
Handle
handle)
2602
public static implicit operator
Handle
(BlobHandle handle)
2610
public static explicit operator BlobHandle(
Handle
handle)
2694
public static implicit operator
Handle
(GuidHandle handle)
2699
public static explicit operator GuidHandle(
Handle
handle)
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (2)
59
public static int GetToken(this
Handle
handle) => MetadataTokens.GetToken(handle);
91
public static
Handle
ToHandle(this int token) => MetadataTokens.Handle(token);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (1)
58
Handle
handle = entryPointToken.ToHandle();