350 references to HandleKind
BuildValidator (3)
Util.cs (3)
63case HandleKind.MethodDefinition: 72case HandleKind.MemberReference: 75Debug.Assert(memberRef.Parent.Kind == HandleKind.TypeReference);
Crossgen2Tasks (3)
PrepareForReadyToRunCompilation.cs (3)
447if (attributeCtor.Kind == HandleKind.MemberReference) 450if (attributeMemberParent.Kind == HandleKind.TypeReference) 457else if (attributeCtor.Kind == HandleKind.MethodDefinition)
Microsoft.Cci.Extensions (5)
Extensions\CSharp\CSharpCciExtensions.cs (5)
927case HandleKind.TypeDefinition: 930case HandleKind.TypeReference: 932return tr.ResolutionScope.Kind != HandleKind.TypeReference && !tr.Namespace.IsNil && tr.Namespace.Equals(@namespace, reader) && tr.Name.Equals(name, reader); 943case HandleKind.MemberReference: 945case HandleKind.MethodDefinition:
Microsoft.CodeAnalysis (64)
MetadataReader\MetadataDecoder.cs (46)
145HandleKind tokenType = token.Kind; 149case HandleKind.TypeDefinition: 153case HandleKind.TypeSpecification: 158case HandleKind.TypeReference: 445case HandleKind.TypeDefinition: 449case HandleKind.TypeReference: 453case HandleKind.TypeSpecification: 547HandleKind tokenType = tokenResolutionScope.Kind; 553if (tokenType == HandleKind.TypeReference) 565if (tokenType == HandleKind.AssemblyReference) 576if (tokenType == HandleKind.ModuleReference) 781case HandleKind.TypeDefinition: 787case HandleKind.TypeReference: 793case HandleKind.TypeSpecification: 911case HandleKind.TypeSpecification: 929case HandleKind.TypeReference: 931case HandleKind.TypeDefinition: 1913if (methodDebugHandle.Kind == HandleKind.MemberReference) 1928HandleKind implementedMethodTokenType = implementedMethodHandle.Kind; 1932if (implementedMethodTokenType == HandleKind.MethodDefinition) 1936else if (implementedMethodTokenType == HandleKind.MemberReference) 2056if (typeToken.Kind == HandleKind.TypeDefinition) 2178case HandleKind.TypeDefinition: 2179case HandleKind.TypeSpecification: 2180case HandleKind.TypeReference: 2183case HandleKind.MethodDefinition: 2203case HandleKind.FieldDefinition: 2222case HandleKind.MethodSpecification: 2237case HandleKind.MemberReference: 2257HandleKind containerType = container.Kind; 2259containerType == HandleKind.MethodDefinition || 2260containerType == HandleKind.ModuleReference || 2261containerType == HandleKind.TypeDefinition || 2262containerType == HandleKind.TypeReference || 2263containerType == HandleKind.TypeSpecification); 2265if (containerType != HandleKind.TypeDefinition && 2266containerType != HandleKind.TypeReference && 2267containerType != HandleKind.TypeSpecification) 2283HandleKind type = memberToken.Kind; 2284Debug.Assert(type == HandleKind.MethodDefinition || type == HandleKind.MemberReference); 2286return type == HandleKind.MethodDefinition 2293HandleKind type = memberToken.Kind; 2294Debug.Assert(type == HandleKind.FieldDefinition || 2295type == HandleKind.MemberReference); 2297return type == HandleKind.FieldDefinition
MetadataReader\PEModule.cs (16)
420if (scope.Kind == HandleKind.ModuleReference) 2697if (MetadataReader.GetCustomAttribute(customAttribute).Parent.Kind != HandleKind.TypeDefinition) 2953HandleKind tokenType = token.Kind; 2957if (tokenType == HandleKind.TypeDefinition) 2971else if (tokenType == HandleKind.TypeReference) 2975if (typeRef.ResolutionScope.Kind == HandleKind.TypeReference) 3056if (attributeCtor.Kind == HandleKind.MemberReference) 3070else if (attributeCtor.Kind == HandleKind.MethodDefinition) 3121if (typeDefOrRef.Kind == HandleKind.TypeReference) 3124HandleKind handleType = typeRefRow.ResolutionScope.Kind; 3126if (handleType == HandleKind.TypeReference || handleType == HandleKind.TypeDefinition) 3135else if (typeDefOrRef.Kind == HandleKind.TypeDefinition) 3325case HandleKind.MethodDefinition: 3328case HandleKind.MemberReference: 3630return fieldOrParameterToken.Kind == HandleKind.FieldDefinition ?
PEWriter\MetadataWriter.cs (2)
3272Debug.Assert(handle.Kind is HandleKind.MethodDefinition); 3280Debug.Assert(handle.Kind is HandleKind.FieldDefinition);
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (2)
126case HandleKind.MemberReference: 132case HandleKind.MethodDefinition:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\CompilationEmitTests.cs (1)
4219if (scope.Kind == HandleKind.TypeReference)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
3337Assert.NotEqual(HandleKind.MethodDefinition, ctor.Kind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Metadata\PE\TypeForwarders.cs (2)
1806Assert.Equal(HandleKind.ExportedType, exportedTypeRow.Implementation.Kind); 1814Assert.Equal(HandleKind.AssemblyReference, exportedTypeRow.Implementation.Kind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
EmitMetadataTestBase.cs (3)
139case HandleKind.AssemblyDefinition: 144case HandleKind.TypeDefinition: 149case HandleKind.MethodDefinition:
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
MethodContextReuseConstraints.cs (2)
24Debug.Assert(MetadataTokens.Handle(methodToken).Kind == HandleKind.MethodDefinition); 36Debug.Assert(MetadataTokens.Handle(methodToken).Kind == HandleKind.MethodDefinition);
PDB\MethodDebugInfo.Portable.cs (1)
107if (handle.Kind == HandleKind.MethodDebugInformation)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (5)
MetadataDecoder.cs (5)
193case HandleKind.TypeDefinition: 195case HandleKind.TypeReference: 235case HandleKind.AssemblyReference: 236case HandleKind.ModuleReference: 240case HandleKind.TypeReference:
Microsoft.CodeAnalysis.Features (6)
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
201if (et.IsForwarder && et.Implementation.Kind == HandleKind.AssemblyReference)
PdbSourceDocument\SymbolSourceDocumentFinder.cs (5)
20case HandleKind.MethodDefinition: 23case HandleKind.TypeDefinition: 26case HandleKind.FieldDefinition: 29case HandleKind.PropertyDefinition: 32case HandleKind.EventDefinition:
Microsoft.CodeAnalysis.Test.Utilities (13)
Metadata\MetadataReaderUtils.cs (11)
170case HandleKind.TypeReference: 172case HandleKind.TypeDefinition: 221case HandleKind.MemberReference: 224case HandleKind.MethodDefinition: 340case HandleKind.AssemblyReference: 342case HandleKind.TypeDefinition: 347case HandleKind.MethodDefinition: 356case HandleKind.MemberReference: 365case HandleKind.TypeReference: 370case HandleKind.FieldDefinition: 381case HandleKind.TypeSpecification:
Metadata\MetadataValidation.cs (2)
30if (ctorHandle.Kind == HandleKind.MemberReference) // MemberRef 36else if (ctorHandle.Kind == HandleKind.MethodDefinition)
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (2)
104Case HandleKind.MemberReference 109Case HandleKind.MethodDefinition
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (9)
Attributes\AttributeTests_WellKnownAttributes.vb (1)
2358Assert.NotEqual(parent.Kind, HandleKind.MethodDefinition)
Emit\EditAndContinue\EditAndContinueTestBase.vb (7)
198Friend Shared Function IsDefinition(kind As HandleKind) As Boolean 200Case HandleKind.AssemblyReference, HandleKind.ModuleReference, HandleKind.TypeReference, HandleKind.MemberReference, HandleKind.TypeSpecification, HandleKind.MethodSpecification
PDB\PortablePdbTests.vb (1)
57Assert.Equal(HandleKind.TypeReference, typeHandle.Kind)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
EvaluationContext.vb (1)
79Debug.Assert(MetadataTokens.Handle(typeToken).Kind = HandleKind.TypeDefinition)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\FieldInitializerBindingTests.vb (1)
1311If constant.Parent.Kind = HandleKind.Parameter Then
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\Metadata\PE\TypeForwarders.vb (2)
1232Assert.Equal(HandleKind.ExportedType, exportedTypeRow.Implementation.Kind) 1238Assert.Equal(HandleKind.AssemblyReference, exportedTypeRow.Implementation.Kind)
Microsoft.CodeAnalysis.Workspaces (5)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (5)
590if (typeDefOrRefHandle.Kind == HandleKind.TypeDefinition) 594else if (typeDefOrRefHandle.Kind == HandleKind.TypeReference) 688case HandleKind.TypeDefinition: 689case HandleKind.TypeReference: 691case HandleKind.TypeSpecification:
Microsoft.DotNet.SignTool (4)
src\Configuration.cs (4)
633case HandleKind.MemberReference: 637case HandleKind.TypeReference: 641case HandleKind.TypeDefinition: 649case HandleKind.MethodDefinition:
Roslyn.Test.PdbUtilities (7)
EditAndContinue\EditAndContinueTestUtilities.cs (7)
75public static bool IsDefinition(HandleKind kind) 76=> kind is not (HandleKind.AssemblyReference or HandleKind.ModuleReference or HandleKind.TypeReference or HandleKind.MemberReference or HandleKind.TypeSpecification or HandleKind.MethodSpecification);
RunTests (2)
AssemblyScheduler.cs (2)
354if (attribute.Constructor.Kind is HandleKind.MemberReference) 357if (ctor.Parent.Kind is HandleKind.TypeReference)
System.Diagnostics.FileVersionInfo (5)
System\Diagnostics\FileVersionInfo.Unix.cs (5)
259case HandleKind.MemberReference: 261if (container.Kind == HandleKind.TypeReference) 270case HandleKind.MethodDefinition: 294case HandleKind.MemberReference: 297case HandleKind.MethodDefinition:
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
62if (!handle.IsNil && handle.Kind == HandleKind.MethodDefinition)
System.Reflection.Metadata (169)
System\Reflection\Metadata\Ecma335\CodedIndex.cs (99)
198private static HasCustomAttributeTag ToHasCustomAttributeTag(HandleKind kind) 202case HandleKind.MethodDefinition: return HasCustomAttributeTag.MethodDef; 203case HandleKind.FieldDefinition: return HasCustomAttributeTag.Field; 204case HandleKind.TypeReference: return HasCustomAttributeTag.TypeRef; 205case HandleKind.TypeDefinition: return HasCustomAttributeTag.TypeDef; 206case HandleKind.Parameter: return HasCustomAttributeTag.Param; 207case HandleKind.InterfaceImplementation: return HasCustomAttributeTag.InterfaceImpl; 208case HandleKind.MemberReference: return HasCustomAttributeTag.MemberRef; 209case HandleKind.ModuleDefinition: return HasCustomAttributeTag.Module; 210case HandleKind.DeclarativeSecurityAttribute: return HasCustomAttributeTag.DeclSecurity; 211case HandleKind.PropertyDefinition: return HasCustomAttributeTag.Property; 212case HandleKind.EventDefinition: return HasCustomAttributeTag.Event; 213case HandleKind.StandaloneSignature: return HasCustomAttributeTag.StandAloneSig; 214case HandleKind.ModuleReference: return HasCustomAttributeTag.ModuleRef; 215case HandleKind.TypeSpecification: return HasCustomAttributeTag.TypeSpec; 216case HandleKind.AssemblyDefinition: return HasCustomAttributeTag.Assembly; 217case HandleKind.AssemblyReference: return HasCustomAttributeTag.AssemblyRef; 218case HandleKind.AssemblyFile: return HasCustomAttributeTag.File; 219case HandleKind.ExportedType: return HasCustomAttributeTag.ExportedType; 220case HandleKind.ManifestResource: return HasCustomAttributeTag.ManifestResource; 221case HandleKind.GenericParameter: return HasCustomAttributeTag.GenericParam; 222case HandleKind.GenericParameterConstraint: return HasCustomAttributeTag.GenericParamConstraint; 223case HandleKind.MethodSpecification: return HasCustomAttributeTag.MethodSpec; 240private static HasConstantTag ToHasConstantTag(HandleKind kind) 244case HandleKind.FieldDefinition: return HasConstantTag.Field; 245case HandleKind.Parameter: return HasConstantTag.Param; 246case HandleKind.PropertyDefinition: return HasConstantTag.Property; 262private static CustomAttributeTypeTag ToCustomAttributeTypeTag(HandleKind kind) 266case HandleKind.MethodDefinition: return CustomAttributeTypeTag.MethodDef; 267case HandleKind.MemberReference: return CustomAttributeTypeTag.MemberRef; 284private static HasDeclSecurityTag ToHasDeclSecurityTag(HandleKind kind) 288case HandleKind.TypeDefinition: return HasDeclSecurityTag.TypeDef; 289case HandleKind.MethodDefinition: return HasDeclSecurityTag.MethodDef; 290case HandleKind.AssemblyDefinition: return HasDeclSecurityTag.Assembly; 306private static HasFieldMarshalTag ToHasFieldMarshalTag(HandleKind kind) 310case HandleKind.FieldDefinition: return HasFieldMarshalTag.Field; 311case HandleKind.Parameter: return HasFieldMarshalTag.Param; 327private static HasSemanticsTag ToHasSemanticsTag(HandleKind kind) 331case HandleKind.EventDefinition: return HasSemanticsTag.Event; 332case HandleKind.PropertyDefinition: return HasSemanticsTag.Property; 349private static ImplementationTag ToImplementationTag(HandleKind kind) 353case HandleKind.AssemblyFile: return ImplementationTag.File; 354case HandleKind.AssemblyReference: return ImplementationTag.AssemblyRef; 355case HandleKind.ExportedType: return ImplementationTag.ExportedType; 371private static MemberForwardedTag ToMemberForwardedTag(HandleKind kind) 375case HandleKind.FieldDefinition: return MemberForwardedTag.Field; 376case HandleKind.MethodDefinition: return MemberForwardedTag.MethodDef; 395private static MemberRefParentTag ToMemberRefParentTag(HandleKind kind) 399case HandleKind.TypeDefinition: return MemberRefParentTag.TypeDef; 400case HandleKind.TypeReference: return MemberRefParentTag.TypeRef; 401case HandleKind.ModuleReference: return MemberRefParentTag.ModuleRef; 402case HandleKind.MethodDefinition: return MemberRefParentTag.MethodDef; 403case HandleKind.TypeSpecification: return MemberRefParentTag.TypeSpec; 419private static MethodDefOrRefTag ToMethodDefOrRefTag(HandleKind kind) 423case HandleKind.MethodDefinition: return MethodDefOrRefTag.MethodDef; 424case HandleKind.MemberReference: return MethodDefOrRefTag.MemberRef; 442private static ResolutionScopeTag ToResolutionScopeTag(HandleKind kind) 446case HandleKind.ModuleDefinition: return ResolutionScopeTag.Module; 447case HandleKind.ModuleReference: return ResolutionScopeTag.ModuleRef; 448case HandleKind.AssemblyReference: return ResolutionScopeTag.AssemblyRef; 449case HandleKind.TypeReference: return ResolutionScopeTag.TypeRef; 466private static TypeDefOrRefOrSpecTag ToTypeDefOrRefOrSpecTag(HandleKind kind) 470case HandleKind.TypeDefinition: return TypeDefOrRefOrSpecTag.TypeDef; 471case HandleKind.TypeReference: return TypeDefOrRefOrSpecTag.TypeRef; 472case HandleKind.TypeSpecification: return TypeDefOrRefOrSpecTag.TypeSpec; 488private static TypeDefOrRefTag ToTypeDefOrRefTag(HandleKind kind) 492case HandleKind.TypeDefinition: return TypeDefOrRefTag.TypeDef; 493case HandleKind.TypeReference: return TypeDefOrRefTag.TypeRef; 509private static TypeOrMethodDefTag ToTypeOrMethodDefTag(HandleKind kind) 513case HandleKind.TypeDefinition: return TypeOrMethodDefTag.TypeDef; 514case HandleKind.MethodDefinition: return TypeOrMethodDefTag.MethodDef; 555private static HasCustomDebugInformationTag ToHasCustomDebugInformationTag(HandleKind kind) 559case HandleKind.MethodDefinition: return HasCustomDebugInformationTag.MethodDef; 560case HandleKind.FieldDefinition: return HasCustomDebugInformationTag.Field; 561case HandleKind.TypeReference: return HasCustomDebugInformationTag.TypeRef; 562case HandleKind.TypeDefinition: return HasCustomDebugInformationTag.TypeDef; 563case HandleKind.Parameter: return HasCustomDebugInformationTag.Param; 564case HandleKind.InterfaceImplementation: return HasCustomDebugInformationTag.InterfaceImpl; 565case HandleKind.MemberReference: return HasCustomDebugInformationTag.MemberRef; 566case HandleKind.ModuleDefinition: return HasCustomDebugInformationTag.Module; 567case HandleKind.DeclarativeSecurityAttribute: return HasCustomDebugInformationTag.DeclSecurity; 568case HandleKind.PropertyDefinition: return HasCustomDebugInformationTag.Property; 569case HandleKind.EventDefinition: return HasCustomDebugInformationTag.Event; 570case HandleKind.StandaloneSignature: return HasCustomDebugInformationTag.StandAloneSig; 571case HandleKind.ModuleReference: return HasCustomDebugInformationTag.ModuleRef; 572case HandleKind.TypeSpecification: return HasCustomDebugInformationTag.TypeSpec; 573case HandleKind.AssemblyDefinition: return HasCustomDebugInformationTag.Assembly; 574case HandleKind.AssemblyReference: return HasCustomDebugInformationTag.AssemblyRef; 575case HandleKind.AssemblyFile: return HasCustomDebugInformationTag.File; 576case HandleKind.ExportedType: return HasCustomDebugInformationTag.ExportedType; 577case HandleKind.ManifestResource: return HasCustomDebugInformationTag.ManifestResource; 578case HandleKind.GenericParameter: return HasCustomDebugInformationTag.GenericParam; 579case HandleKind.GenericParameterConstraint: return HasCustomDebugInformationTag.GenericParamConstraint; 580case HandleKind.MethodSpecification: return HasCustomDebugInformationTag.MethodSpec; 581case HandleKind.Document: return HasCustomDebugInformationTag.Document; 582case HandleKind.LocalScope: return HasCustomDebugInformationTag.LocalScope; 583case HandleKind.LocalVariable: return HasCustomDebugInformationTag.LocalVariable; 584case HandleKind.LocalConstant: return HasCustomDebugInformationTag.LocalConstant; 585case HandleKind.ImportScope: return HasCustomDebugInformationTag.ImportScope;
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (5)
28case HandleKind.MethodDefinition: 33case HandleKind.MemberReference: 38if (reference.Parent.Kind == HandleKind.TypeSpecification) 417HandleKind.TypeDefinition => _provider.GetTypeFromDefinition(_reader, (TypeDefinitionHandle)handle, 0), 418HandleKind.TypeReference => _provider.GetTypeFromReference(_reader, (TypeReferenceHandle)handle, 0),
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (3)
75(catchType.Kind == HandleKind.TypeDefinition || 76catchType.Kind == HandleKind.TypeSpecification || 77catchType.Kind == HandleKind.TypeReference);
System\Reflection\Metadata\Ecma335\Encoding\InstructionEncoder.cs (3)
102if (methodHandle.Kind != HandleKind.MethodDefinition && 103methodHandle.Kind != HandleKind.MethodSpecification && 104methodHandle.Kind != HandleKind.MemberReference)
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (3)
406case HandleKind.TypeDefinition: 410case HandleKind.TypeReference: 419case HandleKind.TypeSpecification:
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (15)
77/// A token can only be retrieved for a metadata table handle or a heap handle of type <see cref="HandleKind.UserString"/>. 99case HandleKind.AssemblyReference: 103case HandleKind.String: 104case HandleKind.Blob: 198/// A token can only be retrieved for a metadata table handle or a heap handle of type <see cref="HandleKind.UserString"/>. 228/// Gets the <see cref="TableIndex"/> of the table corresponding to the specified <see cref="HandleKind"/>. 233public static bool TryGetTableIndex(HandleKind type, out TableIndex index) 248/// Gets the <see cref="HeapIndex"/> of the heap corresponding to the specified <see cref="HandleKind"/>. 253public static bool TryGetHeapIndex(HandleKind type, out HeapIndex index) 257case HandleKind.UserString: 261case HandleKind.String: 262case HandleKind.NamespaceDefinition: 266case HandleKind.Blob: 270case HandleKind.Guid: 287/// It must encode a metadata table entity or an offset in <see cref="HandleKind.UserString"/> heap.
System\Reflection\Metadata\Ecma335\SignatureDecoder.cs (3)
305case HandleKind.TypeDefinition: 308case HandleKind.TypeReference: 311case HandleKind.TypeSpecification:
System\Reflection\Metadata\EntityHandle.cs (2)
79public HandleKind Kind 85return (HandleKind)(Type >> TokenTypeIds.RowIdBitCount);
System\Reflection\Metadata\Handle.cs (3)
124public HandleKind Kind 133return HandleKind.String; 136return (HandleKind)type;
System\Reflection\Metadata\HandleKind.cs (2)
57internal static bool IsHeapHandle(this HandleKind kind) 59return kind >= HandleKind.NamespaceDefinition;
System\Reflection\Metadata\Internal\HasConstantTag.cs (4)
38HandleKind tokenKind = token.Kind; 40if (tokenKind == HandleKind.FieldDefinition) 44else if (tokenKind == HandleKind.Parameter) 48else if (tokenKind == HandleKind.PropertyDefinition)
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
364if (exportedType.Implementation.Kind == HandleKind.ExportedType)
System\Reflection\Metadata\MetadataReader.WinMD.cs (19)
241if (extends.Kind == HandleKind.TypeReference && IsSystemAttribute((TypeReferenceHandle)extends)) 366if (extends.Kind != HandleKind.TypeReference) 420if (parentBaseType.Kind == HandleKind.TypeReference) 457if (declaration.Kind == HandleKind.MemberReference && 551if (baseTypeHandle.Kind == HandleKind.TypeReference) 612if (parent.Kind == HandleKind.TypeReference) 616else if (parent.Kind == HandleKind.TypeSpecification) 629if (token.Kind != HandleKind.TypeReference) 705if (targetType.Kind != HandleKind.TypeDefinition) 711if (attributeCtor.Kind != HandleKind.MemberReference) 717if (attributeType.Kind != HandleKind.TypeReference) 753if (typeDefOrRef.Kind == HandleKind.TypeReference) 758if (!resolutionScope.IsNil && resolutionScope.Kind == HandleKind.TypeReference) 769else if (typeDefOrRef.Kind == HandleKind.TypeDefinition) 799if (ctor.Kind == HandleKind.MethodDefinition) 804if (ctor.Kind == HandleKind.MemberReference) 809HandleKind handleType = typeDefOrRef.Kind; 811if (handleType == HandleKind.TypeReference || handleType == HandleKind.TypeDefinition)
System\Reflection\Metadata\PortablePdb\DocumentNameBlobHandle.cs (1)
16/// The kind of the handle is <see cref="HandleKind.Blob"/>.
System\Reflection\Metadata\PortablePdb\ImportDefinition.cs (4)
26typeOrNamespace.Kind == HandleKind.Blob || 27typeOrNamespace.Kind == HandleKind.TypeDefinition || 28typeOrNamespace.Kind == HandleKind.TypeReference || 29typeOrNamespace.Kind == HandleKind.TypeSpecification);
System\Reflection\Metadata\TypeSystem\ExportedType.cs (1)
36get { return Attributes.IsForwarder() && Implementation.Kind == HandleKind.AssemblyReference; }
System\Reflection\Throw.cs (1)
33internal static Exception InvalidArgument_UnexpectedHandleKind(HandleKind kind)
System.Reflection.MetadataLoadContext (31)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.cs (1)
91if (implementation.Kind != HandleKind.AssemblyReference) // This check also weeds out nested types. This is intentional.
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (3)
62case HandleKind.MethodDefinition: 69case HandleKind.MemberReference: 85case HandleKind.MethodSpecification:
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (5)
63case HandleKind.TypeDefinition: // Not clear if this can happen but as fail-safe.... 69case HandleKind.TypeReference: 72return tr.ResolutionScope.Kind != HandleKind.TypeReference && tr.Name.Equals(name, reader) && tr.Namespace.Equals(ns, reader); 85case HandleKind.MethodDefinition: 91case HandleKind.MemberReference:
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (10)
21HandleKind.TypeDefinition => ((TypeDefinitionHandle)handle).ResolveTypeDef(module), 22HandleKind.TypeReference => ((TypeReferenceHandle)handle).ResolveTypeRef(module), 23HandleKind.TypeSpecification => ((TypeSpecificationHandle)handle).ResolveTypeSpec(module, typeContext), 72HandleKind scopeKind = scope.Kind; 75case HandleKind.AssemblyReference: 85case HandleKind.TypeReference: 92case HandleKind.ModuleDefinition: 100case HandleKind.ModuleReference: 142HandleKind.TypeDefinition => new EcmaGenericTypeParameterType(gph, module), 143HandleKind.MethodDefinition => new EcmaGenericMethodParameterType(gph, module),
System\Reflection\TypeLoading\General\Ecma\EcmaToStringHelpers.cs (6)
24HandleKind kind = handle.Kind; 27case HandleKind.TypeDefinition: 30case HandleKind.TypeReference: 33case HandleKind.TypeSpecification: 60if (tr.ResolutionScope.Kind == HandleKind.TypeDefinition || tr.ResolutionScope.Kind == HandleKind.TypeReference)
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (3)
62HandleKind kind = handle.Kind; 65case HandleKind.MethodDefinition: 71case HandleKind.AssemblyFile:
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.GetTypeCore.cs (1)
49if (implementation.Kind != HandleKind.AssemblyReference) // This check also weeds out nested types. This is intentional.
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.ManifestResources.cs (2)
47if (resource.Implementation.Kind == HandleKind.AssemblyFile) 61else if (resource.Implementation.Kind == HandleKind.AssemblyReference)