53 instantiations of EntityHandle
System.Reflection.Metadata (53)
System\Reflection\Metadata\BlobReader.cs (1)
616return new EntityHandle(tokenType | (value >> 2));
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (2)
299new EntityHandle(reader.EncLogTable.GetToken(rid)), 322yield return new EntityHandle(reader.EncMapTable.GetToken(rid));
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (2)
310return new EntityHandle((uint)token); 337return new EntityHandle((uint)token);
System\Reflection\Metadata\EntityHandle.cs (1)
42return new EntityHandle(handle.EntityHandleValue);
System\Reflection\Metadata\IL\ExceptionRegion.cs (1)
81get { return (Kind == ExceptionRegionKind.Catch) ? new EntityHandle((uint)_classTokenOrFilterOffset) : default(EntityHandle); }
System\Reflection\Metadata\Internal\CustomAttributeTypeTag.cs (1)
31return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\Internal\HasConstantTag.cs (1)
33return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\Internal\HasCustomAttributeTag.cs (1)
111return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\Internal\HasDeclSecurityTag.cs (1)
33return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\Internal\HasFieldMarshalTag.cs (1)
31return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\Internal\HasSemanticsTag.cs (1)
31return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\Internal\ImplementationTag.cs (1)
33return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\Internal\MemberForwardedTag.cs (1)
31return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\Internal\MemberRefParentTag.cs (1)
42return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\Internal\MethodDefOrRefTag.cs (1)
31return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\Internal\ResolutionScopeTag.cs (1)
35return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\Internal\TypeDefOrRefTag.cs (1)
34return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\Internal\TypeOrMethodDefTag.cs (1)
31return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\PortablePdb\Handles.Debug.cs (7)
34return new EntityHandle((uint)(tokenType | handle._rowId)); 117return new EntityHandle((uint)(tokenType | handle._rowId)); 212return new EntityHandle((uint)(tokenType | handle._rowId)); 295return new EntityHandle((uint)(tokenType | handle._rowId)); 378return new EntityHandle((uint)(tokenType | handle._rowId)); 461return new EntityHandle((uint)(tokenType | handle._rowId)); 544return new EntityHandle((uint)(tokenType | handle._rowId));
System\Reflection\Metadata\PortablePdb\HasCustomDebugInformationTag.cs (1)
125return new EntityHandle(tokenType | rowId);
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (25)
34return new EntityHandle((uint)(tokenType | handle._rowId)); 117return new EntityHandle((uint)(tokenType | handle._rowId)); 200return new EntityHandle((uint)(tokenType | handle._rowId)); 283return new EntityHandle((uint)(tokenType | handle._rowId)); 378return new EntityHandle((uint)(tokenType | handle._rowId)); 461return new EntityHandle((uint)(tokenType | handle._rowId)); 544return new EntityHandle((uint)(tokenType | handle._rowId)); 627return new EntityHandle((uint)(tokenType | handle._rowId)); 710return new EntityHandle((uint)(tokenType | handle._rowId)); 793return new EntityHandle((uint)(tokenType | handle._rowId)); 876return new EntityHandle((uint)(tokenType | handle._rowId)); 959return new EntityHandle((uint)(tokenType | handle._rowId)); 1042return new EntityHandle((uint)(tokenType | handle._rowId)); 1125return new EntityHandle((uint)(tokenType | handle._rowId)); 1208return new EntityHandle((uint)(tokenType | handle._rowId)); 1291return new EntityHandle((uint)(tokenType | handle._rowId)); 1374return new EntityHandle((uint)(tokenType | handle._rowId)); 1457return new EntityHandle((uint)(tokenType | handle._rowId)); 1540return new EntityHandle((uint)(tokenType | handle._rowId)); 1646return new EntityHandle(handle.VToken); 1741return new EntityHandle((uint)(tokenType | handle._rowId)); 1824return new EntityHandle((uint)(tokenType | handle._rowId)); 1907return new EntityHandle((uint)(tokenType | handle._rowId)); 1990return new EntityHandle((uint)(tokenType | handle._rowId)); 2073return new EntityHandle((uint)(tokenType | handle._rowId));
667 references to EntityHandle
Crossgen2Tasks (2)
PrepareForReadyToRunCompilation.cs (2)
442EntityHandle attributeCtor = mdReader.GetCustomAttribute(attributeHandle).Constructor; 449EntityHandle attributeMemberParent = mdReader.GetMemberReference((MemberReferenceHandle)attributeCtor).Parent;
Microsoft.Cci.Extensions (3)
Extensions\CSharp\CSharpCciExtensions.cs (3)
923private static bool TypeMatchesNameAndNamespace(this EntityHandle handle, ReadOnlySpan<byte> @namespace, ReadOnlySpan<byte> name, SRMetadataReader reader) 940EntityHandle ctorHandle = attribute.Constructor; 946EntityHandle handle = reader.GetMethodDefinition((MethodDefinitionHandle)ctorHandle).GetDeclaringType();
Microsoft.CodeAnalysis (185)
Emit\EditAndContinue\DefinitionMap.cs (1)
125internal EntityHandle GetInitialMetadataHandle(Cci.IDefinition def)
Emit\EditAndContinue\DeltaMetadataWriter.cs (15)
54private readonly Dictionary<EntityHandle, ImmutableArray<int>> _customAttributesAdded; 57private readonly List<(EntityHandle parentHandle, IEnumerator<ICustomAttribute> attributeEnumerator)> _deferredCustomAttributes = new(); 117_customAttributesAdded = new Dictionary<EntityHandle, ImmutableArray<int>>(); 923protected override void AddCustomAttributesToTable(EntityHandle parentHandle, IEnumerable<ICustomAttribute> attributes) 1043void addWithCap(EntityHandle parentHandle, IEnumerator<ICustomAttribute> attributeEnumerator, int limit) 1058var deletedParentHandle = MetadataTokens.EntityHandle(parentTableIndex, 0); 1059var deletedMemberRefHandle = MetadataTokens.EntityHandle(TableIndex.MemberRef, 0); 1244var tokens = ArrayBuilder<EntityHandle>.GetInstance(); 1310foreach (var token in tokens) 1321var debugTokens = ArrayBuilder<EntityHandle>.GetInstance(); 1328foreach (var token in debugTokens) 1390ArrayBuilder<EntityHandle> builder, 1398private static void AddReferencedTokens(ArrayBuilder<EntityHandle> tokens, TableIndex tableIndex, int firstRowId, int nTokens) 1406private static void AddDefinitionTokens<T>(ArrayBuilder<EntityHandle> tokens, TableIndex tableIndex, DefinitionIndex<T> index) 1415private static void AddRowNumberTokens(ArrayBuilder<EntityHandle> tokens, TableIndex tableIndex, ArrayBuilder<int> rowNumbers)
Emit\EditAndContinue\EmitBaseline.cs (4)
186customAttributesAdded: new Dictionary<EntityHandle, ImmutableArray<int>>(), 248internal readonly IReadOnlyDictionary<EntityHandle, ImmutableArray<int>> CustomAttributesAdded; 307IReadOnlyDictionary<EntityHandle, ImmutableArray<int>> customAttributesAdded, 406IReadOnlyDictionary<EntityHandle, ImmutableArray<int>> customAttributesAdded,
MetadataReader\MetadataDecoder.cs (22)
134internal TypeSymbol GetTypeOfToken(EntityHandle token) 140internal TypeSymbol GetTypeOfToken(EntityHandle token, out bool isNoPiaLocalType) 392EntityHandle tokenGeneric = ppSig.ReadTypeHandle(); 435internal TypeSymbol GetSymbolForTypeHandleOrThrow(EntityHandle handle, out bool isNoPiaLocalType, bool allowTypeSpec, bool requireShortForm) 512EntityHandle resolutionScope; 544EntityHandle tokenResolutionScope, 589if (tokenResolutionScope == EntityHandle.ModuleDefinition) 771EntityHandle token = signatureReader.ReadTypeHandle(); 905internal TypeSymbol DecodeGenericParameterConstraint(EntityHandle token, out ImmutableArray<ModifierInfo<TypeSymbol>> modifiers) 1592EntityHandle ctor; 1684EntityHandle attributeType; 1685EntityHandle ctor; 1715EntityHandle attributeType; 1716EntityHandle ctor; 1907EntityHandle methodDebugHandle; 1908EntityHandle implementedMethodHandle; 2052private void EnqueueTypeToken(Queue<TypeDefinitionHandle> typeDefsToSearch, Queue<TypeSymbol> typeSymbolsToSearch, EntityHandle typeToken) 2172internal Symbol GetSymbolForILToken(EntityHandle token) 2223EntityHandle method; 2255EntityHandle container = Module.GetContainingTypeOrThrow(memberRef); 2281internal MethodSymbol GetMethodSymbolForMethodDefOrMemberRef(EntityHandle memberToken, TypeSymbol container) 2291internal FieldSymbol GetFieldSymbolForFieldDefOrMemberRef(EntityHandle memberToken, TypeSymbol container)
MetadataReader\ModuleExtensions.cs (1)
123module.GetMethodImplPropsOrThrow(methodImpl, out EntityHandle body, out _);
MetadataReader\PEAssembly.cs (2)
84internal EntityHandle Handle 88return EntityHandle.AssemblyDefinition;
MetadataReader\PEModule.cs (92)
415HashSet<EntityHandle> nameTokens = new HashSet<EntityHandle>(); 419EntityHandle scope = typeRef.ResolutionScope; 426foreach (var token in nameTokens) 564public EntityHandle GetTypeDefExtendsOrThrow(TypeDefinitionHandle typeDef) 593out EntityHandle extends) 922internal EntityHandle GetBaseTypeOfTypeOrThrow(TypeDefinitionHandle typeDef) 985internal bool HasParamArrayAttribute(EntityHandle token) 990internal bool HasParamCollectionAttribute(EntityHandle token) 995internal bool HasIsReadOnlyAttribute(EntityHandle token) 1000internal bool HasDoesNotReturnAttribute(EntityHandle token) 1005internal bool HasIsUnmanagedAttribute(EntityHandle token) 1010internal bool HasExtensionAttribute(EntityHandle token, bool ignoreCase) 1015internal bool HasVisualBasicEmbeddedAttribute(EntityHandle token) 1020internal bool HasCodeAnalysisEmbeddedAttribute(EntityHandle token) 1025internal bool HasInterpolatedStringHandlerAttribute(EntityHandle token) 1030internal bool HasDefaultMemberAttribute(EntityHandle token, out string memberName) 1035internal bool HasGuidAttribute(EntityHandle token, out string guidValue) 1040internal bool HasImportedFromTypeLibAttribute(EntityHandle token, out string libValue) 1045internal bool HasPrimaryInteropAssemblyAttribute(EntityHandle token, out int majorValue, out int minorValue) 1050internal bool HasFixedBufferAttribute(EntityHandle token, out string elementTypeName, out int bufferSize) 1055internal bool HasAccessedThroughPropertyAttribute(EntityHandle token, out string propertyName) 1060internal bool HasRequiredAttributeAttribute(EntityHandle token) 1065internal bool HasCollectionBuilderAttribute(EntityHandle token, out string builderTypeName, out string methodName) 1078internal bool HasAttribute(EntityHandle token, AttributeDescription description) 1083internal CustomAttributeHandle GetAttributeHandle(EntityHandle token, AttributeDescription description) 1090internal bool HasDynamicAttribute(EntityHandle token, out ImmutableArray<bool> transformFlags) 1110internal bool HasNativeIntegerAttribute(EntityHandle token, out ImmutableArray<bool> transformFlags) 1130internal bool HasScopedRefAttribute(EntityHandle token) 1135internal bool HasUnscopedRefAttribute(EntityHandle token) 1140internal bool HasRefSafetyRulesAttribute(EntityHandle token, out int version, out bool foundAttributeType) 1173internal bool HasTupleElementNamesAttribute(EntityHandle token, out ImmutableArray<string> tupleElementNames) 1187internal bool HasIsByRefLikeAttribute(EntityHandle token) 1192internal bool HasRequiresLocationAttribute(EntityHandle token) 1202EntityHandle token, 1250/// <see cref="TryGetDeprecatedOrExperimentalOrObsoleteAttribute(EntityHandle, IAttributeNamedArgumentDecoder, bool, bool)"/> 1267internal ObsoleteAttributeData? TryDecodeExperimentalAttributeData(EntityHandle handle, IAttributeNamedArgumentDecoder decoder) 1340internal string? GetFirstUnsupportedCompilerFeatureFromToken(EntityHandle token, IAttributeNamedArgumentDecoder attributeNamedArgumentDecoder, CompilerFeatureRequiredFeatures allowedFeatures) 1395EntityHandle token, 1439internal (ImmutableArray<string?> Names, bool FoundAttribute) GetInterpolatedStringHandlerArgumentAttributeValues(EntityHandle token) 1466internal bool HasMaybeNullWhenOrNotNullWhenOrDoesNotReturnIfAttribute(EntityHandle token, AttributeDescription description, out bool when) 1482internal ImmutableHashSet<string> GetStringValuesOfNotNullIfNotNullAttribute(EntityHandle token) 1503internal bool HasAttributeUsageAttribute(EntityHandle token, IAttributeNamedArgumentDecoder attributeNamedArgumentDecoder, out AttributeUsageInfo usageInfo) 1551internal bool HasInterfaceTypeAttribute(EntityHandle token, out ComInterfaceType interfaceType) 1563internal bool HasTypeLibTypeAttribute(EntityHandle token, out Cci.TypeLibTypeFlags flags) 1575internal bool HasDateTimeConstantAttribute(EntityHandle token, out ConstantValue defaultValue) 1598internal bool HasDecimalConstantAttribute(EntityHandle token, out ConstantValue defaultValue) 1612internal bool HasNullablePublicOnlyAttribute(EntityHandle token, out bool includesInternals) 1628internal ImmutableArray<string> GetInternalsVisibleToAttributeValues(EntityHandle token) 1635internal ImmutableArray<string> GetConditionalAttributeValues(EntityHandle token) 1645internal ImmutableArray<string> GetMemberNotNullAttributeValues(EntityHandle token) 1685internal (ImmutableArray<string> whenTrue, ImmutableArray<string> whenFalse) GetMemberNotNullWhenAttributeValues(EntityHandle token) 2032internal bool HasStringValuedAttribute(EntityHandle token, AttributeDescription description, out string value) 2044private bool HasIntAndIntValuedAttribute(EntityHandle token, AttributeDescription description, out int value1, out int value2) 2057private bool HasStringAndIntValuedAttribute(EntityHandle token, AttributeDescription description, out string stringValue, out int intValue) 2492internal List<AttributeInfo>? FindTargetAttributes(EntityHandle hasAttribute, AttributeDescription description) 2520internal AttributeInfo FindTargetAttribute(EntityHandle hasAttribute, AttributeDescription description) 2525internal static AttributeInfo FindTargetAttribute(MetadataReader metadataReader, EntityHandle hasAttribute, AttributeDescription description, out bool foundAttributeType) 2552internal AttributeInfo FindLastTargetAttribute(EntityHandle hasAttribute, AttributeDescription description) 2575internal int GetParamArrayCountOrThrow(EntityHandle hasAttribute) 2724out EntityHandle ctor, 2745out EntityHandle ctor, 2751EntityHandle ctorType; 2817internal EntityHandle GetTypeRef( 2818EntityHandle resolutionScope, 2864out EntityHandle resolutionScope) 2909EntityHandle ctor; 2952EntityHandle token = sig.ReadTypeHandle(); 3033out EntityHandle ctorType, 3034out EntityHandle attributeCtor) 3047out EntityHandle ctorType, 3048out EntityHandle attributeCtor) 3052ctorType = default(EntityHandle); 3093ctorType = default(EntityHandle); 3094attributeCtor = default(EntityHandle); 3104internal bool GetAttributeNamespaceAndName(EntityHandle typeDefOrRef, out StringHandle namespaceHandle, out StringHandle nameHandle) 3114private static bool GetAttributeNamespaceAndName(MetadataReader metadataReader, EntityHandle typeDefOrRef, out StringHandle namespaceHandle, out StringHandle nameHandle) 3202internal bool HasNullableContextAttribute(EntityHandle token, out byte value) 3216internal bool HasNullableAttribute(EntityHandle token, out byte defaultTransform, out ImmutableArray<byte> nullableTransforms) 3237internal bool TryGetOverloadResolutionPriorityValue(EntityHandle token, out int decodedPriority) 3270internal void GetMethodSpecificationOrThrow(MethodSpecificationHandle handle, out EntityHandle method, out BlobHandle instantiation) 3315internal BlobHandle GetMethodSignatureOrThrow(EntityHandle methodDefOrRef) 3321private static BlobHandle GetMethodSignatureOrThrow(MetadataReader metadataReader, EntityHandle methodDefOrRef) 3355internal EntityHandle GetContainingTypeOrThrow(MemberReferenceHandle memberRef) 3379out EntityHandle body, 3380out EntityHandle declaration) 3453out EntityHandle @class, 3533out EntityHandle type) 3614public CustomAttributeHandleCollection GetCustomAttributesOrThrow(EntityHandle handle) 3628private BlobHandle GetMarshallingDescriptorHandleOrThrow(EntityHandle fieldOrParameterToken) 3635internal UnmanagedType GetMarshallingType(EntityHandle fieldOrParameterToken) 3658internal ImmutableArray<byte> GetMarshallingDescriptor(EntityHandle fieldOrParameterToken)
NativePdbWriter\PdbWriter.cs (1)
708EntityHandle handle = _metadataWriter.GetDefinitionHandle(definition.Definition);
PEWriter\MetadataWriter.cs (42)
423private EntityHandle[] _pseudoSymbolTokenToTokenMap; 465_pseudoSymbolTokenToTokenMap = new EntityHandle[referencesInIL.Length]; 724private EntityHandle GetCustomAttributeTypeCodedIndex(IMethodReference methodReference) 734? (EntityHandle)GetMethodDefinitionHandle(methodDef) 827internal EntityHandle GetFieldHandle(IFieldReference fieldReference) 837? (EntityHandle)GetFieldDefinitionHandle(fieldDef) 896private EntityHandle GetExportedTypeImplementation(INamespaceTypeReference namespaceRef) 907? (EntityHandle)GetAssemblyFileHandle(mref) 925internal EntityHandle GetMemberReferenceParent(ITypeMemberReference memberRef) 960? (EntityHandle)GetTypeSpecificationHandle(containingType) 964internal EntityHandle GetMethodDefinitionOrReferenceHandle(IMethodReference methodReference) 974? (EntityHandle)GetMethodDefinitionHandle(methodDef) 1163internal EntityHandle GetMethodHandle(IMethodReference methodReference) 1185? (EntityHandle)GetMethodSpecificationHandle(methodSpec) 1189internal EntityHandle GetStandaloneSignatureHandle(ISignature signature) 1295private EntityHandle GetResolutionScopeHandle(IUnitReference unitReference) 1578private EntityHandle GetDeclaringTypeOrMethodHandle(IGenericParameter genPar) 1660internal EntityHandle GetTypeHandle(ITypeReference typeReference, bool treatRefAsPotentialTypeSpec = true) 1670? (EntityHandle)GetTypeSpecificationHandle(typeReference) 1674internal EntityHandle GetDefinitionHandle(IDefinition definition) 1678ITypeDefinition typeDef => (EntityHandle)GetTypeDefinitionHandle(typeDef), 2052EntityHandle parentHandle = Handle.AssemblyDefinition; 2090AddCustomAttributesToTable(EntityHandle.ModuleDefinition, module.GetSourceModuleAttributes()); 2105var parentHandle = MetadataTokens.Handle(tableIndex, parentRowId++); 2110private void AddCustomAttributesToTable<T>(IEnumerable<T> parentList, Func<T, EntityHandle> getDefinitionHandle) 2121EntityHandle parentHandle = getDefinitionHandle(parent); 2126protected virtual void AddCustomAttributesToTable(EntityHandle parentHandle, IEnumerable<ICustomAttribute> attributes) 2134protected bool AddCustomAttributeToTable(EntityHandle parentHandle, ICustomAttribute customAttribute) 2154this.PopulateDeclSecurityTableRowsFor(EntityHandle.AssemblyDefinition, module.GetSourceAssemblySecurityAttributes()); 2178private void PopulateDeclSecurityTableRowsFor(EntityHandle parentHandle, IEnumerable<SecurityAttribute> attributes) 2240EntityHandle implementation; 2520implementation: default(EntityHandle), 2527EntityHandle implementation; 2536implementation = default(EntityHandle); 2785baseType: (baseType != null) ? GetTypeHandle(baseType) : default(EntityHandle), 2830EntityHandle resolutionScope; 3106private EntityHandle GetHandle(object reference) 3118private EntityHandle ResolveEntityHandleFromPseudoToken(int pseudoSymbolToken) 3135EntityHandle handle = GetHandle(entity); 3271var handle = ResolveEntityHandleFromPseudoToken(pseudoToken & 0x00ffffff); 3279var handle = ResolveEntityHandleFromPseudoToken(pseudoToken & 0x00ffffff); 3386(exceptionType != null) ? GetTypeHandle(exceptionType) : default(EntityHandle),
PEWriter\MetadataWriter.PortablePdb.cs (5)
478parent: EntityHandle.ModuleDefinition, 487private void SerializeLocalInfo(ILocalDefinition local, EntityHandle parent) 863parent: EntityHandle.ModuleDefinition, 933parent: EntityHandle.ModuleDefinition, 1011parent: EntityHandle.ModuleDefinition,
Microsoft.CodeAnalysis.CSharp (29)
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
67EntityHandle targetSymbolToken,
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
117internal Symbol FindMember(EntityHandle memberRefOrMethodDef, bool methodsOnly)
Symbols\Metadata\PE\MetadataDecoder.cs (1)
288EntityHandle baseToken = Module.GetBaseTypeOfTypeOrThrow(typeDef);
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
15internal static TypeSymbol TransformType(TypeSymbol type, EntityHandle handle, PEModuleSymbol containingModule, TypeSymbol? containingType)
Symbols\Metadata\PE\NullableTypeDecoder.cs (1)
22EntityHandle targetSymbolToken,
Symbols\Metadata\PE\PEEventSymbol.cs (2)
72EntityHandle eventType = default(EntityHandle);
Symbols\Metadata\PE\PEModuleSymbol.cs (14)
210private static EntityHandle Token 214return EntityHandle.ModuleDefinition; 258EntityHandle assemblyMSCorLib = Module.GetAssemblyRef(corlibName); 263EntityHandle typerefAssemblyAttributesGoHere = 296internal void LoadCustomAttributes(EntityHandle token, ref ImmutableArray<CSharpAttributeData> customAttributes) 302internal void LoadCustomAttributesFilterExtensions(EntityHandle token, 309internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token, 316internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token, 329internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token, 416internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token) 428internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token, 434internal bool HasAnyCustomAttributes(EntityHandle token) 449internal TypeSymbol TryDecodeAttributeWithTypeArgument(EntityHandle handle, AttributeDescription attributeDescription) 466private ImmutableArray<CSharpAttributeData> GetCustomAttributesFilterCompilerAttributes(EntityHandle token, out bool foundExtension, out bool foundReadOnly)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
548EntityHandle token = moduleSymbol.Module.GetBaseTypeOfTypeOrThrow(_handle); 577EntityHandle interfaceHandle = moduleSymbol.Module.MetadataReader.GetInterfaceImplementation(interfaceImpl).Interface;
Symbols\Metadata\PE\PEUtilities.cs (1)
11internal static DiagnosticInfo? DeriveCompilerFeatureRequiredAttributeDiagnostic(Symbol symbol, PEModuleSymbol module, EntityHandle handle, CompilerFeatureRequiredFeatures allowedFeatures, MetadataDecoder decoder)
Symbols\Metadata\PE\TupleTypeDecoder.cs (3)
26/// <see cref="DecodeTupleTypesIfApplicable(TypeSymbol, EntityHandle, PEModuleSymbol)"/> 82EntityHandle targetHandle, 102EntityHandle targetHandle,
Symbols\ObsoleteAttributeHelpers.cs (2)
31internal static void InitializeObsoleteDataFromMetadata(ref ObsoleteAttributeData data, EntityHandle token, PEModuleSymbol containingModule, bool ignoreByRefLikeMarker, bool ignoreRequiredMemberMarker) 44internal static ObsoleteAttributeData GetObsoleteDataFromMetadata(EntityHandle token, PEModuleSymbol containingModule, bool ignoreByRefLikeMarker, bool ignoreRequiredMemberMarker)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenFunctionPointersTests.cs (1)
12729baseType: default(EntityHandle),
CodeGen\DestructorTests.cs (3)
794Single(pair => pair.row.Parent == (EntityHandle)handleObject && 806Assert.Equal((EntityHandle)handleDestructorObject, methodImpl.MethodDeclaration); 809Assert.Equal((EntityHandle)handleDestructorA, methodImpl.MethodBody);
Emit\CompilationEmitTests.cs (1)
4218EntityHandle scope = reader.GetTypeReference(typeRef).ResolutionScope;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (7)
Emit\EditAndContinue\EditAndContinueTestBase.cs (3)
152internal static EntityHandle Handle(int rowNumber, TableIndex table) 183internal static void CheckEncMap(MetadataReader reader, params EntityHandle[] handles) 194internal static void CheckEncMapDefinitions(MetadataReader reader, params EntityHandle[] handles)
PDB\PDBSourceLinkTests.cs (1)
94(from cdiHandle in pdbReader.GetCustomDebugInformation(EntityHandle.ModuleDefinition)
PDB\PortablePdbTests.cs (2)
312(from cdiHandle in pdbReader.GetCustomDebugInformation(EntityHandle.ModuleDefinition) 355(from cdiHandle in pdbReader.GetCustomDebugInformation(EntityHandle.ModuleDefinition)
PDB\TypeDefinitionDocumentTests.cs (1)
483string GetTypeName(EntityHandle handle)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Attributes\AttributeTests_Assembly.cs (3)
1070EntityHandle token = peModule.GetTypeRef(peModule.GetAssemblyRef("mscorlib"), "System.Runtime.CompilerServices", "AssemblyAttributesGoHereM"); 1191EntityHandle token = peModule.GetTypeRef(peModule.GetAssemblyRef("mincorlib"), "System.Runtime.CompilerServices", "AssemblyAttributesGoHereM"); 1789EntityHandle token = metadata.GetTypeRef(metadata.GetAssemblyRef("mscorlib"), "System.Runtime.CompilerServices", "AssemblyAttributesGoHere");
Attributes\AttributeTests_Synthesized.cs (1)
185void Verify(EntityHandle token)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
3336var ctor = peReader.GetCustomAttribute(ca).Constructor;
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
1540EntityHandle token = metadata.Module.GetTypeRef(metadata.Module.GetAssemblyRef(corlibName), "System.Runtime.CompilerServices", "AssemblyAttributesGoHere");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\GenericConstraintTests.cs (1)
6598var constraintTypeHandle = metadataReader.GetGenericParameterConstraint(constraints[0]).Type;
Symbols\Metadata\PE\TypeForwarders.cs (1)
1639EntityHandle token = metadata.GetTypeRef(metadata.GetAssemblyRef("mscorlib"), "System.Runtime.CompilerServices", "AssemblyAttributesGoHereM");
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
EmitMetadataTestBase.cs (1)
135private static void GetAttributeParentNameAndKind(MetadataReader metadataReader, EntityHandle token, out string name, out SymbolKind kind)
RequiredMemberAttributesVisitor.cs (1)
31EntityHandle handle;
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdDumpTest.cs (1)
173EntityHandle type;
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (6)
EESymbolProvider.cs (1)
50public abstract TTypeSymbol GetType(EntityHandle handle);
PDB\MethodDebugInfo.Portable.cs (5)
105foreach (var handle in reader.GetEditAndContinueMapEntries()) 397defaultNamespace = TryGetCustomDebugInformation(reader, EntityHandle.ModuleDefinition, PortableCustomDebugInfoKinds.DefaultNamespace, out info) 405private static ImmutableArray<bool> ReadDynamicCustomDebugInformation(MetadataReader reader, EntityHandle variableOrConstantHandle) 416private static ImmutableArray<string?> ReadTupleCustomDebugInformation(MetadataReader reader, EntityHandle variableOrConstantHandle) 427private static bool TryGetCustomDebugInformation(MetadataReader reader, EntityHandle handle, Guid kind, out CustomDebugInformation customDebugInfo)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (3)
MetadataDecoder.cs (3)
159var typeHandle = signatureReader.ReadTypeHandle(); 187EntityHandle handle, 232var scope = typeRef.ResolutionScope;
Microsoft.CodeAnalysis.Features (7)
EditAndContinue\EditAndContinueMethodDebugInfoReader.cs (1)
132private static bool TryGetCustomDebugInformation(MetadataReader reader, EntityHandle handle, Guid kind, out CustomDebugInformation customDebugInfo)
PdbSourceDocument\DocumentDebugInfoReader.cs (3)
36public ImmutableArray<SourceDocument> FindSourceDocuments(EntityHandle entityHandle) 70foreach (var cdiHandle in _pdbReader.GetCustomDebugInformation(EntityHandle.ModuleDefinition)) 110foreach (var handle in _pdbReader.GetCustomDebugInformation(EntityHandle.ModuleDefinition))
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
194EntityHandle lastAssemblyReferenceHandle = default;
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
122var handle = MetadataTokens.EntityHandle(symbolToFind.MetadataToken);
PdbSourceDocument\SymbolSourceDocumentFinder.cs (1)
14public static HashSet<DocumentHandle> FindDocumentHandles(EntityHandle handle, MetadataReader dllReader, MetadataReader pdbReader)
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
429var blobs = from cdiHandle in PdbReader.GetCustomDebugInformation(EntityHandle.ModuleDefinition)
Microsoft.CodeAnalysis.Test.Utilities (12)
Metadata\CustomAttributeRow.cs (4)
15public readonly EntityHandle ParentToken; 16public readonly EntityHandle ConstructorToken; 18public CustomAttributeRow(EntityHandle parentToken, EntityHandle constructorToken)
Metadata\MetadataReaderUtils.cs (5)
166public static StringHandle GetName(this MetadataReader reader, EntityHandle token) 217EntityHandle parent; 218var token = row.ConstructorToken; 322public static string Dump(this MetadataReader reader, EntityHandle handle) 336private static string DumpRec(this MetadataReader reader, EntityHandle handle)
Metadata\MetadataValidation.cs (2)
29var ctorHandle = metadataReader.GetCustomAttribute(customAttribute).Constructor; 32var container = metadataReader.GetMemberReference((MemberReferenceHandle)ctorHandle).Parent;
PDB\DeterministicBuildCompilationTestHelpers.cs (1)
99return (from cdiHandle in pdbReader.GetCustomDebugInformation(EntityHandle.ModuleDefinition)
Microsoft.CodeAnalysis.VisualBasic (18)
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (1)
98Friend Function FindMember(memberRefOrMethodDef As EntityHandle, methodsOnly As Boolean) As Symbol
Symbols\Metadata\PE\MetadataDecoder.vb (1)
251Dim baseToken As EntityHandle = Me.Module.GetBaseTypeOfTypeOrThrow(typeDef)
Symbols\Metadata\PE\PEEventSymbol.vb (1)
62Dim eventType As EntityHandle
Symbols\Metadata\PE\PEModuleSymbol.vb (8)
144Me.LoadCustomAttributes(EntityHandle.ModuleDefinition, _lazyCustomAttributes) 154Dim assemblyMSCorLib As EntityHandle = [Module].GetAssemblyRef(corlibName) 158Dim typerefAssemblyAttributesGoHere As EntityHandle = 187Friend Function GetCustomAttributesForToken(token As EntityHandle) As ImmutableArray(Of VisualBasicAttributeData) 191Friend Function GetCustomAttributesForToken(token As EntityHandle, 239Friend Sub LoadCustomAttributes(token As EntityHandle, ByRef lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData)) 502DeriveCompilerFeatureRequiredAttributeDiagnostic(Me, Me, EntityHandle.ModuleDefinition, CompilerFeatureRequiredFeatures.None, New MetadataDecoder(Me)), 524Dim experimentalData = _module.TryDecodeExperimentalAttributeData(EntityHandle.ModuleDefinition, New MetadataDecoder(Me))
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
257Dim token As EntityHandle = moduleSymbol.Module.GetBaseTypeOfTypeOrThrow(Me._handle) 283Dim interfaceHandle As EntityHandle = moduleSymbol.Module.MetadataReader.GetInterfaceImplementation(interfaceImpl).Interface
Symbols\Metadata\PE\PEUtilities.vb (1)
8Friend Function DeriveCompilerFeatureRequiredAttributeDiagnostic(symbol As Symbol, [module] As PEModuleSymbol, handle As System.Reflection.Metadata.EntityHandle, allowedFeatures As CompilerFeatureRequiredFeatures, decoder As MetadataDecoder) As DiagnosticInfo
Symbols\Metadata\PE\TupleTypeDecoder.vb (2)
22''' <see cref="DecodeTupleTypesIfApplicable(TypeSymbol, EntityHandle, PEModuleSymbol)"/> 77targetSymbolToken As EntityHandle,
Symbols\ObsoleteAttributeHelpers.vb (2)
26Friend Shared Sub InitializeObsoleteDataFromMetadata(ByRef data As ObsoleteAttributeData, token As EntityHandle, containingModule As PEModuleSymbol) 33Friend Shared Function GetObsoleteDataFromMetadata(token As EntityHandle, containingModule As PEModuleSymbol) As ObsoleteAttributeData
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (12)
Attributes\AssemblyAttributes.vb (3)
1302Dim token As EntityHandle = metadata.GetTypeRef(metadata.GetAssemblyRef("mscorlib"), "System.Runtime.CompilerServices", "AssemblyAttributesGoHereM") 1419Dim token As EntityHandle = metadata.GetTypeRef(metadata.GetAssemblyRef("mincorlib"), "System.Runtime.CompilerServices", "AssemblyAttributesGoHereM") 2015Dim token As EntityHandle = metadata.GetTypeRef(metadata.GetAssemblyRef("mscorlib"), "System.Runtime.CompilerServices", "AssemblyAttributesGoHere")
Attributes\InternalsVisibleToAndStrongNameTests.vb (1)
1420Dim token As EntityHandle = metadata.Module.GetTypeRef(metadata.Module.GetAssemblyRef("mscorlib"), "System.Runtime.CompilerServices", "AssemblyAttributesGoHere")
Emit\CompilationEmitTests.vb (2)
2570Private Shared Function GetExpectedParentToken(metadataReader As MetadataReader, entry As DeclSecurityEntry) As EntityHandle 2573Return EntityHandle.AssemblyDefinition
Emit\EditAndContinue\EditAndContinueTestBase.vb (3)
194Friend Shared Function Handle(rowNumber As Integer, table As TableIndex) As EntityHandle 231Friend Shared Sub CheckEncMap(reader As MetadataReader, ParamArray [handles] As EntityHandle()) 241Friend Shared Sub CheckEncMapDefinitions(reader As MetadataReader, ParamArray [handles] As EntityHandle())
PDB\PortablePdbTests.vb (2)
206(From cdiHandle In pdbReader.GetCustomDebugInformation(EntityHandle.ModuleDefinition) 243(From cdiHandle In pdbReader.GetCustomDebugInformation(EntityHandle.ModuleDefinition)
PDB\TypeDefinitionDocumentTests.vb (1)
367Private Shared Function GetTypeName(metadataReader As MetadataReader, handle As EntityHandle) As String
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
VisualBasicEESymbolProvider.vb (1)
78Public Overrides Function [GetType](handle As EntityHandle) As TypeSymbol
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\FieldInitializerBindingTests.vb (1)
1350Private Function HasAnyCustomAttribute(reader As MetadataReader, parent As EntityHandle) As Boolean
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Metadata\PE\TypeForwarders.vb (1)
1067Dim token As EntityHandle = metadata.GetTypeRef(metadata.GetAssemblyRef("mscorlib"), "System.Runtime.CompilerServices", "AssemblyAttributesGoHereM")
Microsoft.CodeAnalysis.Workspaces (32)
FindSymbols\SymbolTree\SymbolTreeInfo.FirstEntityHandleProvider.cs (27)
21private sealed class FirstEntityHandleProvider : ISignatureTypeProvider<EntityHandle, object?> 25public EntityHandle GetTypeFromSpecification(MetadataReader reader, TypeSpecificationHandle handle) 31return new SignatureDecoder<EntityHandle, object?>(this, reader, genericContext: null).DecodeType(ref sigReader); 34public EntityHandle GetTypeFromSpecification(MetadataReader reader, object? genericContext, TypeSpecificationHandle handle, byte rawTypeKind) 37public EntityHandle GetTypeFromDefinition(MetadataReader reader, TypeDefinitionHandle handle, byte rawTypeKind) => handle; 38public EntityHandle GetTypeFromReference(MetadataReader reader, TypeReferenceHandle handle, byte rawTypeKind) => handle; 41public EntityHandle GetGenericInstantiation(EntityHandle genericType, ImmutableArray<EntityHandle> typeArguments) => genericType; 45public EntityHandle GetModifiedType(EntityHandle modifier, EntityHandle unmodifiedType, bool isRequired) => unmodifiedType; 46public EntityHandle GetPinnedType(EntityHandle elementType) => elementType; 47public EntityHandle GetArrayType(EntityHandle elementType, ArrayShape shape) => elementType; 48public EntityHandle GetByReferenceType(EntityHandle elementType) => elementType; 49public EntityHandle GetPointerType(EntityHandle elementType) => elementType; 50public EntityHandle GetSZArrayType(EntityHandle elementType) => elementType; 55public EntityHandle GetFunctionPointerType(MethodSignature<EntityHandle> signature) => default; 56public EntityHandle GetGenericMethodParameter(object? genericContext, int index) => default; 57public EntityHandle GetGenericTypeParameter(object? genericContext, int index) => default; 59public EntityHandle GetPrimitiveType(PrimitiveTypeCode typeCode) => default;
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (5)
551EntityHandle baseTypeOrInterfaceHandle) 586EntityHandle baseTypeOrInterfaceHandle, 589var typeDefOrRefHandle = GetTypeDefOrRefHandle(metadataReader, baseTypeOrInterfaceHandle); 682private static EntityHandle GetTypeDefOrRefHandle( 684EntityHandle baseTypeOrInterfaceHandle)
Microsoft.DotNet.SignTool (2)
src\Configuration.cs (2)
630var ctorHandle = attribute.Constructor; 634var container = reader.GetMemberReference((MemberReferenceHandle)ctorHandle).Parent;
Roslyn.Test.PdbUtilities (6)
EditAndContinue\EditAndContinueTest.GenerationVerifier.cs (4)
90internal void VerifyEncMap(IEnumerable<EntityHandle>? expected = null) 94expected ?? Array.Empty<EntityHandle>(), 106internal void VerifyEncMapDefinitions(IEnumerable<EntityHandle>? expected = null) 110expected ?? Array.Empty<EntityHandle>(),
EditAndContinue\EditAndContinueTestUtilities.cs (1)
50public static string EncMapRowToString(EntityHandle handle)
Reader\PdbTestUtilities.cs (1)
65private static bool TryGetCustomDebugInformation(MetadataReader reader, EntityHandle handle, Guid kind, out CustomDebugInformation customDebugInfo)
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
346private static unsafe TSymbol? GetSymbolWithToken<TSymbol>(ImmutableArray<TSymbol> symbols, ref int symbolIndex, EntityHandle handle) where TSymbol : class, ISymbol
System.Diagnostics.FileVersionInfo (3)
System\Diagnostics\FileVersionInfo.Unix.cs (3)
256EntityHandle ctorHandle = attr.Constructor; 260EntityHandle container = reader.GetMemberReference((MemberReferenceHandle)ctorHandle).Parent; 290EntityHandle ctorHandle = attr.Constructor;
System.Reflection.Emit (31)
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (1)
23internal EntityHandle _parentHandle;
System\Reflection\Emit\ILGeneratorImpl.cs (1)
463private void WriteOrReserveToken(EntityHandle handle, object member)
System\Reflection\Emit\ModuleBuilderImpl.cs (28)
23private readonly Dictionary<Type, EntityHandle> _typeReferences = new(); 24private readonly Dictionary<object, EntityHandle> _memberReferences = new(); 150EntityHandle parent = default; 679internal void WriteCustomAttributes(List<CustomAttributeWrapper>? customAttributes, EntityHandle parent) 691private EntityHandle GetTypeReferenceOrSpecificationHandle(Type type) 693if (!_typeReferences.TryGetValue(type, out var typeHandle)) 722private MethodSpecificationHandle AddMethodSpecification(EntityHandle methodHandle, Type[] genericArgs) => 729private EntityHandle GetMemberReferenceHandle(MemberInfo memberInfo) 731if (!_memberReferences.TryGetValue(memberInfo, out var memberHandle)) 778private EntityHandle GetMethodReference(MethodInfo methodInfo, Type[] optionalParameterTypes) 783if (!_memberReferences.TryGetValue(pair, out var memberHandle)) 869private void AddGenericTypeParametersAndConstraintsCustomAttributes(EntityHandle parentHandle, GenericTypeParameterBuilderImpl gParam) 884private void AddDefaultValue(EntityHandle parentHandle, object? defaultValue) 899private void AddMethodSemantics(EntityHandle parentHandle, MethodSemanticsAttributes attribute, MethodDefinitionHandle methodHandle) => 911private EventDefinitionHandle AddEventDefinition(EventBuilderImpl eventBuilder, EntityHandle eventType) => 933private TypeDefinitionHandle AddTypeDefinition(TypeBuilderImpl type, EntityHandle parent, int methodToken, int fieldToken) => 951private TypeReferenceHandle AddTypeReference(EntityHandle resolutionScope, string? ns, string name) => 957private MemberReferenceHandle AddMemberReference(string memberName, EntityHandle parent, BlobBuilder signature) => 977private void AddMarshalling(EntityHandle parent, BlobBuilder builder) => 996internal EntityHandle GetTypeHandle(Type type) 1015internal EntityHandle GetMemberHandle(MemberInfo member) 1072internal EntityHandle TryGetFieldHandle(FieldInfo field) 1082private static int GetTokenForHandle(EntityHandle handle) 1092private EntityHandle GetHandleForMember(MemberInfo member) 1137internal EntityHandle TryGetTypeHandle(Type type) 1159internal EntityHandle TryGetConstructorHandle(ConstructorInfo constructor) 1171internal EntityHandle TryGetMethodHandle(MethodInfo method) 1193internal EntityHandle TryGetMethodHandle(MethodInfo method, Type[] optionalParameterTypes)
System\Reflection\Emit\SignatureHelper.cs (1)
291EntityHandle typeHandle = module.GetTypeHandle(type);
System.Reflection.Metadata (264)
System\Reflection\Metadata\BlobReader.cs (2)
606public EntityHandle ReadTypeHandle() 613return default(EntityHandle);
System\Reflection\Metadata\Decoding\ISignatureTypeProvider.cs (1)
49/// The kind of the type as specified in the signature. To interpret this value use <see cref="Ecma335.MetadataReaderExtensions.ResolveSignatureTypeKind(MetadataReader, EntityHandle, byte)"/>
System\Reflection\Metadata\Decoding\ISimpleTypeProvider.cs (2)
23/// The kind of the type as specified in the signature. To interpret this value use <see cref="Ecma335.MetadataReaderExtensions.ResolveSignatureTypeKind(MetadataReader, EntityHandle, byte)"/> 38/// The kind of the type as specified in the signature. To interpret this value use <see cref="Ecma335.MetadataReaderExtensions.ResolveSignatureTypeKind(MetadataReader, EntityHandle, byte)"/>
System\Reflection\Metadata\Ecma335\CodedIndex.cs (15)
36public static int HasCustomAttribute(EntityHandle handle) => (handle.RowId << (int)HasCustomAttributeTag.BitCount) | (int)ToHasCustomAttributeTag(handle.Kind); 43public static int HasConstant(EntityHandle handle) => (handle.RowId << (int)HasConstantTag.BitCount) | (int)ToHasConstantTag(handle.Kind); 50public static int CustomAttributeType(EntityHandle handle) => (handle.RowId << (int)CustomAttributeTypeTag.BitCount) | (int)ToCustomAttributeTypeTag(handle.Kind); 57public static int HasDeclSecurity(EntityHandle handle) => (handle.RowId << (int)HasDeclSecurityTag.BitCount) | (int)ToHasDeclSecurityTag(handle.Kind); 64public static int HasFieldMarshal(EntityHandle handle) => (handle.RowId << (int)HasFieldMarshalTag.BitCount) | (int)ToHasFieldMarshalTag(handle.Kind); 71public static int HasSemantics(EntityHandle handle) => (handle.RowId << (int)HasSemanticsTag.BitCount) | (int)ToHasSemanticsTag(handle.Kind); 78public static int Implementation(EntityHandle handle) => (handle.RowId << (int)ImplementationTag.BitCount) | (int)ToImplementationTag(handle.Kind); 85public static int MemberForwarded(EntityHandle handle) => (handle.RowId << (int)MemberForwardedTag.BitCount) | (int)ToMemberForwardedTag(handle.Kind); 98public static int MemberRefParent(EntityHandle handle) => (handle.RowId << (int)MemberRefParentTag.BitCount) | (int)ToMemberRefParentTag(handle.Kind); 105public static int MethodDefOrRef(EntityHandle handle) => (handle.RowId << (int)MethodDefOrRefTag.BitCount) | (int)ToMethodDefOrRefTag(handle.Kind); 112public static int ResolutionScope(EntityHandle handle) => (handle.RowId << (int)ResolutionScopeTag.BitCount) | (int)ToResolutionScopeTag(handle.Kind); 119public static int TypeDefOrRef(EntityHandle handle) => (handle.RowId << (int)TypeDefOrRefTag.BitCount) | (int)ToTypeDefOrRefTag(handle.Kind); 126public static int TypeDefOrRefOrSpec(EntityHandle handle) => (handle.RowId << (int)TypeDefOrRefOrSpecTag.BitCount) | (int)ToTypeDefOrRefOrSpecTag(handle.Kind); 133public static int TypeOrMethodDef(EntityHandle handle) => (handle.RowId << (int)TypeOrMethodDefTag.BitCount) | (int)ToTypeOrMethodDefTag(handle.Kind); 168public static int HasCustomDebugInformation(EntityHandle handle) => (handle.RowId << (int)HasCustomDebugInformationTag.BitCount) | (int)ToHasCustomDebugInformationTag(handle.Kind);
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (3)
22public CustomAttributeValue<TType> DecodeValue(EntityHandle constructor, BlobHandle value) 195EntityHandle handle = signatureReader.ReadTypeHandle(); 414private TType GetTypeFromHandle(EntityHandle handle) =>
System\Reflection\Metadata\Ecma335\EditAndContinueLogEntry.cs (2)
10public EntityHandle Handle { get; } 13public EditAndContinueLogEntry(EntityHandle handle, EditAndContinueOperation operation)
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (3)
1065public void Type(EntityHandle type, bool isValueType) 1123public GenericTypeArgumentsEncoder GenericInstantiation(EntityHandle genericType, int genericArgumentCount, bool isValueType) 1225public CustomModifiersEncoder AddModifier(EntityHandle type, bool isOptional)
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (5)
68public readonly EntityHandle CatchType; 77EntityHandle catchType) 206public void AddCatchRegion(LabelHandle tryStart, LabelHandle tryEnd, LabelHandle handlerStart, LabelHandle handlerEnd, EntityHandle catchType) 239EntityHandle catchType = default(EntityHandle))
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (7)
72internal static bool IsValidCatchTypeHandle(EntityHandle catchType) 122return Add(ExceptionRegionKind.Finally, tryOffset, tryLength, handlerOffset, handlerLength, default(EntityHandle), 0); 139return Add(ExceptionRegionKind.Fault, tryOffset, tryLength, handlerOffset, handlerLength, default(EntityHandle), 0); 158public ExceptionRegionEncoder AddCatch(int tryOffset, int tryLength, int handlerOffset, int handlerLength, EntityHandle catchType) 178return Add(ExceptionRegionKind.Filter, tryOffset, tryLength, handlerOffset, handlerLength, default(EntityHandle), filterOffset); 209EntityHandle catchType = default(EntityHandle),
System\Reflection\Metadata\Ecma335\Encoding\InstructionEncoder.cs (2)
74public void Token(EntityHandle handle) 100public void Call(EntityHandle methodHandle)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (23)
384return EntityHandle.ModuleDefinition; 415return EntityHandle.AssemblyDefinition; 464EntityHandle baseType, 526EntityHandle implementedInterface) 567EntityHandle resolutionScope, 635public EventDefinitionHandle AddEvent(EventAttributes attributes, StringHandle name, EntityHandle type) 665public ConstantHandle AddConstant(EntityHandle parent, object? value) 693public void AddMethodSemantics(EntityHandle association, MethodSemanticsAttributes semantics, MethodDefinitionHandle methodDefinition) 747public CustomAttributeHandle AddCustomAttribute(EntityHandle parent, EntityHandle constructor, BlobHandle value) 771public MethodSpecificationHandle AddMethodSpecification(EntityHandle method, BlobHandle instantiation) 830EntityHandle parent, 862EntityHandle constraint) 923EntityHandle parent, 1048EntityHandle methodBody, 1049EntityHandle methodDeclaration) 1075EntityHandle parent, 1100EntityHandle implementation, 1142EntityHandle implementation, 1168EntityHandle parent, 1188public void AddEncLogEntry(EntityHandle entity, EditAndContinueOperation code) 1197public void AddEncMapEntry(EntityHandle entity) 1405public CustomDebugInformationHandle AddCustomDebugInformation(EntityHandle parent, GuidHandle kind, BlobHandle value)
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (3)
309public static IEnumerable<EntityHandle> GetEditAndContinueMapEntries(this MetadataReader reader) 318static IEnumerable<EntityHandle> Core(MetadataReader reader) 380public static SignatureTypeKind ResolveSignatureTypeKind(this MetadataReader reader, EntityHandle typeHandle, byte rawTypeKind)
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (11)
24public static int GetRowNumber(this MetadataReader reader, EntityHandle handle) 61public static int GetToken(this MetadataReader reader, EntityHandle handle) 121/// See <see cref="GetRowNumber(MetadataReader, EntityHandle)"/>. 123public static int GetRowNumber(EntityHandle handle) 220/// See <see cref="GetToken(MetadataReader, EntityHandle)"/>. 222public static int GetToken(EntityHandle handle) 303public static EntityHandle EntityHandle(int token) 314/// Creates an <see cref="Metadata.EntityHandle"/> from a token value. 318public static EntityHandle EntityHandle(TableIndex tableIndex, int rowNumber) 324/// Creates an <see cref="Metadata.EntityHandle"/> from a token value. 328public static EntityHandle Handle(TableIndex tableIndex, int rowNumber)
System\Reflection\Metadata\Ecma335\SignatureDecoder.cs (1)
300EntityHandle handle = blobReader.ReadTypeHandle();
System\Reflection\Metadata\EntityHandle.cs (12)
14/// Use <see cref="EntityHandle"/> to store multiple kinds of entity handles. 17public readonly struct EntityHandle : IEquatable<EntityHandle> 30public static implicit operator Handle(EntityHandle handle) 35public static explicit operator EntityHandle(Handle handle) 100return obj is EntityHandle entityHandle && Equals(entityHandle); 103public bool Equals(EntityHandle other) 113public static bool operator ==(EntityHandle left, EntityHandle right) 118public static bool operator !=(EntityHandle left, EntityHandle right) 123internal static int Compare(EntityHandle left, EntityHandle right)
System\Reflection\Metadata\Handle.cs (1)
86/// Value stored in an <see cref="EntityHandle"/>.
System\Reflection\Metadata\HandleComparer.cs (11)
8public sealed class HandleComparer : IEqualityComparer<Handle>, IComparer<Handle>, IEqualityComparer<EntityHandle>, IComparer<EntityHandle> 26public bool Equals(EntityHandle x, EntityHandle y) 36public int GetHashCode(EntityHandle obj) 45/// The order of handles that differ in kind and are not <see cref="EntityHandle"/> is undefined. 57/// Returns 0 if and only if <see cref="Equals(EntityHandle, EntityHandle)"/> returns true. 59public int Compare(EntityHandle x, EntityHandle y) 61return EntityHandle.Compare(x, y);
System\Reflection\Metadata\IL\ExceptionRegion.cs (2)
79public EntityHandle CatchType 81get { return (Kind == ExceptionRegionKind.Catch) ? new EntityHandle((uint)_classTokenOrFilterOffset) : default(EntityHandle); }
System\Reflection\Metadata\Internal\CustomAttributeTypeTag.cs (1)
21internal static EntityHandle ConvertToHandle(uint customAttributeType)
System\Reflection\Metadata\Internal\HasConstantTag.cs (2)
23internal static EntityHandle ConvertToHandle(uint hasConstant) 36internal static uint ConvertToTag(EntityHandle token)
System\Reflection\Metadata\Internal\HasCustomAttributeTag.cs (2)
101internal static EntityHandle ConvertToHandle(uint hasCustomAttribute) 114internal static uint ConvertToTag(EntityHandle handle)
System\Reflection\Metadata\Internal\HasDeclSecurityTag.cs (2)
23internal static EntityHandle ConvertToHandle(uint hasDeclSecurity) 36internal static uint ConvertToTag(EntityHandle handle)
System\Reflection\Metadata\Internal\HasFieldMarshalTag.cs (2)
21internal static EntityHandle ConvertToHandle(uint hasFieldMarshal) 34internal static uint ConvertToTag(EntityHandle handle)
System\Reflection\Metadata\Internal\HasSemanticsTag.cs (1)
21internal static EntityHandle ConvertToHandle(uint hasSemantic)
System\Reflection\Metadata\Internal\ImplementationTag.cs (1)
23internal static EntityHandle ConvertToHandle(uint implementation)
System\Reflection\Metadata\Internal\MemberForwardedTag.cs (1)
21internal static EntityHandle ConvertToHandle(uint memberForwarded)
System\Reflection\Metadata\Internal\MemberRefParentTag.cs (1)
32internal static EntityHandle ConvertToHandle(uint memberRef)
System\Reflection\Metadata\Internal\MethodDefOrRefTag.cs (1)
21internal static EntityHandle ConvertToHandle(uint methodDefOrRef)
System\Reflection\Metadata\Internal\ResolutionScopeTag.cs (1)
25internal static EntityHandle ConvertToHandle(uint resolutionScope)
System\Reflection\Metadata\Internal\Tables.cs (23)
102internal EntityHandle GetResolutionScope(TypeReferenceHandle handle) 185internal EntityHandle GetExtends(TypeDefinitionHandle handle) 619internal EntityHandle GetInterface(int rowId) 670internal EntityHandle GetClass(MemberReferenceHandle handle) 724internal EntityHandle GetParent(ConstantHandle handle) 730internal ConstantHandle FindConstant(EntityHandle parentHandle) 795internal EntityHandle GetParent(CustomAttributeHandle handle) 801internal EntityHandle GetConstructor(CustomAttributeHandle handle) 813internal void GetAttributeRange(EntityHandle parentHandle, out int firstImplRowId, out int lastImplRowId) 893internal EntityHandle GetParent(int rowId) 905internal int FindFieldMarshalRowId(EntityHandle handle) 965internal EntityHandle GetParent(int rowId) 977internal void GetAttributeRange(EntityHandle parentToken, out int firstImplRowId, out int lastImplRowId) 1286internal EntityHandle GetEventType(EventDefinitionHandle handle) 1473internal EntityHandle GetAssociation(int rowId) 1564internal EntityHandle GetMethodBody(MethodImplementationHandle handle) 1570internal EntityHandle GetMethodDeclaration(MethodImplementationHandle handle) 1716internal EntityHandle GetMemberForwarded(int rowId) 2233internal EntityHandle GetImplementation(int rowId) 2295internal EntityHandle GetImplementation(ManifestResourceHandle handle) 2434internal EntityHandle GetOwner(GenericParameterHandle handle) 2512internal EntityHandle GetMethod(MethodSpecificationHandle handle) 2584internal EntityHandle GetConstraint(GenericParameterConstraintHandle handle)
System\Reflection\Metadata\Internal\TypeDefOrRefTag.cs (1)
24internal static EntityHandle ConvertToHandle(uint typeDefOrRefTag)
System\Reflection\Metadata\Internal\TypeOrMethodDefTag.cs (1)
21internal static EntityHandle ConvertToHandle(uint typeOrMethodDef)
System\Reflection\Metadata\MetadataReader.cs (2)
1174public CustomAttributeHandleCollection GetCustomAttributes(EntityHandle handle) 1398public CustomDebugInformationHandleCollection GetCustomDebugInformation(EntityHandle handle)
System\Reflection\Metadata\MetadataReader.WinMD.cs (18)
228EntityHandle extends = TypeDefTable.GetExtends(handle); 359private bool NeedsWinRTPrefix(TypeAttributes flags, EntityHandle extends) 419var parentBaseType = TypeDefTable.GetExtends(parentTypeDef); 452EntityHandle declaration = methodImpl.MethodDeclaration; 550EntityHandle baseTypeHandle = TypeDefTable.GetExtends(typeDef); 609EntityHandle parent = MemberRefTable.GetClass(memberRef); 628EntityHandle token = sig.ReadTypeHandle(); 669var parent = CustomAttributeTable.GetParent(handle); 698private bool IsWindowsAttributeUsageAttribute(EntityHandle targetType, CustomAttributeHandle attributeHandle) 710var attributeCtor = CustomAttributeTable.GetConstructor(attributeHandle); 716var attributeType = MemberRefTable.GetClass((MemberReferenceHandle)attributeCtor); 727private bool HasAttribute(EntityHandle token, string asciiNamespaceName, string asciiTypeName) 747EntityHandle typeDefOrRef = GetAttributeTypeRaw(caHandle); 756var resolutionScope = TypeRefTable.GetResolutionScope(typeRef); 795private EntityHandle GetAttributeTypeRaw(CustomAttributeHandle handle) 797var ctor = CustomAttributeTable.GetConstructor(handle); 808EntityHandle typeDefOrRef = MemberRefTable.GetClass((MemberReferenceHandle)ctor); 817return default(EntityHandle);
System\Reflection\Metadata\PortablePdb\CustomDebugInformation.cs (1)
26public EntityHandle Parent => _reader.CustomDebugInformationTable.GetParent(Handle);
System\Reflection\Metadata\PortablePdb\HandleCollections.Debug.cs (1)
744internal CustomDebugInformationHandleCollection(MetadataReader reader, EntityHandle handle)
System\Reflection\Metadata\PortablePdb\Handles.Debug.cs (14)
32public static implicit operator EntityHandle(DocumentHandle handle) 47public static explicit operator DocumentHandle(EntityHandle handle) 115public static implicit operator EntityHandle(MethodDebugInformationHandle handle) 130public static explicit operator MethodDebugInformationHandle(EntityHandle handle) 210public static implicit operator EntityHandle(LocalScopeHandle handle) 225public static explicit operator LocalScopeHandle(EntityHandle handle) 293public static implicit operator EntityHandle(LocalVariableHandle handle) 308public static explicit operator LocalVariableHandle(EntityHandle handle) 376public static implicit operator EntityHandle(LocalConstantHandle handle) 391public static explicit operator LocalConstantHandle(EntityHandle handle) 459public static implicit operator EntityHandle(ImportScopeHandle handle) 474public static explicit operator ImportScopeHandle(EntityHandle handle) 542public static implicit operator EntityHandle(CustomDebugInformationHandle handle) 557public static explicit operator CustomDebugInformationHandle(EntityHandle handle)
System\Reflection\Metadata\PortablePdb\HasCustomDebugInformationTag.cs (2)
115internal static EntityHandle ConvertToHandle(uint taggedReference) 128internal static uint ConvertToTag(EntityHandle handle)
System\Reflection\Metadata\PortablePdb\ImportDefinition.cs (2)
15public EntityHandle TargetType => (EntityHandle)_typeOrNamespace;
System\Reflection\Metadata\PortablePdb\Tables.Debug.cs (2)
469internal EntityHandle GetParent(CustomDebugInformationHandle handle) 487internal void GetRange(EntityHandle parentHandle, out int firstImplRowId, out int lastImplRowId)
System\Reflection\Metadata\Signatures\SignatureTypeCode.cs (1)
168/// Precedes a type <see cref="EntityHandle"/> in signatures.
System\Reflection\Metadata\TypeSystem\AssemblyDefinition.cs (2)
68return new CustomAttributeHandleCollection(_reader, EntityHandle.AssemblyDefinition); 73return new DeclarativeSecurityAttributeHandleCollection(_reader, EntityHandle.AssemblyDefinition);
System\Reflection\Metadata\TypeSystem\Constant.cs (1)
66public EntityHandle Parent
System\Reflection\Metadata\TypeSystem\CustomAttribute.cs (2)
46public EntityHandle Constructor 60public EntityHandle Parent
System\Reflection\Metadata\TypeSystem\DeclarativeSecurityAttribute.cs (1)
33public EntityHandle Parent
System\Reflection\Metadata\TypeSystem\EventDefinition.cs (1)
47public EntityHandle Type
System\Reflection\Metadata\TypeSystem\ExportedType.cs (1)
81public EntityHandle Implementation
System\Reflection\Metadata\TypeSystem\GenericParameter.cs (1)
35public EntityHandle Parent
System\Reflection\Metadata\TypeSystem\GenericParameterConstraint.cs (1)
48public EntityHandle Type
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (2)
243internal CustomAttributeHandleCollection(MetadataReader reader, EntityHandle handle) 363internal DeclarativeSecurityAttributeHandleCollection(MetadataReader reader, EntityHandle handle)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (50)
32public static implicit operator EntityHandle(ModuleDefinitionHandle handle) 47public static explicit operator ModuleDefinitionHandle(EntityHandle handle) 115public static implicit operator EntityHandle(AssemblyDefinitionHandle handle) 130public static explicit operator AssemblyDefinitionHandle(EntityHandle handle) 198public static implicit operator EntityHandle(InterfaceImplementationHandle handle) 213public static explicit operator InterfaceImplementationHandle(EntityHandle handle) 281public static implicit operator EntityHandle(MethodDefinitionHandle handle) 296public static explicit operator MethodDefinitionHandle(EntityHandle handle) 376public static implicit operator EntityHandle(MethodImplementationHandle handle) 391public static explicit operator MethodImplementationHandle(EntityHandle handle) 459public static implicit operator EntityHandle(MethodSpecificationHandle handle) 474public static explicit operator MethodSpecificationHandle(EntityHandle handle) 542public static implicit operator EntityHandle(TypeDefinitionHandle handle) 557public static explicit operator TypeDefinitionHandle(EntityHandle handle) 625public static implicit operator EntityHandle(ExportedTypeHandle handle) 640public static explicit operator ExportedTypeHandle(EntityHandle handle) 708public static implicit operator EntityHandle(TypeReferenceHandle handle) 723public static explicit operator TypeReferenceHandle(EntityHandle handle) 791public static implicit operator EntityHandle(TypeSpecificationHandle handle) 806public static explicit operator TypeSpecificationHandle(EntityHandle handle) 874public static implicit operator EntityHandle(MemberReferenceHandle handle) 889public static explicit operator MemberReferenceHandle(EntityHandle handle) 957public static implicit operator EntityHandle(FieldDefinitionHandle handle) 972public static explicit operator FieldDefinitionHandle(EntityHandle handle) 1040public static implicit operator EntityHandle(EventDefinitionHandle handle) 1055public static explicit operator EventDefinitionHandle(EntityHandle handle) 1123public static implicit operator EntityHandle(PropertyDefinitionHandle handle) 1138public static explicit operator PropertyDefinitionHandle(EntityHandle handle) 1206public static implicit operator EntityHandle(StandaloneSignatureHandle handle) 1221public static explicit operator StandaloneSignatureHandle(EntityHandle handle) 1289public static implicit operator EntityHandle(ParameterHandle handle) 1304public static explicit operator ParameterHandle(EntityHandle handle) 1372public static implicit operator EntityHandle(GenericParameterHandle handle) 1387public static explicit operator GenericParameterHandle(EntityHandle handle) 1455public static implicit operator EntityHandle(GenericParameterConstraintHandle handle) 1470public static explicit operator GenericParameterConstraintHandle(EntityHandle handle) 1538public static implicit operator EntityHandle(ModuleReferenceHandle handle) 1553public static explicit operator ModuleReferenceHandle(EntityHandle handle) 1644public static implicit operator EntityHandle(AssemblyReferenceHandle handle) 1659public static explicit operator AssemblyReferenceHandle(EntityHandle handle) 1739public static implicit operator EntityHandle(CustomAttributeHandle handle) 1754public static explicit operator CustomAttributeHandle(EntityHandle handle) 1822public static implicit operator EntityHandle(DeclarativeSecurityAttributeHandle handle) 1837public static explicit operator DeclarativeSecurityAttributeHandle(EntityHandle handle) 1905public static implicit operator EntityHandle(ConstantHandle handle) 1920public static explicit operator ConstantHandle(EntityHandle handle) 1988public static implicit operator EntityHandle(ManifestResourceHandle handle) 2003public static explicit operator ManifestResourceHandle(EntityHandle handle) 2071public static implicit operator EntityHandle(AssemblyFileHandle handle) 2086public static explicit operator AssemblyFileHandle(EntityHandle handle)
System\Reflection\Metadata\TypeSystem\InterfaceImplementation.cs (1)
34public EntityHandle Interface
System\Reflection\Metadata\TypeSystem\ManifestResource.cs (1)
71public EntityHandle Implementation
System\Reflection\Metadata\TypeSystem\MemberReference.cs (2)
43public EntityHandle Parent 123private EntityHandle GetProjectedParent()
System\Reflection\Metadata\TypeSystem\MethodImplementation.cs (2)
37public EntityHandle MethodBody 45public EntityHandle MethodDeclaration
System\Reflection\Metadata\TypeSystem\MethodSpecification.cs (1)
34public EntityHandle Method
System\Reflection\Metadata\TypeSystem\ModuleDefinition.cs (1)
60return new CustomAttributeHandleCollection(_reader, EntityHandle.ModuleDefinition);
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (2)
111public EntityHandle BaseType 292private EntityHandle GetProjectedBaseType()
System\Reflection\Metadata\TypeSystem\TypeReference.cs (3)
48/// <item><description><see cref="EntityHandle.ModuleDefinition"/>, if the target type is defined in the current module. This should not occur in a CLI compressed metadata module.</description></item> 53public EntityHandle ResolutionScope 100private EntityHandle GetProjectedResolutionScope()
System.Reflection.MetadataLoadContext (24)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.cs (1)
90EntityHandle implementation = exportedType.Implementation;
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (2)
50EntityHandle declaringTypeHandle = CustomAttribute.TryGetDeclaringTypeHandle(Reader); 59EntityHandle ctorHandle = CustomAttribute.Constructor;
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (4)
49EntityHandle declaringTypeHandle = ca.TryGetDeclaringTypeHandle(reader); 59public static bool TypeMatchesNameAndNamespace(this EntityHandle handle, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, MetadataReader reader) 80public static EntityHandle TryGetDeclaringTypeHandle(this in CustomAttribute ca, MetadataReader reader) 82EntityHandle ctorHandle = ca.Constructor;
System\Reflection\TypeLoading\General\Ecma\EcmaDefaultValueProcessing.cs (1)
86EntityHandle declaringTypeHandle = ca.TryGetDeclaringTypeHandle(reader);
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (7)
14public static RoType ResolveTypeDefRefOrSpec(this EntityHandle handle, EcmaModule module, in TypeContext typeContext) 36private static readonly Func<EntityHandle, EcmaModule, EcmaDefinitionType> s_resolveTypeDef = 47private static readonly Func<EntityHandle, EcmaModule, RoDefinitionType> s_resolveTypeRef = 57EntityHandle scope = tr.ResolutionScope; 134private static readonly Func<EntityHandle, EcmaModule, EcmaGenericParameterType> s_resolveGenericParam = 135(EntityHandle h, EcmaModule module) => 173private static readonly Func<EntityHandle, EcmaModule, RoAssembly> s_resolveAssembly =
System\Reflection\TypeLoading\General\Ecma\EcmaToStringHelpers.cs (1)
19public static string ToTypeString(this EntityHandle handle, in TypeContext typeContext, MetadataReader reader)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (3)
21public static CustomAttributeHandleCollection GetCustomAttributes(this EntityHandle handle, MetadataReader reader) => reader.GetCustomAttributes(handle); 23public static CustomDebugInformationHandleCollection GetCustomDebugInformation(this EntityHandle handle, MetadataReader reader) => reader.GetCustomDebugInformation(handle); 60public static int GetToken(this EntityHandle handle) => MetadataTokens.GetToken(handle);
System\Reflection\TypeLoading\General\Ecma\MetadataTable.cs (2)
29public T GetOrAdd(EntityHandle handle, C context, Func<EntityHandle, C, T> factory)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodBody.cs (1)
67EntityHandle catchTypeHandle = regions[i].CatchType;
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.GetTypeCore.cs (1)
48EntityHandle implementation = et.Implementation;
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (1)
54EntityHandle baseTypeHandle = TypeDefinition.BaseType;