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