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