137 references to HandleType
System.Reflection.Metadata (137)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (2)
266
var size = (handle.Type ==
HandleType
.Guid) ? heapOffset - 1 : heapOffset;
291
int relativeHeapOffset = (handle.Type ==
HandleType
.Guid || generation == 0) ? heapOffset : heapOffset - sizes[generation - 1];
System\Reflection\Metadata\Handle.cs (9)
82
get { return _vType &
HandleType
.TypeMask; }
105
return (_vType &
HandleType
.VirtualBit) << TokenTypeIds.RowIdBitCount | (uint)_value;
116
get { return (_vType &
HandleType
.VirtualBit) != 0; }
121
get { return (_vType &
HandleType
.HeapMask) ==
HandleType
.HeapMask; }
131
if ((type & ~
HandleType
.NonVirtualStringTypeMask) ==
HandleType
.String)
143
get { return ((uint)_value | (_vType &
HandleType
.VirtualBit)) == 0; }
148
get { return Type <=
HandleType
.UserString; }
System\Reflection\Metadata\HandleKind.cs (37)
10
ModuleDefinition = (byte)
HandleType
.Module,
11
TypeReference = (byte)
HandleType
.TypeRef,
12
TypeDefinition = (byte)
HandleType
.TypeDef,
13
FieldDefinition = (byte)
HandleType
.FieldDef,
14
MethodDefinition = (byte)
HandleType
.MethodDef,
15
Parameter = (byte)
HandleType
.ParamDef,
16
InterfaceImplementation = (byte)
HandleType
.InterfaceImpl,
17
MemberReference = (byte)
HandleType
.MemberRef,
18
Constant = (byte)
HandleType
.Constant,
19
CustomAttribute = (byte)
HandleType
.CustomAttribute,
20
DeclarativeSecurityAttribute = (byte)
HandleType
.DeclSecurity,
21
StandaloneSignature = (byte)
HandleType
.Signature,
22
EventDefinition = (byte)
HandleType
.Event,
23
PropertyDefinition = (byte)
HandleType
.Property,
24
MethodImplementation = (byte)
HandleType
.MethodImpl,
25
ModuleReference = (byte)
HandleType
.ModuleRef,
26
TypeSpecification = (byte)
HandleType
.TypeSpec,
27
AssemblyDefinition = (byte)
HandleType
.Assembly,
28
AssemblyFile = (byte)
HandleType
.File,
29
AssemblyReference = (byte)
HandleType
.AssemblyRef,
30
ExportedType = (byte)
HandleType
.ExportedType,
31
GenericParameter = (byte)
HandleType
.GenericParam,
32
MethodSpecification = (byte)
HandleType
.MethodSpec,
33
GenericParameterConstraint = (byte)
HandleType
.GenericParamConstraint,
34
ManifestResource = (byte)
HandleType
.ManifestResource,
37
Document = (byte)
HandleType
.Document,
38
MethodDebugInformation = (byte)
HandleType
.MethodDebugInformation,
39
LocalScope = (byte)
HandleType
.LocalScope,
40
LocalVariable = (byte)
HandleType
.LocalVariable,
41
LocalConstant = (byte)
HandleType
.LocalConstant,
42
ImportScope = (byte)
HandleType
.ImportScope,
43
CustomDebugInformation = (byte)
HandleType
.CustomDebugInformation,
46
NamespaceDefinition = (byte)
HandleType
.Namespace,
47
UserString = (byte)
HandleType
.UserString,
48
String = (byte)
HandleType
.String,
49
Blob = (byte)
HandleType
.Blob,
50
Guid = (byte)
HandleType
.Guid,
System\Reflection\Metadata\Internal\MetadataFlags.cs (39)
289
internal const uint Module =
HandleType
.Module << RowIdBitCount;
290
internal const uint TypeRef =
HandleType
.TypeRef << RowIdBitCount;
291
internal const uint TypeDef =
HandleType
.TypeDef << RowIdBitCount;
292
internal const uint FieldDef =
HandleType
.FieldDef << RowIdBitCount;
293
internal const uint MethodDef =
HandleType
.MethodDef << RowIdBitCount;
294
internal const uint ParamDef =
HandleType
.ParamDef << RowIdBitCount;
295
internal const uint InterfaceImpl =
HandleType
.InterfaceImpl << RowIdBitCount;
296
internal const uint MemberRef =
HandleType
.MemberRef << RowIdBitCount;
297
internal const uint Constant =
HandleType
.Constant << RowIdBitCount;
298
internal const uint CustomAttribute =
HandleType
.CustomAttribute << RowIdBitCount;
299
internal const uint DeclSecurity =
HandleType
.DeclSecurity << RowIdBitCount;
300
internal const uint Signature =
HandleType
.Signature << RowIdBitCount;
301
internal const uint EventMap =
HandleType
.EventMap << RowIdBitCount;
302
internal const uint Event =
HandleType
.Event << RowIdBitCount;
303
internal const uint PropertyMap =
HandleType
.PropertyMap << RowIdBitCount;
304
internal const uint Property =
HandleType
.Property << RowIdBitCount;
305
internal const uint MethodSemantics =
HandleType
.MethodSemantics << RowIdBitCount;
306
internal const uint MethodImpl =
HandleType
.MethodImpl << RowIdBitCount;
307
internal const uint ModuleRef =
HandleType
.ModuleRef << RowIdBitCount;
308
internal const uint TypeSpec =
HandleType
.TypeSpec << RowIdBitCount;
309
internal const uint Assembly =
HandleType
.Assembly << RowIdBitCount;
310
internal const uint AssemblyRef =
HandleType
.AssemblyRef << RowIdBitCount;
311
internal const uint File =
HandleType
.File << RowIdBitCount;
312
internal const uint ExportedType =
HandleType
.ExportedType << RowIdBitCount;
313
internal const uint ManifestResource =
HandleType
.ManifestResource << RowIdBitCount;
314
internal const uint NestedClass =
HandleType
.NestedClass << RowIdBitCount;
315
internal const uint GenericParam =
HandleType
.GenericParam << RowIdBitCount;
316
internal const uint MethodSpec =
HandleType
.MethodSpec << RowIdBitCount;
317
internal const uint GenericParamConstraint =
HandleType
.GenericParamConstraint << RowIdBitCount;
320
internal const uint Document =
HandleType
.Document << RowIdBitCount;
321
internal const uint MethodDebugInformation =
HandleType
.MethodDebugInformation << RowIdBitCount;
322
internal const uint LocalScope =
HandleType
.LocalScope << RowIdBitCount;
323
internal const uint LocalVariable =
HandleType
.LocalVariable << RowIdBitCount;
324
internal const uint LocalConstant =
HandleType
.LocalConstant << RowIdBitCount;
325
internal const uint ImportScope =
HandleType
.ImportScope << RowIdBitCount;
326
internal const uint AsyncMethod =
HandleType
.AsyncMethod << RowIdBitCount;
327
internal const uint CustomDebugInformation =
HandleType
.CustomDebugInformation << RowIdBitCount;
329
internal const uint UserString =
HandleType
.UserString << RowIdBitCount;
333
internal const uint TypeMask =
HandleType
.TypeMask << RowIdBitCount;
System\Reflection\Metadata\PortablePdb\Handles.Debug.cs (7)
13
private const byte tokenTypeSmall = (byte)
HandleType
.Document;
96
private const byte tokenTypeSmall = (byte)
HandleType
.MethodDebugInformation;
191
private const byte tokenTypeSmall = (byte)
HandleType
.LocalScope;
274
private const byte tokenTypeSmall = (byte)
HandleType
.LocalVariable;
357
private const byte tokenTypeSmall = (byte)
HandleType
.LocalConstant;
440
private const byte tokenTypeSmall = (byte)
HandleType
.ImportScope;
523
private const byte tokenTypeSmall = (byte)
HandleType
.CustomDebugInformation;
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (43)
13
private const byte tokenTypeSmall = (byte)
HandleType
.Module;
96
private const byte tokenTypeSmall = (byte)
HandleType
.Assembly;
179
private const byte tokenTypeSmall = (byte)
HandleType
.InterfaceImpl;
262
private const byte tokenTypeSmall = (byte)
HandleType
.MethodDef;
357
private const byte tokenTypeSmall = (byte)
HandleType
.MethodImpl;
440
private const byte tokenTypeSmall = (byte)
HandleType
.MethodSpec;
523
private const byte tokenTypeSmall = (byte)
HandleType
.TypeDef;
606
private const byte tokenTypeSmall = (byte)
HandleType
.ExportedType;
689
private const byte tokenTypeSmall = (byte)
HandleType
.TypeRef;
772
private const byte tokenTypeSmall = (byte)
HandleType
.TypeSpec;
855
private const byte tokenTypeSmall = (byte)
HandleType
.MemberRef;
938
private const byte tokenTypeSmall = (byte)
HandleType
.FieldDef;
1021
private const byte tokenTypeSmall = (byte)
HandleType
.Event;
1104
private const byte tokenTypeSmall = (byte)
HandleType
.Property;
1187
private const byte tokenTypeSmall = (byte)
HandleType
.Signature;
1270
private const byte tokenTypeSmall = (byte)
HandleType
.ParamDef;
1353
private const byte tokenTypeSmall = (byte)
HandleType
.GenericParam;
1436
private const byte tokenTypeSmall = (byte)
HandleType
.GenericParamConstraint;
1519
private const byte tokenTypeSmall = (byte)
HandleType
.ModuleRef;
1602
private const byte tokenTypeSmall = (byte)
HandleType
.AssemblyRef;
1720
private const byte tokenTypeSmall = (byte)
HandleType
.CustomAttribute;
1803
private const byte tokenTypeSmall = (byte)
HandleType
.DeclSecurity;
1886
private const byte tokenTypeSmall = (byte)
HandleType
.Constant;
1969
private const byte tokenTypeSmall = (byte)
HandleType
.ManifestResource;
2052
private const byte tokenTypeSmall = (byte)
HandleType
.File;
2160
return new Handle((byte)
HandleType
.UserString, handle._offset);
2165
if (handle.VType !=
HandleType
.UserString)
2346
(byte)((handle._value & HeapHandleType.VirtualBit) >> 24 |
HandleType
.String | (handle._value & StringHandleType.NonVirtualTypeMask) >> HeapHandleType.OffsetBitCount),
2352
if ((handle.VType & ~(
HandleType
.VirtualBit |
HandleType
.NonVirtualStringTypeMask)) !=
HandleType
.String)
2359
(handle.VType &
HandleType
.VirtualBit) << 24 |
2360
(handle.VType &
HandleType
.NonVirtualStringTypeMask) << HeapHandleType.OffsetBitCount |
2476
(byte)((handle._value & HeapHandleType.VirtualBit) >> 24 |
HandleType
.Namespace),
2482
if ((handle.VType &
HandleType
.TypeMask) !=
HandleType
.Namespace)
2488
(handle.VType &
HandleType
.VirtualBit) << TokenTypeIds.RowIdBitCount |
2608
(byte)((handle._value & HeapHandleType.VirtualBit) >> 24 |
HandleType
.Blob),
2614
if ((handle.VType &
HandleType
.TypeMask) !=
HandleType
.Blob)
2620
(handle.VType &
HandleType
.VirtualBit) << TokenTypeIds.RowIdBitCount |
2698
return new Handle((byte)
HandleType
.Guid, handle._index);
2703
if (handle.VType !=
HandleType
.Guid)