405 references to TokenTypeIds
System.Reflection.Metadata (405)
System\Reflection\Internal\Utilities\MemoryBlock.cs (1)
215
if (!
TokenTypeIds
.IsValidRowId(value))
System\Reflection\Metadata\BlobReader.cs (3)
619
private static ReadOnlySpan<uint> CorEncodeTokenArray => [
TokenTypeIds
.TypeDef,
TokenTypeIds
.TypeRef,
TokenTypeIds
.TypeSpec, 0];
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (2)
218
int rid = (int)(token &
TokenTypeIds
.RIDMask);
220
var tableRowCounts = rowCounts[token >>
TokenTypeIds
.RowIdBitCount];
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (6)
291
if (!
TokenTypeIds
.IsEntityOrUserStringToken(unchecked((uint)token)))
305
if (!
TokenTypeIds
.IsEntityToken(unchecked((uint)token)))
330
int token = ((int)tableIndex <<
TokenTypeIds
.RowIdBitCount) | rowNumber;
332
if (!
TokenTypeIds
.IsEntityOrUserStringToken(unchecked((uint)token)))
342
return rowNumber & (int)
TokenTypeIds
.RIDMask;
501
return Metadata.UserStringHandle.FromOffset(offset & (int)
TokenTypeIds
.RIDMask);
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (1)
88
if ((unchecked((uint)typeSystemRowCounts[i]) & ~
TokenTypeIds
.RIDMask) != 0)
System\Reflection\Metadata\EntityHandle.cs (10)
47
get { return _vToken &
TokenTypeIds
.TypeMask; }
52
get { return _vToken & (
TokenTypeIds
.VirtualBit |
TokenTypeIds
.TypeMask); }
57
get { return (_vToken &
TokenTypeIds
.VirtualBit) != 0; }
63
get { return (_vToken & (
TokenTypeIds
.VirtualBit |
TokenTypeIds
.RIDMask)) == 0; }
68
get { return (int)(_vToken &
TokenTypeIds
.RIDMask); }
76
get { return _vToken & (
TokenTypeIds
.VirtualBit |
TokenTypeIds
.RIDMask); }
85
return (HandleKind)(Type >>
TokenTypeIds
.RowIdBitCount);
System\Reflection\Metadata\Handle.cs (10)
30
return new Handle((byte)(vToken >>
TokenTypeIds
.RowIdBitCount), (int)(vToken &
TokenTypeIds
.RIDMask));
46
!IsHeapHandle && value <=
TokenTypeIds
.RIDMask);
74
get { return Type <<
TokenTypeIds
.RowIdBitCount; }
92
Debug.Assert((_value &
TokenTypeIds
.RIDMask) == _value);
93
return (uint)_vType <<
TokenTypeIds
.RowIdBitCount | (uint)_value;
104
Debug.Assert((_value &
TokenTypeIds
.RIDMask) == _value);
105
return (_vType & HandleType.VirtualBit) <<
TokenTypeIds
.RowIdBitCount | (uint)_value;
157
Debug.Assert((_value &
TokenTypeIds
.RIDMask) == _value);
159
return _vType <<
TokenTypeIds
.RowIdBitCount | _value;
System\Reflection\Metadata\IL\MethodBodyBlock.cs (3)
143
else if ((localSignatureToken &
TokenTypeIds
.TypeMask) ==
TokenTypeIds
.Signature)
145
localSignatureHandle = StandaloneSignatureHandle.FromRowId((int)((uint)localSignatureToken &
TokenTypeIds
.RIDMask));
System\Reflection\Metadata\Internal\CustomAttributeTypeTag.cs (4)
15
internal const ulong TagToTokenTypeByteVector =
TokenTypeIds
.MethodDef >> 8 |
TokenTypeIds
.MemberRef;
23
uint tokenType = unchecked((uint)(TagToTokenTypeByteVector >> ((int)(customAttributeType & TagMask) << 3)) <<
TokenTypeIds
.RowIdBitCount);
26
if (tokenType == 0 || (rowId & ~
TokenTypeIds
.RIDMask) != 0)
System\Reflection\Metadata\Internal\HasConstantTag.cs (5)
20
internal const uint TagToTokenTypeByteVector =
TokenTypeIds
.FieldDef >> 24 |
TokenTypeIds
.ParamDef >> 16 |
TokenTypeIds
.Property >> 8;
25
uint tokenType = (TagToTokenTypeByteVector >> ((int)(hasConstant & TagMask) << 3)) <<
TokenTypeIds
.RowIdBitCount;
28
if (tokenType == 0 || (rowId & ~
TokenTypeIds
.RIDMask) != 0)
System\Reflection\Metadata\Internal\HasCustomAttributeTag.cs (68)
41
TokenTypeIds
.MethodDef,
42
TokenTypeIds
.FieldDef,
43
TokenTypeIds
.TypeRef,
44
TokenTypeIds
.TypeDef,
45
TokenTypeIds
.ParamDef,
46
TokenTypeIds
.InterfaceImpl,
47
TokenTypeIds
.MemberRef,
48
TokenTypeIds
.Module,
49
TokenTypeIds
.DeclSecurity,
50
TokenTypeIds
.Property,
51
TokenTypeIds
.Event,
52
TokenTypeIds
.Signature,
53
TokenTypeIds
.ModuleRef,
54
TokenTypeIds
.TypeSpec,
55
TokenTypeIds
.Assembly,
56
TokenTypeIds
.AssemblyRef,
57
TokenTypeIds
.File,
58
TokenTypeIds
.ExportedType,
59
TokenTypeIds
.ManifestResource,
60
TokenTypeIds
.GenericParam,
61
TokenTypeIds
.GenericParamConstraint,
62
TokenTypeIds
.MethodSpec,
106
if (tokenType == InvalidTokenType || ((rowId & ~
TokenTypeIds
.RIDMask) != 0))
118
return (tokenType >>
TokenTypeIds
.RowIdBitCount) switch
120
TokenTypeIds
.MethodDef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | MethodDef,
121
TokenTypeIds
.FieldDef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Field,
122
TokenTypeIds
.TypeRef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | TypeRef,
123
TokenTypeIds
.TypeDef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | TypeDef,
124
TokenTypeIds
.ParamDef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Param,
125
TokenTypeIds
.InterfaceImpl >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | InterfaceImpl,
126
TokenTypeIds
.MemberRef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | MemberRef,
127
TokenTypeIds
.Module >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Module,
128
TokenTypeIds
.DeclSecurity >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | DeclSecurity,
129
TokenTypeIds
.Property >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Property,
130
TokenTypeIds
.Event >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Event,
131
TokenTypeIds
.Signature >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | StandAloneSig,
132
TokenTypeIds
.ModuleRef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | ModuleRef,
133
TokenTypeIds
.TypeSpec >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | TypeSpec,
134
TokenTypeIds
.Assembly >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Assembly,
135
TokenTypeIds
.AssemblyRef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | AssemblyRef,
136
TokenTypeIds
.File >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | File,
137
TokenTypeIds
.ExportedType >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | ExportedType,
138
TokenTypeIds
.ManifestResource >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | ManifestResource,
139
TokenTypeIds
.GenericParam >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | GenericParam,
140
TokenTypeIds
.GenericParamConstraint >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | GenericParamConstraint,
141
TokenTypeIds
.MethodSpec >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | MethodSpec,
System\Reflection\Metadata\Internal\HasDeclSecurityTag.cs (12)
20
internal const uint TagToTokenTypeByteVector = (
TokenTypeIds
.TypeDef >> 24) | (
TokenTypeIds
.MethodDef >> 16) | (
TokenTypeIds
.Assembly >> 8);
25
uint tokenType = (TagToTokenTypeByteVector >> ((int)(hasDeclSecurity & TagMask) << 3)) <<
TokenTypeIds
.RowIdBitCount;
28
if (tokenType == 0 || (rowId & ~
TokenTypeIds
.RIDMask) != 0)
40
return (tokenType >>
TokenTypeIds
.RowIdBitCount) switch
42
TokenTypeIds
.TypeDef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | TypeDef,
43
TokenTypeIds
.MethodDef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | MethodDef,
44
TokenTypeIds
.Assembly >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Assembly,
System\Reflection\Metadata\Internal\HasFieldMarshalTag.cs (6)
18
internal const uint TagToTokenTypeByteVector =
TokenTypeIds
.FieldDef >> 24 |
TokenTypeIds
.ParamDef >> 16;
23
uint tokenType = (TagToTokenTypeByteVector >> ((int)(hasFieldMarshal & TagMask) << 3)) <<
TokenTypeIds
.RowIdBitCount;
26
if ((rowId & ~
TokenTypeIds
.RIDMask) != 0)
36
if (handle.Type ==
TokenTypeIds
.FieldDef)
40
else if (handle.Type ==
TokenTypeIds
.ParamDef)
System\Reflection\Metadata\Internal\HasSemanticsTag.cs (4)
18
internal const uint TagToTokenTypeByteVector =
TokenTypeIds
.Event >> 24 |
TokenTypeIds
.Property >> 16;
23
uint tokenType = (TagToTokenTypeByteVector >> ((int)(hasSemantic & TagMask) << 3)) <<
TokenTypeIds
.RowIdBitCount;
26
if ((rowId & ~
TokenTypeIds
.RIDMask) != 0)
System\Reflection\Metadata\Internal\ImplementationTag.cs (5)
16
internal const uint TagToTokenTypeByteVector =
TokenTypeIds
.File >> 24 |
TokenTypeIds
.AssemblyRef >> 16 |
TokenTypeIds
.ExportedType >> 8;
25
uint tokenType = (TagToTokenTypeByteVector >> ((int)(implementation & TagMask) << 3)) <<
TokenTypeIds
.RowIdBitCount;
28
if (tokenType == 0 || (rowId & ~
TokenTypeIds
.RIDMask) != 0)
System\Reflection\Metadata\Internal\MemberForwardedTag.cs (4)
18
internal const uint TagToTokenTypeByteVector =
TokenTypeIds
.FieldDef >> 24 |
TokenTypeIds
.MethodDef >> 16;
23
uint tokenType = (TagToTokenTypeByteVector >> ((int)(memberForwarded & TagMask) << 3)) <<
TokenTypeIds
.RowIdBitCount;
26
if ((rowId & ~
TokenTypeIds
.RIDMask) != 0)
System\Reflection\Metadata\Internal\MemberRefParentTag.cs (7)
25
(ulong)
TokenTypeIds
.TypeDef >> 24
26
| (ulong)
TokenTypeIds
.TypeRef >> 16
27
| (ulong)
TokenTypeIds
.ModuleRef >> 8
28
| (ulong)
TokenTypeIds
.MethodDef
29
| (ulong)
TokenTypeIds
.TypeSpec << 8;
34
uint tokenType = unchecked((uint)((TagToTokenTypeByteVector >> ((int)(memberRef & TagMask) << 3)) <<
TokenTypeIds
.RowIdBitCount));
37
if (tokenType == 0 || (rowId & ~
TokenTypeIds
.RIDMask) != 0)
System\Reflection\Metadata\Internal\MethodDefOrRefTag.cs (4)
18
internal const uint TagToTokenTypeByteVector =
TokenTypeIds
.MethodDef >> 24 |
TokenTypeIds
.MemberRef >> 16;
23
uint tokenType = (TagToTokenTypeByteVector >> ((int)(methodDefOrRef & TagMask) << 3)) <<
TokenTypeIds
.RowIdBitCount;
26
if ((rowId & ~
TokenTypeIds
.RIDMask) != 0)
System\Reflection\Metadata\Internal\ResolutionScopeTag.cs (6)
17
internal const uint TagToTokenTypeByteVector =
TokenTypeIds
.Module >> 24 |
TokenTypeIds
.ModuleRef >> 16 |
TokenTypeIds
.AssemblyRef >> 8 |
TokenTypeIds
.TypeRef;
27
uint tokenType = (TagToTokenTypeByteVector >> ((int)(resolutionScope & TagMask) << 3)) <<
TokenTypeIds
.RowIdBitCount;
30
if ((rowId & ~
TokenTypeIds
.RIDMask) != 0)
System\Reflection\Metadata\Internal\TypeDefOrRefTag.cs (5)
16
internal const uint TagToTokenTypeByteVector =
TokenTypeIds
.TypeDef >> 24 |
TokenTypeIds
.TypeRef >> 16 |
TokenTypeIds
.TypeSpec >> 8;
26
uint tokenType = (TagToTokenTypeByteVector >> ((int)(typeDefOrRefTag & TagMask) << 3)) <<
TokenTypeIds
.RowIdBitCount;
29
if (tokenType == 0 || (rowId & ~
TokenTypeIds
.RIDMask) != 0)
System\Reflection\Metadata\Internal\TypeOrMethodDefTag.cs (4)
15
internal const uint TagToTokenTypeByteVector =
TokenTypeIds
.TypeDef >> 24 |
TokenTypeIds
.MethodDef >> 16;
23
uint tokenType = (TagToTokenTypeByteVector >> ((int)(typeOrMethodDef & TagMask) << 3)) <<
TokenTypeIds
.RowIdBitCount;
26
if ((rowId & ~
TokenTypeIds
.RIDMask) != 0)
System\Reflection\Metadata\MetadataReader.cs (4)
507
if (rowCount >
TokenTypeIds
.RIDMask)
536
int entryPointRowId = (int)(entryPointToken &
TokenTypeIds
.RIDMask);
537
if (entryPointToken != 0 && ((entryPointToken &
TokenTypeIds
.TypeMask) !=
TokenTypeIds
.MethodDef || entryPointRowId == 0))
System\Reflection\Metadata\MetadataReader.WinMD.cs (1)
215
return ((uint)treatment <<
TokenTypeIds
.RowIdBitCount) | (uint)rowId;
System\Reflection\Metadata\PortablePdb\HandleCollections.Debug.cs (16)
60
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
74
return DocumentHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
159
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
173
return MethodDebugInformationHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
265
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
279
return LocalScopeHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
326
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
342
return LocalScopeHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
473
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
487
return LocalVariableHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
579
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
593
return LocalConstantHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
678
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
692
return ImportScopeHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
785
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
799
return CustomDebugInformationHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
System\Reflection\Metadata\PortablePdb\Handles.Debug.cs (14)
12
private const uint tokenType =
TokenTypeIds
.Document;
18
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
95
private const uint tokenType =
TokenTypeIds
.MethodDebugInformation;
101
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
190
private const uint tokenType =
TokenTypeIds
.LocalScope;
196
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
273
private const uint tokenType =
TokenTypeIds
.LocalVariable;
279
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
356
private const uint tokenType =
TokenTypeIds
.LocalConstant;
362
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
439
private const uint tokenType =
TokenTypeIds
.ImportScope;
445
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
522
private const uint tokenType =
TokenTypeIds
.CustomDebugInformation;
528
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
System\Reflection\Metadata\PortablePdb\HasCustomDebugInformationTag.cs (83)
49
TokenTypeIds
.MethodDef,
50
TokenTypeIds
.FieldDef,
51
TokenTypeIds
.TypeRef,
52
TokenTypeIds
.TypeDef,
53
TokenTypeIds
.ParamDef,
54
TokenTypeIds
.InterfaceImpl,
55
TokenTypeIds
.MemberRef,
56
TokenTypeIds
.Module,
57
TokenTypeIds
.DeclSecurity,
58
TokenTypeIds
.Property,
59
TokenTypeIds
.Event,
60
TokenTypeIds
.Signature,
61
TokenTypeIds
.ModuleRef,
62
TokenTypeIds
.TypeSpec,
63
TokenTypeIds
.Assembly,
64
TokenTypeIds
.AssemblyRef,
65
TokenTypeIds
.File,
66
TokenTypeIds
.ExportedType,
67
TokenTypeIds
.ManifestResource,
68
TokenTypeIds
.GenericParam,
69
TokenTypeIds
.GenericParamConstraint,
70
TokenTypeIds
.MethodSpec,
72
TokenTypeIds
.Document,
73
TokenTypeIds
.LocalScope,
74
TokenTypeIds
.LocalVariable,
75
TokenTypeIds
.LocalConstant,
76
TokenTypeIds
.ImportScope,
120
if (tokenType == InvalidTokenType || ((rowId & ~
TokenTypeIds
.RIDMask) != 0))
132
return (tokenType >>
TokenTypeIds
.RowIdBitCount) switch
134
TokenTypeIds
.MethodDef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | MethodDef,
135
TokenTypeIds
.FieldDef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Field,
136
TokenTypeIds
.TypeRef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | TypeRef,
137
TokenTypeIds
.TypeDef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | TypeDef,
138
TokenTypeIds
.ParamDef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Param,
139
TokenTypeIds
.InterfaceImpl >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | InterfaceImpl,
140
TokenTypeIds
.MemberRef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | MemberRef,
141
TokenTypeIds
.Module >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Module,
142
TokenTypeIds
.DeclSecurity >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | DeclSecurity,
143
TokenTypeIds
.Property >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Property,
144
TokenTypeIds
.Event >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Event,
145
TokenTypeIds
.Signature >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | StandAloneSig,
146
TokenTypeIds
.ModuleRef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | ModuleRef,
147
TokenTypeIds
.TypeSpec >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | TypeSpec,
148
TokenTypeIds
.Assembly >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Assembly,
149
TokenTypeIds
.AssemblyRef >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | AssemblyRef,
150
TokenTypeIds
.File >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | File,
151
TokenTypeIds
.ExportedType >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | ExportedType,
152
TokenTypeIds
.ManifestResource >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | ManifestResource,
153
TokenTypeIds
.GenericParam >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | GenericParam,
154
TokenTypeIds
.GenericParamConstraint >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | GenericParamConstraint,
155
TokenTypeIds
.MethodSpec >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | MethodSpec,
157
TokenTypeIds
.Document >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Document,
158
TokenTypeIds
.LocalScope >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | LocalScope,
159
TokenTypeIds
.LocalVariable >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | LocalVariable,
160
TokenTypeIds
.LocalConstant >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | LocalConstant,
161
TokenTypeIds
.ImportScope >>
TokenTypeIds
.RowIdBitCount => rowId << NumberOfBits | Import,
System\Reflection\Metadata\PortablePdb\SequencePointCollection.cs (1)
184
if (rowId == 0 || !
TokenTypeIds
.IsValidRowId(rowId))
System\Reflection\Metadata\TypeSystem\AssemblyReference.cs (4)
24
Debug.Assert((treatmentAndRowId & ~(
TokenTypeIds
.VirtualBit |
TokenTypeIds
.RIDMask)) == 0);
32
get { return (int)(_treatmentAndRowId &
TokenTypeIds
.RIDMask); }
37
get { return (_treatmentAndRowId &
TokenTypeIds
.VirtualBit) != 0; }
System\Reflection\Metadata\TypeSystem\CustomAttribute.cs (2)
27
get { return (int)(_treatmentAndRowId &
TokenTypeIds
.RIDMask); }
37
get { return (MethodDefTreatment)(_treatmentAndRowId >>
TokenTypeIds
.RowIdBitCount); }
System\Reflection\Metadata\TypeSystem\FieldDefinition.cs (2)
27
get { return (int)(_treatmentAndRowId &
TokenTypeIds
.RIDMask); }
32
get { return (FieldDefTreatment)(_treatmentAndRowId >>
TokenTypeIds
.RowIdBitCount); }
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (42)
71
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
84
return GenericParameterHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
179
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
192
return GenericParameterConstraintHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
284
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
305
return CustomAttributeHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
313
_reader.CustomAttributeTable.PtrTable![(_currentRowId & (int)
TokenTypeIds
.RIDMask) - 1]);
405
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
419
return DeclarativeSecurityAttributeHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
512
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
533
return MethodDefinitionHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
540
return _reader.MethodPtrTable.GetMethodFor(_currentRowId & (int)
TokenTypeIds
.RIDMask);
632
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
653
return FieldDefinitionHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
660
return _reader.FieldPtrTable.GetFieldFor(_currentRowId & (int)
TokenTypeIds
.RIDMask);
752
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
773
return PropertyDefinitionHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
780
return _reader.PropertyPtrTable.GetPropertyFor(_currentRowId & (int)
TokenTypeIds
.RIDMask);
872
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
893
return EventDefinitionHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
900
return _reader.EventPtrTable.GetEventFor(_currentRowId & (int)
TokenTypeIds
.RIDMask);
987
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
999
return MethodImplementationHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
1087
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
1108
return ParameterHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
1115
return _reader.ParamPtrTable.GetParamFor(_currentRowId & (int)
TokenTypeIds
.RIDMask);
1199
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
1212
return InterfaceImplementationHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
1290
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
1302
return TypeDefinitionHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
1380
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
1392
return TypeReferenceHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
1470
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
1482
return ExportedTypeHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
1560
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
1572
return MemberReferenceHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
1696
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
1722
return AssemblyReferenceHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
1804
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
1816
return ManifestResourceHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
1894
private const int EnumEnded = (int)
TokenTypeIds
.RIDMask + 1;
1906
return AssemblyFileHandle.FromRowId((int)(_currentRowId &
TokenTypeIds
.RIDMask));
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (58)
12
private const uint tokenType =
TokenTypeIds
.Module;
18
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
95
private const uint tokenType =
TokenTypeIds
.Assembly;
101
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
178
private const uint tokenType =
TokenTypeIds
.InterfaceImpl;
184
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
261
private const uint tokenType =
TokenTypeIds
.MethodDef;
267
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
356
private const uint tokenType =
TokenTypeIds
.MethodImpl;
362
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
439
private const uint tokenType =
TokenTypeIds
.MethodSpec;
445
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
522
private const uint tokenType =
TokenTypeIds
.TypeDef;
528
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
605
private const uint tokenType =
TokenTypeIds
.ExportedType;
611
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
688
private const uint tokenType =
TokenTypeIds
.TypeRef;
694
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
771
private const uint tokenType =
TokenTypeIds
.TypeSpec;
777
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
854
private const uint tokenType =
TokenTypeIds
.MemberRef;
860
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
937
private const uint tokenType =
TokenTypeIds
.FieldDef;
943
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
1020
private const uint tokenType =
TokenTypeIds
.Event;
1026
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
1103
private const uint tokenType =
TokenTypeIds
.Property;
1109
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
1186
private const uint tokenType =
TokenTypeIds
.Signature;
1192
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
1269
private const uint tokenType =
TokenTypeIds
.ParamDef;
1275
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
1352
private const uint tokenType =
TokenTypeIds
.GenericParam;
1358
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
1435
private const uint tokenType =
TokenTypeIds
.GenericParamConstraint;
1441
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
1518
private const uint tokenType =
TokenTypeIds
.ModuleRef;
1524
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
1601
private const uint tokenType =
TokenTypeIds
.AssemblyRef;
1629
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
1636
return new AssemblyReferenceHandle(
TokenTypeIds
.VirtualBit | (uint)virtualIndex);
1686
get { return (_value &
TokenTypeIds
.VirtualBit) != 0; }
1689
internal int RowId { get { return (int)(_value &
TokenTypeIds
.RIDMask); } }
1719
private const uint tokenType =
TokenTypeIds
.CustomAttribute;
1725
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
1802
private const uint tokenType =
TokenTypeIds
.DeclSecurity;
1808
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
1885
private const uint tokenType =
TokenTypeIds
.Constant;
1891
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
1968
private const uint tokenType =
TokenTypeIds
.ManifestResource;
1974
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
2051
private const uint tokenType =
TokenTypeIds
.File;
2057
Debug.Assert(
TokenTypeIds
.IsValidRowId(rowId));
2470
return new NamespaceDefinitionHandle(
TokenTypeIds
.VirtualBit | virtualIndex);
2488
(handle.VType & HandleType.VirtualBit) <<
TokenTypeIds
.RowIdBitCount |
2589
return new BlobHandle(
TokenTypeIds
.VirtualBit | (uint)(virtualValue << 8) | (uint)virtualIndex);
2620
(handle.VType & HandleType.VirtualBit) <<
TokenTypeIds
.RowIdBitCount |
2645
get { return (_value &
TokenTypeIds
.VirtualBit) != 0; }
System\Reflection\Metadata\TypeSystem\MemberReference.cs (2)
27
get { return (int)(_treatmentAndRowId &
TokenTypeIds
.RIDMask); }
32
get { return (MemberRefTreatment)(_treatmentAndRowId >>
TokenTypeIds
.RowIdBitCount); }
System\Reflection\Metadata\TypeSystem\MethodDefinition.cs (2)
27
get { return (int)(_treatmentAndRowId &
TokenTypeIds
.RIDMask); }
32
get { return (MethodDefTreatment)(_treatmentAndRowId >>
TokenTypeIds
.RowIdBitCount); }
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (2)
28
get { return (int)(_treatmentAndRowId &
TokenTypeIds
.RIDMask); }
33
get { return (TypeDefTreatment)(_treatmentAndRowId >>
TokenTypeIds
.RowIdBitCount); }
System\Reflection\Metadata\TypeSystem\TypeReference.cs (2)
27
get { return (int)(_treatmentAndRowId &
TokenTypeIds
.RIDMask); }
32
get { return (TypeRefTreatment)(_treatmentAndRowId >>
TokenTypeIds
.RowIdBitCount); }