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));
789 references to EntityHandle
Crossgen2Tasks (2)
PrepareForReadyToRunCompilation.cs (2)
525EntityHandle attributeCtor = mdReader.GetCustomAttribute(attributeHandle).Constructor; 532EntityHandle attributeMemberParent = mdReader.GetMemberReference((MemberReferenceHandle)attributeCtor).Parent;
dotnet-sourcelink (3)
ILAssembler (18)
EntityRegistry.cs (18)
322EntityHandle parent = customAttr.Owner switch 324AssemblyEntity => EntityHandle.AssemblyDefinition, 325ModuleEntity => EntityHandle.ModuleDefinition, 475static EntityHandle GetHandleForList(IReadOnlyList<EntityBase> list, IReadOnlyList<EntityBase> listOwner, Func<EntityBase, IReadOnlyList<EntityBase>> getList, int ownerIndex, TableIndex tokenType) 580EntityHandle Handle { get; } 581void SetHandle(EntityHandle token); 668public EntityBase ResolveHandleToEntity(EntityHandle entityHandle) 798public BlobOrHandle(EntityHandle handle, bool handleIsValueType) 806public EntityHandle Handle { get; } 1120public EntityHandle Handle { get; private set; } 1122protected virtual void SetHandle(EntityHandle token) 1127void IHasHandle.SetHandle(EntityHandle token) => SetHandle(token); 1145public FakeTypeEntity(EntityHandle realEntity) 1158public EntityHandle TypeColumnHandle { get; } 1164public EntityHandle ResolutionScopeColumnHandle { get; } 1170public EntityHandle TypeSignatureHandle { get; } 1176public EntityHandle ImplementationHandle { get; } 1362protected override void SetHandle(EntityHandle token)
ILCompiler.Compiler (35)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (4)
372EntityHandle accessedType = MetadataTokens.EntityHandle(reader.ReadILToken()); 390EntityHandle accessedField = MetadataTokens.EntityHandle(reader.ReadILToken()); 405EntityHandle accessedMethod = MetadataTokens.EntityHandle(reader.ReadILToken()); 421EntityHandle accessedEntity = MetadataTokens.EntityHandle(reader.ReadILToken());
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (2)
306foreach (CustomAttributeHandle attrHandle in currentAssembly.MetadataReader.GetCustomAttributes(EntityHandle.AssemblyDefinition)) 310if (!MetadataExtensions.GetAttributeTypeAndConstructor(currentAssembly.MetadataReader, attrHandle, out EntityHandle attributeType, out _))
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (29)
25private Dictionary<TypeDesc, EntityHandle> _typeRefs = new Dictionary<TypeDesc, EntityHandle>(); 26private Dictionary<MethodDesc, EntityHandle> _methodRefs = new Dictionary<MethodDesc, EntityHandle>(); 27private Dictionary<FieldDesc, EntityHandle> _fieldRefs = new Dictionary<FieldDesc, EntityHandle>(); 52baseType: default(EntityHandle), 163public EntityHandle EmitMetadataHandleForTypeSystemEntity(TypeSystemEntity entity) 178public IEnumerable<KeyValuePair<TypeSystemEntity, EntityHandle>> TypeSystemEntitiesKnown 184yield return new KeyValuePair<TypeSystemEntity, EntityHandle>(item.Key, item.Value); 189yield return new KeyValuePair<TypeSystemEntity, EntityHandle>(item.Key, item.Value); 194yield return new KeyValuePair<TypeSystemEntity, EntityHandle>(item.Key, item.Value); 199protected virtual EntityHandle GetNonNestedResolutionScope(MetadataType metadataType) 204public EntityHandle GetTypeRef(TypeDesc type) 206if (_typeRefs.TryGetValue(type, out var handle)) 211EntityHandle typeHandle; 218EntityHandle resolutionScope; 289public EntityHandle GetStandaloneSig(MethodSignature sig) 295public EntityHandle GetMethodRef(MethodDesc method) 297if (_methodRefs.TryGetValue(method, out var handle)) 302EntityHandle methodHandle; 306EntityHandle uninstantiatedHandle = GetMethodRef(method.GetMethodDefinition()); 318EntityHandle typeHandle = GetTypeRef(method.OwningType); 330public EntityHandle GetFieldRef(FieldDesc field) 332if (_fieldRefs.TryGetValue(field, out var handle)) 337EntityHandle fieldHandle; 339EntityHandle typeHandle = GetTypeRef(field.OwningType); 612EntityHandle handle = _metadataEmitter.GetTypeRef((MetadataType)_embeddedData[_embeddedDataIndex].type); 620EntityHandle handle = _metadataEmitter.GetTypeRef((MetadataType)_embeddedData[_embeddedDataIndex].type);
ILCompiler.ReadyToRun (68)
Compiler\DependencyAnalysis\ReadyToRun\AttributePresenceFilterNode.cs (6)
50EntityHandle customAttributeConstructorHandle = customAttribute.Constructor; 107private EntityHandle _firstTypeHandle; 109public EntityHandle FirstTypeHandle => _firstTypeHandle; 209private void ReadCustomAttributeTypeNameWithoutResolving(EntityHandle customAttributeConstructorHandle, out string customAttributeTypeNamespace, out string customAttributeTypeName) 231EntityHandle customAttributeConstructorReferenceParentHandle = customAttributeConstructorReference.Parent; 244EntityHandle firstTypeHandle = fakeSignatureTypeProvider.FirstTypeHandle;
Compiler\DependencyAnalysis\ReadyToRun\CopiedMetadataBlobNode.cs (2)
62var methodDefHandle = MetadataTokens.EntityHandle(TableIndex.MethodDef, i); 96EntityHandle fieldHandle = MetadataTokens.EntityHandle(TableIndex.Field, fieldToken);
Compiler\DependencyAnalysis\ReadyToRun\ModuleToken.cs (1)
28public ModuleToken(IEcmaModule module, EntityHandle entityHandle)
Compiler\DependencyAnalysis\ReadyToRun\ModuleTokenResolver.cs (2)
176EntityHandle owningTypeHandle = memberRef.Parent; 276EntityHandle owningTypeHandle = memberRef.Parent;
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (7)
88EntityHandle valueTypeHandle, 146EntityHandle valueTypeHandle, 294EntityHandle valueTypeHandle; 372EntityHandle valueTypeHandle; 449private static bool IsTypeByRefLike(EntityHandle typeDefHandle, MetadataReader metadataReader) 469out EntityHandle valueTypeHandle) 479valueTypeHandle = default(EntityHandle);
Compiler\ReadyToRunStandaloneMethodMetadata.cs (4)
217Dictionary<TypeDesc, EntityHandle> _alternateTypeRefTokens = new Dictionary<TypeDesc, EntityHandle>(); 218public EntityHandle GetTypeDefOrRefHandleForTypeDesc(TypeDesc type) 220if (_alternateTypeRefTokens.TryGetValue(type, out EntityHandle result))
JitInterface\CorInfoImpl.ReadyToRun.cs (2)
206static TypeDesc HandleContext(IEcmaModule module, EntityHandle handle, TypeDesc methodTargetOwner, TypeDesc constrainedType, TypeSystemEntity genericContextObject, TypeDesc devirtualizedMethodOwner, ref bool owningTypeNotDerivedFromToken) 854EntityHandle? handle = _compilation.NodeFactory.ManifestMetadataTable._mutableModule.TryGetExistingEntityHandle(ecmaMethod);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (4)
372EntityHandle accessedType = MetadataTokens.EntityHandle(reader.ReadILToken()); 390EntityHandle accessedField = MetadataTokens.EntityHandle(reader.ReadILToken()); 405EntityHandle accessedMethod = MetadataTokens.EntityHandle(reader.ReadILToken()); 421EntityHandle accessedEntity = MetadataTokens.EntityHandle(reader.ReadILToken());
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (2)
306foreach (CustomAttributeHandle attrHandle in currentAssembly.MetadataReader.GetCustomAttributes(EntityHandle.AssemblyDefinition)) 310if (!MetadataExtensions.GetAttributeTypeAndConstructor(currentAssembly.MetadataReader, attrHandle, out EntityHandle attributeType, out _))
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (29)
25private Dictionary<TypeDesc, EntityHandle> _typeRefs = new Dictionary<TypeDesc, EntityHandle>(); 26private Dictionary<MethodDesc, EntityHandle> _methodRefs = new Dictionary<MethodDesc, EntityHandle>(); 27private Dictionary<FieldDesc, EntityHandle> _fieldRefs = new Dictionary<FieldDesc, EntityHandle>(); 52baseType: default(EntityHandle), 163public EntityHandle EmitMetadataHandleForTypeSystemEntity(TypeSystemEntity entity) 178public IEnumerable<KeyValuePair<TypeSystemEntity, EntityHandle>> TypeSystemEntitiesKnown 184yield return new KeyValuePair<TypeSystemEntity, EntityHandle>(item.Key, item.Value); 189yield return new KeyValuePair<TypeSystemEntity, EntityHandle>(item.Key, item.Value); 194yield return new KeyValuePair<TypeSystemEntity, EntityHandle>(item.Key, item.Value); 199protected virtual EntityHandle GetNonNestedResolutionScope(MetadataType metadataType) 204public EntityHandle GetTypeRef(TypeDesc type) 206if (_typeRefs.TryGetValue(type, out var handle)) 211EntityHandle typeHandle; 218EntityHandle resolutionScope; 289public EntityHandle GetStandaloneSig(MethodSignature sig) 295public EntityHandle GetMethodRef(MethodDesc method) 297if (_methodRefs.TryGetValue(method, out var handle)) 302EntityHandle methodHandle; 306EntityHandle uninstantiatedHandle = GetMethodRef(method.GetMethodDefinition()); 318EntityHandle typeHandle = GetTypeRef(method.OwningType); 330public EntityHandle GetFieldRef(FieldDesc field) 332if (_fieldRefs.TryGetValue(field, out var handle)) 337EntityHandle fieldHandle; 339EntityHandle typeHandle = GetTypeRef(field.OwningType); 612EntityHandle handle = _metadataEmitter.GetTypeRef((MetadataType)_embeddedData[_embeddedDataIndex].type); 620EntityHandle handle = _metadataEmitter.GetTypeRef((MetadataType)_embeddedData[_embeddedDataIndex].type);
TypeSystem\Mutable\MutableModule.cs (9)
22Dictionary<ModuleDesc, EntityHandle> _moduleRefs = new Dictionary<ModuleDesc, EntityHandle>(); 28protected override EntityHandle GetNonNestedResolutionScope(MetadataType metadataType) 32EntityHandle result; 111var resolutionScope = reader.GetTypeReference(typeRefHandle).ResolutionScope; 328public EntityHandle? TryGetEntityHandle(TypeSystemEntity tse) 336public EntityHandle? TryGetExistingEntityHandle(TypeSystemEntity tse) 375public object GetObject(EntityHandle handle, NotFoundBehavior notFoundBehavior = NotFoundBehavior.Throw) 407public TypeDesc GetType(EntityHandle handle)
ILCompiler.TypeSystem (37)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaField.cs (1)
47EntityHandle EcmaModule.IEntityHandleObject.Handle
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaMethod.cs (1)
56EntityHandle EcmaModule.IEntityHandleObject.Handle
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaModule.cs (17)
25EntityHandle Handle 33private readonly EntityHandle _handle; 36public EcmaObjectLookupWrapper(EntityHandle handle, object obj) 42public EntityHandle Handle 59internal sealed class EcmaObjectLookupHashtable : LockFreeReaderHashtable<EntityHandle, IEntityHandleObject> 68protected override int GetKeyHashCode(EntityHandle key) 78protected override bool CompareKeyToValue(EntityHandle key, IEntityHandleObject value) 91protected override IEntityHandleObject CreateValueFromKey(EntityHandle handle) 184private readonly LockFreeReaderHashtable<EntityHandle, IEntityHandleObject> _resolvedTokens; 258EntityHandle handle = MetadataTokens.EntityHandle(entryPointToken); 453public TypeDesc GetType(EntityHandle handle) 463return (EcmaType)GetType((EntityHandle)handle); 466public MethodDesc GetMethod(EntityHandle handle) 476return (EcmaMethod)GetMethod((EntityHandle)handle); 479public FieldDesc GetField(EntityHandle handle) 489return (EcmaField)GetField((EntityHandle)handle); 512public object GetObject(EntityHandle handle, NotFoundBehavior notFoundBehavior = NotFoundBehavior.Throw)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaSignatureEncoder.cs (1)
15EntityHandle GetTypeDefOrRefHandleForTypeDesc(TypeDesc type);
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaSignatureParser.cs (5)
15private Func<EntityHandle, NotFoundBehavior, TypeDesc> _typeResolver; 25public EcmaSignatureParser(TypeSystemContext tsc, Func<EntityHandle, NotFoundBehavior, TypeDesc> typeResolver, BlobReader reader, NotFoundBehavior notFoundBehavior) 56private TypeDesc ResolveHandle(EntityHandle handle) 278EntityHandle typeHandle = _reader.ReadTypeHandle(); 285EntityHandle typeHandle = _reader.ReadTypeHandle();
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.cs (2)
66EntityHandle EcmaModule.IEntityHandleObject.Handle 138var baseTypeHandle = _typeDefinition.BaseType;
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.MethodImpls.cs (3)
25EntityHandle methodDeclCheckHandle = methodImpl.MethodDeclaration; 69EntityHandle methodDeclCheckHandle = methodImpl.MethodDeclaration; 89EntityHandle owningTypeHandle = metadataReader.GetMemberReference((MemberReferenceHandle)methodDeclCheckHandle).Parent;
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\IEcmaModule.cs (2)
45TypeDesc GetType(EntityHandle handle); 46object GetObject(EntityHandle handle, NotFoundBehavior notFoundBehavior = NotFoundBehavior.Throw);
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\MetadataExtensions.cs (5)
141EntityHandle attributeType; 153out EntityHandle attributeType, out EntityHandle attributeCtor) 170attributeType = default(EntityHandle); 175public static bool GetAttributeTypeNamespaceAndName(this MetadataReader metadataReader, EntityHandle attributeType,
Microsoft.Build.Tasks.Core (4)
AssemblyDependency\AssemblyInformation.cs (2)
558var ctorHandle = attr.Constructor; 564var container = metadataReader.GetMemberReference((MemberReferenceHandle)ctorHandle).Parent;
ManifestUtil\MetadataReader.cs (2)
93EntityHandle ctorHandle = _reader.GetCustomAttribute(handle).Constructor; 99EntityHandle mHandle = _reader.GetMemberReference((MemberReferenceHandle)ctorHandle).Parent;
Microsoft.CodeAnalysis (195)
Emit\EditAndContinue\DefinitionMap.cs (1)
125internal EntityHandle GetInitialMetadataHandle(Cci.IDefinition def)
Emit\EditAndContinue\DeltaMetadataWriter.cs (20)
52private readonly Dictionary<EntityHandle, ImmutableArray<int>> _customAttributesAdded; 56private readonly List<(EntityHandle parentHandle, IEnumerator<ICustomAttribute> attributeEnumerator)> _deferredCustomAttributes = new(); 114_customAttributesAdded = new Dictionary<EntityHandle, ImmutableArray<int>>(); 987protected override void AddCustomAttributesToTable(EntityHandle parentHandle, IEnumerable<ICustomAttribute> attributes) 1107void addWithCap(EntityHandle parentHandle, IEnumerator<ICustomAttribute> attributeEnumerator, int limit) 1122var deletedParentHandle = MetadataTokens.EntityHandle(parentTableIndex, 0); 1123var deletedMemberRefHandle = MetadataTokens.EntityHandle(TableIndex.MemberRef, 0); 1308var tokens = ArrayBuilder<EntityHandle>.GetInstance(); 1374foreach (var token in tokens) 1385var debugTokens = ArrayBuilder<EntityHandle>.GetInstance(); 1392foreach (var token in debugTokens) 1452ArrayBuilder<EntityHandle> builder, 1460private static void AddReferencedTokens(ArrayBuilder<EntityHandle> tokens, TableIndex tableIndex, int firstRowId, int nTokens) 1468private static void AddDefinitionTokens<T>(ArrayBuilder<EntityHandle> tokens, TableIndex tableIndex, DefinitionIndex<T> index) 1477private static void AddRowNumberTokens(ArrayBuilder<EntityHandle> tokens, TableIndex tableIndex, ArrayBuilder<int> rowNumbers) 1673var handle = _definitionMap.GetInitialMetadataHandle(item); 1685var handle = _definitionMap.GetInitialMetadataHandle(item); 1697var handle = _definitionMap.GetInitialMetadataHandle(item); 1716var handle = _definitionMap.GetInitialMetadataHandle(item); 1728var handle = _definitionMap.GetInitialMetadataHandle(item);
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)
86internal EntityHandle Handle 90return EntityHandle.AssemblyDefinition;
MetadataReader\PEModule.cs (95)
416HashSet<EntityHandle> nameTokens = new HashSet<EntityHandle>(); 420EntityHandle scope = typeRef.ResolutionScope; 427foreach (var token in nameTokens) 565public EntityHandle GetTypeDefExtendsOrThrow(TypeDefinitionHandle typeDef) 594out EntityHandle extends) 939internal EntityHandle GetBaseTypeOfTypeOrThrow(TypeDefinitionHandle typeDef) 1006internal bool HasParamArrayAttribute(EntityHandle token) 1011internal bool HasParamCollectionAttribute(EntityHandle token) 1016internal bool HasIsReadOnlyAttribute(EntityHandle token) 1021internal bool HasDoesNotReturnAttribute(EntityHandle token) 1026internal bool HasIsUnmanagedAttribute(EntityHandle token) 1031internal bool HasExtensionAttribute(EntityHandle token, bool ignoreCase) 1036internal bool HasVisualBasicEmbeddedAttribute(EntityHandle token) 1041internal bool HasCodeAnalysisEmbeddedAttribute(EntityHandle token) 1046internal bool HasCompilerLoweringPreserveAttribute(EntityHandle token) 1051internal bool HasInterpolatedStringHandlerAttribute(EntityHandle token) 1056internal bool HasDefaultMemberAttribute(EntityHandle token, out string memberName) 1061internal bool HasExtensionMarkerAttribute(EntityHandle token, out string markerName) 1066internal bool HasGuidAttribute(EntityHandle token, out string guidValue) 1071internal bool HasImportedFromTypeLibAttribute(EntityHandle token, out string libValue) 1076internal bool HasPrimaryInteropAssemblyAttribute(EntityHandle token, out int majorValue, out int minorValue) 1081internal bool HasFixedBufferAttribute(EntityHandle token, out string elementTypeName, out int bufferSize) 1086internal bool HasAccessedThroughPropertyAttribute(EntityHandle token, out string propertyName) 1091internal bool HasRequiredAttributeAttribute(EntityHandle token) 1096internal bool HasCollectionBuilderAttribute(EntityHandle token, out string builderTypeName, out string methodName) 1109internal bool HasAttribute(EntityHandle token, AttributeDescription description) 1114internal CustomAttributeHandle GetAttributeHandle(EntityHandle token, AttributeDescription description) 1121internal bool HasDynamicAttribute(EntityHandle token, out ImmutableArray<bool> transformFlags) 1141internal bool HasNativeIntegerAttribute(EntityHandle token, out ImmutableArray<bool> transformFlags) 1161internal bool HasScopedRefAttribute(EntityHandle token) 1166internal bool HasUnscopedRefAttribute(EntityHandle token) 1171internal bool HasRefSafetyRulesAttribute(EntityHandle token, out int version, out bool foundAttributeType) 1187internal bool HasMemorySafetyRulesAttribute(EntityHandle token, out int version, out bool foundAttributeType) 1221internal bool HasTupleElementNamesAttribute(EntityHandle token, out ImmutableArray<string> tupleElementNames) 1235internal bool HasIsByRefLikeAttribute(EntityHandle token) 1240internal bool HasRequiresLocationAttribute(EntityHandle token) 1250EntityHandle token, 1298/// <see cref="TryGetDeprecatedOrExperimentalOrObsoleteAttribute(EntityHandle, IAttributeNamedArgumentDecoder, bool, bool)"/> 1315internal ObsoleteAttributeData? TryDecodeExperimentalAttributeData(EntityHandle handle, IAttributeNamedArgumentDecoder decoder) 1388internal string? GetFirstUnsupportedCompilerFeatureFromToken(EntityHandle token, IAttributeNamedArgumentDecoder attributeNamedArgumentDecoder, CompilerFeatureRequiredFeatures allowedFeatures) 1445EntityHandle token, 1489internal (ImmutableArray<string?> Names, bool FoundAttribute) GetInterpolatedStringHandlerArgumentAttributeValues(EntityHandle token) 1516internal bool HasMaybeNullWhenOrNotNullWhenOrDoesNotReturnIfAttribute(EntityHandle token, AttributeDescription description, out bool when) 1532internal ImmutableHashSet<string> GetStringValuesOfNotNullIfNotNullAttribute(EntityHandle token) 1553internal bool HasAttributeUsageAttribute(EntityHandle token, IAttributeNamedArgumentDecoder attributeNamedArgumentDecoder, out AttributeUsageInfo usageInfo) 1601internal bool HasInterfaceTypeAttribute(EntityHandle token, out ComInterfaceType interfaceType) 1613internal bool HasTypeLibTypeAttribute(EntityHandle token, out Cci.TypeLibTypeFlags flags) 1625internal bool HasDateTimeConstantAttribute(EntityHandle token, out ConstantValue defaultValue) 1648internal bool HasDecimalConstantAttribute(EntityHandle token, out ConstantValue defaultValue) 1662internal bool HasNullablePublicOnlyAttribute(EntityHandle token, out bool includesInternals) 1678internal ImmutableArray<string> GetInternalsVisibleToAttributeValues(EntityHandle token) 1685internal ImmutableArray<string> GetConditionalAttributeValues(EntityHandle token) 1695internal ImmutableArray<string> GetMemberNotNullAttributeValues(EntityHandle token) 1735internal (ImmutableArray<string> whenTrue, ImmutableArray<string> whenFalse) GetMemberNotNullWhenAttributeValues(EntityHandle token) 2082internal bool HasStringValuedAttribute(EntityHandle token, AttributeDescription description, out string value) 2094private bool HasIntAndIntValuedAttribute(EntityHandle token, AttributeDescription description, out int value1, out int value2) 2107private bool HasStringAndIntValuedAttribute(EntityHandle token, AttributeDescription description, out string stringValue, out int intValue) 2529internal List<AttributeInfo>? FindTargetAttributes(EntityHandle hasAttribute, AttributeDescription description) 2557internal AttributeInfo FindTargetAttribute(EntityHandle hasAttribute, AttributeDescription description) 2562internal static AttributeInfo FindTargetAttribute(MetadataReader metadataReader, EntityHandle hasAttribute, AttributeDescription description, out bool foundAttributeType) 2589internal AttributeInfo FindLastTargetAttribute(EntityHandle hasAttribute, AttributeDescription description) 2612internal int GetParamArrayCountOrThrow(EntityHandle hasAttribute) 2761out EntityHandle ctor, 2782out EntityHandle ctor, 2788EntityHandle ctorType; 2854internal EntityHandle GetTypeRef( 2855EntityHandle resolutionScope, 2901out EntityHandle resolutionScope) 2946EntityHandle ctor; 2989EntityHandle token = sig.ReadTypeHandle(); 3070out EntityHandle ctorType, 3071out EntityHandle attributeCtor) 3084out EntityHandle ctorType, 3085out EntityHandle attributeCtor) 3089ctorType = default(EntityHandle); 3130ctorType = default(EntityHandle); 3131attributeCtor = default(EntityHandle); 3141internal bool GetAttributeNamespaceAndName(EntityHandle typeDefOrRef, out StringHandle namespaceHandle, out StringHandle nameHandle) 3151private static bool GetAttributeNamespaceAndName(MetadataReader metadataReader, EntityHandle typeDefOrRef, out StringHandle namespaceHandle, out StringHandle nameHandle) 3239internal bool HasNullableContextAttribute(EntityHandle token, out byte value) 3253internal bool HasNullableAttribute(EntityHandle token, out byte defaultTransform, out ImmutableArray<byte> nullableTransforms) 3274internal bool TryGetOverloadResolutionPriorityValue(EntityHandle token, out int decodedPriority) 3307internal void GetMethodSpecificationOrThrow(MethodSpecificationHandle handle, out EntityHandle method, out BlobHandle instantiation) 3352internal BlobHandle GetMethodSignatureOrThrow(EntityHandle methodDefOrRef) 3358private static BlobHandle GetMethodSignatureOrThrow(MetadataReader metadataReader, EntityHandle methodDefOrRef) 3392internal EntityHandle GetContainingTypeOrThrow(MemberReferenceHandle memberRef) 3416out EntityHandle body, 3417out EntityHandle declaration) 3490out EntityHandle @class, 3570out EntityHandle type) 3651public CustomAttributeHandleCollection GetCustomAttributesOrThrow(EntityHandle handle) 3665private BlobHandle GetMarshallingDescriptorHandleOrThrow(EntityHandle fieldOrParameterToken) 3672internal UnmanagedType GetMarshallingType(EntityHandle fieldOrParameterToken) 3695internal ImmutableArray<byte> GetMarshallingDescriptor(EntityHandle fieldOrParameterToken)
NativePdbWriter\PdbWriter.cs (1)
707EntityHandle handle = _metadataWriter.GetDefinitionHandle(definition.Definition);
PEWriter\MetadataWriter.cs (42)
422private EntityHandle[] _pseudoSymbolTokenToTokenMap; 464_pseudoSymbolTokenToTokenMap = new EntityHandle[referencesInIL.Length]; 723private EntityHandle GetCustomAttributeTypeCodedIndex(IMethodReference methodReference) 733? (EntityHandle)GetMethodDefinitionHandle(methodDef) 826internal EntityHandle GetFieldHandle(IFieldReference fieldReference) 836? (EntityHandle)GetFieldDefinitionHandle(fieldDef) 895private EntityHandle GetExportedTypeImplementation(INamespaceTypeReference namespaceRef) 906? (EntityHandle)GetAssemblyFileHandle(mref) 924internal EntityHandle GetMemberReferenceParent(ITypeMemberReference memberRef) 959? (EntityHandle)GetTypeSpecificationHandle(containingType) 963internal EntityHandle GetMethodDefinitionOrReferenceHandle(IMethodReference methodReference) 973? (EntityHandle)GetMethodDefinitionHandle(methodDef) 1162internal EntityHandle GetMethodHandle(IMethodReference methodReference) 1184? (EntityHandle)GetMethodSpecificationHandle(methodSpec) 1188internal EntityHandle GetStandaloneSignatureHandle(ISignature signature) 1294private EntityHandle GetResolutionScopeHandle(IUnitReference unitReference) 1584private EntityHandle GetDeclaringTypeOrMethodHandle(IGenericParameter genPar) 1666internal EntityHandle GetTypeHandle(ITypeReference typeReference, bool treatRefAsPotentialTypeSpec = true) 1676? (EntityHandle)GetTypeSpecificationHandle(typeReference) 1680internal EntityHandle GetDefinitionHandle(IDefinition definition) 1684ITypeDefinition typeDef => (EntityHandle)GetTypeDefinitionHandle(typeDef), 2068EntityHandle parentHandle = Handle.AssemblyDefinition; 2106AddCustomAttributesToTable(EntityHandle.ModuleDefinition, module.GetSourceModuleAttributes()); 2121var parentHandle = MetadataTokens.Handle(tableIndex, parentRowId++); 2126private void AddCustomAttributesToTable<T>(IEnumerable<T> parentList, Func<T, EntityHandle> getDefinitionHandle) 2131EntityHandle parentHandle = getDefinitionHandle(parent); 2136protected virtual void AddCustomAttributesToTable(EntityHandle parentHandle, IEnumerable<ICustomAttribute> attributes) 2144protected bool AddCustomAttributeToTable(EntityHandle parentHandle, ICustomAttribute customAttribute) 2164this.PopulateDeclSecurityTableRowsFor(EntityHandle.AssemblyDefinition, module.GetSourceAssemblySecurityAttributes()); 2188private void PopulateDeclSecurityTableRowsFor(EntityHandle parentHandle, IEnumerable<SecurityAttribute> attributes) 2250EntityHandle implementation; 2539implementation: default(EntityHandle), 2546EntityHandle implementation; 2555implementation = default(EntityHandle); 2837baseType: (baseType != null) ? GetTypeHandle(baseType) : default(EntityHandle), 2882EntityHandle resolutionScope; 3158private EntityHandle GetHandle(object reference) 3170private EntityHandle ResolveEntityHandleFromPseudoToken(int pseudoSymbolToken) 3187EntityHandle handle = GetHandle(entity); 3323var handle = ResolveEntityHandleFromPseudoToken(pseudoToken & 0x00ffffff); 3331var handle = ResolveEntityHandleFromPseudoToken(pseudoToken & 0x00ffffff); 3438(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,
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (2)
875public static bool TryGetCustomDebugInformation(this MetadataReader reader, EntityHandle handle, Guid kind, out CustomDebugInformation customDebugInfo) 905if (!pdbReader.TryGetCustomDebugInformation(EntityHandle.ModuleDefinition, PortableCustomDebugInfoKinds.CompilationOptions, out var customDebugInformation))
Microsoft.CodeAnalysis.CSharp (28)
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)
75EntityHandle eventType = default(EntityHandle);
Symbols\Metadata\PE\PEModuleSymbol.cs (9)
220private static EntityHandle Token 224return EntityHandle.ModuleDefinition; 268EntityHandle assemblyMSCorLib = Module.GetAssemblyRef(corlibName); 273EntityHandle typerefAssemblyAttributesGoHere = 306internal void LoadCustomAttributes(EntityHandle token, ref ImmutableArray<CSharpAttributeData> customAttributes) 312public bool TryGetNonEmptyCustomAttributes(EntityHandle handle, out CustomAttributeHandleCollection attributes) 329internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token) 337internal bool HasAnyCustomAttributes(EntityHandle token) 352internal TypeSymbol TryDecodeAttributeWithTypeArgument(EntityHandle handle, AttributeDescription attributeDescription)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (6)
799EntityHandle token = moduleSymbol.Module.GetBaseTypeOfTypeOrThrow(_handle); 828EntityHandle interfaceHandle = moduleSymbol.Module.MetadataReader.GetInterfaceImplementation(interfaceImpl).Interface; 1247var baseTypeHandle = typeDef.BaseType; 1266var baseTypeDefinitionHandle = sigReader.ReadTypeHandle(); 1285bool tryHandleTypeDefOrTypeRef(EntityHandle baseTypeHandle, TypeDefinitionHandle candidateTypeDefHandle) 1332else if (typeRef.ResolutionScope != EntityHandle.ModuleDefinition)
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.Features (7)
PdbSourceDocument\DocumentDebugInfoReader.cs (2)
36public ImmutableArray<SourceDocument> FindSourceDocuments(EntityHandle entityHandle) 70if (!_pdbReader.TryGetCustomDebugInformation(EntityHandle.ModuleDefinition, PortableCustomDebugInfoKinds.SourceLink, out var cdi) || cdi.Value.IsNil)
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
194EntityHandle lastAssemblyReferenceHandle = default;
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
112var handle = MetadataTokens.EntityHandle(symbolToFind.MetadataToken);
PdbSourceDocument\SymbolSourceDocumentFinder.cs (1)
14public static HashSet<DocumentHandle> FindDocumentHandles(EntityHandle handle, MetadataReader dllReader, MetadataReader pdbReader)
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (2)
875public static bool TryGetCustomDebugInformation(this MetadataReader reader, EntityHandle handle, Guid kind, out CustomDebugInformation customDebugInfo) 905if (!pdbReader.TryGetCustomDebugInformation(EntityHandle.ModuleDefinition, PortableCustomDebugInfoKinds.CompilationOptions, out var customDebugInformation))
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
434var blobs = 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)
260Dim token As EntityHandle = moduleSymbol.Module.GetBaseTypeOfTypeOrThrow(Me._handle) 286Dim 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.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)
730EntityHandle baseTypeOrInterfaceHandle) 765EntityHandle baseTypeOrInterfaceHandle, 768var typeDefOrRefHandle = GetTypeDefOrRefHandle(metadataReader, baseTypeOrInterfaceHandle); 861private static EntityHandle GetTypeDefOrRefHandle( 863EntityHandle baseTypeOrInterfaceHandle)
Microsoft.Diagnostics.DataContractReader.Contracts (5)
Contracts\ManagedTypeSource_1.cs (1)
268int token = MetadataTokens.GetToken((EntityHandle)typeDefHandle);
Contracts\RuntimeTypeSystem_1.cs (1)
2038EntityHandle entityHandle = MetadataTokens.EntityHandle((int)typeDefToken);
Contracts\Signature\RuntimeSignatureDecoder.cs (1)
282EntityHandle handle = blobReader.ReadTypeHandle();
Contracts\Signature\SignatureTypeProvider.cs (2)
76int token = MetadataTokens.GetToken((EntityHandle)handle); 84int token = MetadataTokens.GetToken((EntityHandle)handle);
Microsoft.Diagnostics.DataContractReader.Legacy (11)
ClrDataFrame.cs (1)
634private static bool IsEnumBaseType(MetadataReader mdReader, EntityHandle baseType)
MetaDataImportImpl.cs (8)
371EntityHandle owner = MetadataTokens.EntityHandle((int)tk); 433EntityHandle baseType = typeDef.BaseType; 484EntityHandle scope = typeRef.ResolutionScope; 963EntityHandle parent = MetadataTokens.EntityHandle((int)tkObj); 1031private string GetCustomAttributeTypeName(EntityHandle constructor) 1042EntityHandle parent = memberRef.Parent; 1893EntityHandle impl = exportedType.Implementation; 2001EntityHandle impl = exportedType.Implementation;
SigFormat.cs (1)
132EntityHandle handle = signature.ReadTypeHandle();
SOSDacImpl.cs (1)
1142EntityHandle entityHandle;
Microsoft.NET.Build.Tasks (2)
PrepareForReadyToRunCompilation.cs (2)
552EntityHandle attributeCtor = mdReader.GetCustomAttribute(attributeHandle).Constructor; 559EntityHandle attributeMemberParent = mdReader.GetMemberReference((MemberReferenceHandle)attributeCtor).Parent;
Microsoft.NET.HostModel (1)
ComHost\ClsidMap.cs (1)
81EntityHandle baseTypeEntity = definition.BaseType;
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; 680internal void WriteCustomAttributes(List<CustomAttributeWrapper>? customAttributes, EntityHandle parent) 692private EntityHandle GetTypeReferenceOrSpecificationHandle(Type type) 696if (!_typeReferences.TryGetValue(type, out var typeHandle)) 726private MethodSpecificationHandle AddMethodSpecification(EntityHandle methodHandle, Type[] genericArgs) => 733private EntityHandle GetMemberReferenceHandle(MemberInfo memberInfo) 735if (!_memberReferences.TryGetValue(memberInfo, out var memberHandle)) 782private EntityHandle GetMethodReference(MethodInfo methodInfo, Type[] optionalParameterTypes) 787if (!_memberReferences.TryGetValue(pair, out var memberHandle)) 860private void AddGenericTypeParametersAndConstraintsCustomAttributes(EntityHandle parentHandle, GenericTypeParameterBuilderImpl gParam) 875private void AddDefaultValue(EntityHandle parentHandle, object? defaultValue) 890private void AddMethodSemantics(EntityHandle parentHandle, MethodSemanticsAttributes attribute, MethodDefinitionHandle methodHandle) => 902private EventDefinitionHandle AddEventDefinition(EventBuilderImpl eventBuilder, EntityHandle eventType) => 924private TypeDefinitionHandle AddTypeDefinition(TypeBuilderImpl type, EntityHandle parent, int methodToken, int fieldToken) => 942private TypeReferenceHandle AddTypeReference(EntityHandle resolutionScope, string? ns, string name) => 948private MemberReferenceHandle AddMemberReference(string memberName, EntityHandle parent, BlobBuilder signature) => 968private void AddMarshalling(EntityHandle parent, BlobBuilder builder) => 987internal EntityHandle GetTypeHandle(Type type) 1006internal EntityHandle GetMemberHandle(MemberInfo member) 1063internal EntityHandle TryGetFieldHandle(FieldInfo field) 1073private static int GetTokenForHandle(EntityHandle handle) 1083private EntityHandle GetHandleForMember(MemberInfo member) 1141internal EntityHandle TryGetTypeHandle(Type type) 1163internal EntityHandle TryGetConstructorHandle(ConstructorInfo constructor) 1175internal EntityHandle TryGetMethodHandle(MethodInfo method) 1197internal EntityHandle TryGetMethodHandle(MethodInfo method, Type[] optionalParameterTypes)
System\Reflection\Emit\SignatureHelper.cs (1)
351EntityHandle 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)
1069public void Type(EntityHandle type, bool isValueType) 1127public GenericTypeArgumentsEncoder GenericInstantiation(EntityHandle genericType, int genericArgumentCount, bool isValueType) 1229public 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)
71public void Token(EntityHandle handle) 97public 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) 1309internal EntityHandle GetEventType(EventDefinitionHandle handle) 1519internal EntityHandle GetAssociation(int rowId) 1610internal EntityHandle GetMethodBody(MethodImplementationHandle handle) 1616internal EntityHandle GetMethodDeclaration(MethodImplementationHandle handle) 1762internal EntityHandle GetMemberForwarded(int rowId) 2279internal EntityHandle GetImplementation(int rowId) 2341internal EntityHandle GetImplementation(ManifestResourceHandle handle) 2480internal EntityHandle GetOwner(GenericParameterHandle handle) 2558internal EntityHandle GetMethod(MethodSpecificationHandle handle) 2630internal 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)
1173public CustomAttributeHandleCollection GetCustomAttributes(EntityHandle handle) 1417public 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)
21public 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)
61public EntityHandle Parent
System\Reflection\Metadata\TypeSystem\CustomAttribute.cs (2)
43public EntityHandle Constructor 57public EntityHandle Parent
System\Reflection\Metadata\TypeSystem\DeclarativeSecurityAttribute.cs (1)
29public EntityHandle Parent
System\Reflection\Metadata\TypeSystem\EventDefinition.cs (1)
43public EntityHandle Type
System\Reflection\Metadata\TypeSystem\ExportedType.cs (1)
76public EntityHandle Implementation
System\Reflection\Metadata\TypeSystem\GenericParameter.cs (1)
30public EntityHandle Parent
System\Reflection\Metadata\TypeSystem\GenericParameterConstraint.cs (1)
43public 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)
29public EntityHandle Interface
System\Reflection\Metadata\TypeSystem\ManifestResource.cs (1)
66public EntityHandle Implementation
System\Reflection\Metadata\TypeSystem\MemberReference.cs (2)
39public EntityHandle Parent 119private EntityHandle GetProjectedParent()
System\Reflection\Metadata\TypeSystem\MethodImplementation.cs (2)
32public EntityHandle MethodBody 40public EntityHandle MethodDeclaration
System\Reflection\Metadata\TypeSystem\MethodSpecification.cs (1)
30public EntityHandle Method
System\Reflection\Metadata\TypeSystem\ModuleDefinition.cs (1)
60return new CustomAttributeHandleCollection(_reader, EntityHandle.ModuleDefinition);
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (2)
107public EntityHandle BaseType 288private EntityHandle GetProjectedBaseType()
System\Reflection\Metadata\TypeSystem\TypeReference.cs (3)
45/// <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> 50public EntityHandle ResolutionScope 97private 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;