3 instantiations of FieldDefinitionHandle
System.Reflection.Metadata (3)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (3)
949return new FieldDefinitionHandle(rowId); 969return new FieldDefinitionHandle(handle.RowId); 979return new FieldDefinitionHandle(handle.RowId);
105 references to FieldDefinitionHandle
Microsoft.CodeAnalysis (19)
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
325protected override FieldDefinitionHandle GetFieldDefinitionHandle(IFieldDefinition def) 389protected override FieldDefinitionHandle GetFirstFieldDefinitionHandle(INamedTypeDefinition typeDef)
MetadataReader\MetadataDecoder.cs (4)
1830internal FieldInfo<TypeSymbol> DecodeFieldSignature(FieldDefinitionHandle fieldHandle) 2097protected abstract FieldSymbol FindFieldSymbolInType(TypeSymbol type, FieldDefinitionHandle fieldDef); 2205TypeDefinitionHandle typeDef = Module.FindContainingTypeOrThrow((FieldDefinitionHandle)token); 2298? FindFieldSymbolInType(container, (FieldDefinitionHandle)memberToken)
MetadataReader\ModuleExtensions.cs (1)
22public static bool ShouldImportField(this PEModule module, FieldDefinitionHandle field, MetadataImportOptions importOptions)
MetadataReader\PEModule.cs (8)
3349internal TypeDefinitionHandle FindContainingTypeOrThrow(FieldDefinitionHandle fieldDef) 3546public string GetFieldDefNameOrThrow(FieldDefinitionHandle fieldDef) 3552internal BlobHandle GetFieldSignatureOrThrow(FieldDefinitionHandle fieldDef) 3558public FieldAttributes GetFieldDefFlagsOrThrow(FieldDefinitionHandle fieldDef) 3565FieldDefinitionHandle fieldDef, 3592internal ConstantValue GetConstantFieldValue(FieldDefinitionHandle fieldDef) 3631MetadataReader.GetFieldDefinition((FieldDefinitionHandle)fieldOrParameterToken).GetMarshallingDescriptor() : 3677internal int? GetFieldOffset(FieldDefinitionHandle fieldDef)
PEWriter\FullMetadataWriter.cs (2)
162protected override FieldDefinitionHandle GetFieldDefinitionHandle(IFieldDefinition def) 220protected override FieldDefinitionHandle GetFirstFieldDefinitionHandle(INamedTypeDefinition typeDef)
PEWriter\MetadataWriter.cs (2)
204protected abstract FieldDefinitionHandle GetFieldDefinitionHandle(IFieldDefinition def); 267protected abstract FieldDefinitionHandle GetFirstFieldDefinitionHandle(INamedTypeDefinition typeDef);
Microsoft.CodeAnalysis.CSharp (13)
Symbols\Metadata\PE\MetadataDecoder.cs (1)
515protected override FieldSymbol FindFieldSymbolInType(TypeSymbol typeSymbol, FieldDefinitionHandle fieldDef)
Symbols\Metadata\PE\PEFieldSymbol.cs (4)
116private readonly FieldDefinitionHandle _handle; 137FieldDefinitionHandle fieldDef) 276internal FieldDefinitionHandle Handle 415private static FlowAnalysisAnnotations DecodeFlowAnalysisAttributes(PEModule module, FieldDefinitionHandle handle)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (8)
827foreach (var fieldDef in module.GetFieldsOfTypeOrThrow(_handle)) 919var fieldDefs = ArrayBuilder<FieldDefinitionHandle>.GetInstance(); 923foreach (var fieldDef in module.GetFieldsOfTypeOrThrow(_handle)) 1022var handleToFieldMap = new SmallDictionary<FieldDefinitionHandle, FieldSymbol>(); 1043foreach (var handle in this.ContainingPEModule.Module.GetFieldsOfTypeOrThrow(_handle)) 1210foreach (var fieldDef in module.GetFieldsOfTypeOrThrow(_handle)) 1294foreach (var fieldDef in module.GetFieldsOfTypeOrThrow(_handle)) 1948foreach (var fieldRid in module.GetFieldsOfTypeOrThrow(_handle))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_WellKnownAttributes.cs (2)
4740foreach (var fieldDef in metadataReader.FieldDefinitions) 4848foreach (var fieldDef in metadataReader.FieldDefinitions)
Microsoft.CodeAnalysis.Features (2)
PdbSourceDocument\SymbolSourceDocumentFinder.cs (2)
27ProcessFieldDef((FieldDefinitionHandle)handle, dllReader, pdbReader, docList); 117private static void ProcessFieldDef(FieldDefinitionHandle fieldDefHandle, MetadataReader dllReader, MetadataReader pdbReader, HashSet<DocumentHandle> docList)
Microsoft.CodeAnalysis.Test.Utilities (2)
Metadata\MetadataReaderUtils.cs (1)
372FieldDefinition field = reader.GetFieldDefinition((FieldDefinitionHandle)handle);
Metadata\MetadataValidation.cs (1)
80foreach (var fieldDef in metadataReader.FieldDefinitions)
Microsoft.CodeAnalysis.VisualBasic (4)
Symbols\Metadata\PE\MetadataDecoder.vb (1)
446Protected Overrides Function FindFieldSymbolInType(typeSymbol As TypeSymbol, fieldDef As FieldDefinitionHandle) As FieldSymbol
Symbols\Metadata\PE\PEFieldSymbol.vb (3)
36Private ReadOnly _handle As FieldDefinitionHandle 52handle As FieldDefinitionHandle 456Friend ReadOnly Property Handle As FieldDefinitionHandle
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\FieldInitializerBindingTests.vb (2)
904Dim field = reader.GetFieldDefinition(CType(constant.Parent, FieldDefinitionHandle)) 972Dim field = reader.GetFieldDefinition(CType(constant.Parent, FieldDefinitionHandle))
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
431foreach (var handle in metadataReader.FieldDefinitions)
System.Reflection.Emit (4)
System\Reflection\Emit\FieldBuilderImpl.cs (1)
26internal FieldDefinitionHandle _handle;
System\Reflection\Emit\ModuleBuilderImpl.cs (3)
637FieldDefinitionHandle handle = AddFieldDefinition(field, 927private FieldDefinitionHandle AddFieldDefinition(FieldBuilderImpl field, BlobBuilder fieldSignature) => 974private void AddFieldLayout(FieldDefinitionHandle fieldHandle, int offset) =>
System.Reflection.Metadata (50)
System\Reflection\Metadata\Ecma335\CodedIndex.cs (4)
13/// <see cref="FieldDefinitionHandle"/>, 41/// <param name="handle"><see cref="ParameterHandle"/>, <see cref="FieldDefinitionHandle"/>, or <see cref="PropertyDefinitionHandle"/></param> 62/// <param name="handle"><see cref = "ParameterHandle" /> or <see cref="FieldDefinitionHandle"/></param> 140/// <see cref="FieldDefinitionHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (9)
465FieldDefinitionHandle fieldList, 659/// <param name="parent"><see cref="ParameterHandle"/>, <see cref="FieldDefinitionHandle"/>, or <see cref="PropertyDefinitionHandle"/></param> 715/// <see cref="FieldDefinitionHandle"/>, 879public FieldDefinitionHandle AddFieldDefinition( 891return FieldDefinitionHandle.FromRowId(_fieldTable.Count); 903FieldDefinitionHandle field, 916/// <param name="parent"><see cref="ParameterHandle"/> or <see cref="FieldDefinitionHandle"/>.</param> 952public void AddFieldRelativeVirtualAddress(FieldDefinitionHandle field, int offset) 1372/// <see cref="FieldDefinitionHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (2)
390public static FieldDefinitionHandle FieldDefinitionHandle(int rowNumber) 392return Metadata.FieldDefinitionHandle.FromRowId(ToRowId(rowNumber));
System\Reflection\Metadata\Internal\Tables.cs (8)
308internal FieldDefinitionHandle GetFieldFor(int rowId) 311return FieldDefinitionHandle.FromRowId(this.Block.PeekReference(rowOffset + _FieldOffset, _IsFieldTableRowRefSizeSmall)); 349internal StringHandle GetName(FieldDefinitionHandle handle) 355internal FieldAttributes GetFlags(FieldDefinitionHandle handle) 361internal BlobHandle GetSignature(FieldDefinitionHandle handle) 1106internal int FindFieldLayoutRowId(FieldDefinitionHandle handle) 1125internal FieldDefinitionHandle GetField(int rowId) 1128return FieldDefinitionHandle.FromRowId(this.Block.PeekReference(rowOffset + _FieldOffset, _IsFieldTableRowRefSizeSmall));
System\Reflection\Metadata\MetadataReader.cs (3)
1224public FieldDefinition GetFieldDefinition(FieldDefinitionHandle handle) 1230private uint GetFieldDefTreatmentAndRowId(FieldDefinitionHandle handle) 1338internal TypeDefinitionHandle GetDeclaringType(FieldDefinitionHandle fieldDef)
System\Reflection\Metadata\MetadataReader.WinMD.cs (1)
541private uint CalculateFieldDefTreatmentAndRowId(FieldDefinitionHandle handle)
System\Reflection\Metadata\TypeSystem\Constant.cs (1)
61/// The parent handle (<see cref="ParameterHandle"/>, <see cref="FieldDefinitionHandle"/>, or <see cref="PropertyDefinitionHandle"/>).
System\Reflection\Metadata\TypeSystem\FieldDefinition.cs (2)
35private FieldDefinitionHandle Handle 37get { return FieldDefinitionHandle.FromRowId(RowId); }
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (7)
575public readonly struct FieldDefinitionHandleCollection : IReadOnlyCollection<FieldDefinitionHandle> 612IEnumerator<FieldDefinitionHandle> IEnumerable<FieldDefinitionHandle>.GetEnumerator() 622public struct Enumerator : IEnumerator<FieldDefinitionHandle>, IEnumerator 641public FieldDefinitionHandle Current 653return FieldDefinitionHandle.FromRowId((int)(_currentRowId & TokenTypeIds.RIDMask)); 658private FieldDefinitionHandle GetCurrentFieldIndirect()
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (13)
935public readonly struct FieldDefinitionHandle : IEquatable<FieldDefinitionHandle> 947internal static FieldDefinitionHandle FromRowId(int rowId) 952public static implicit operator Handle(FieldDefinitionHandle handle) 957public static implicit operator EntityHandle(FieldDefinitionHandle handle) 962public static explicit operator FieldDefinitionHandle(Handle handle) 972public static explicit operator FieldDefinitionHandle(EntityHandle handle) 992public static bool operator ==(FieldDefinitionHandle left, FieldDefinitionHandle right) 999return obj is FieldDefinitionHandle && ((FieldDefinitionHandle)obj)._rowId == _rowId; 1002public bool Equals(FieldDefinitionHandle other) 1012public static bool operator !=(FieldDefinitionHandle left, FieldDefinitionHandle right)
System.Reflection.MetadataLoadContext (6)
System\Reflection\TypeLoading\Fields\Ecma\EcmaField.cs (2)
18private readonly FieldDefinitionHandle _handle; 20internal EcmaField(RoInstantiationProviderType declaringType, FieldDefinitionHandle handle, Type reflectedType)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (2)
28public static FieldDefinition GetFieldDefinition(this FieldDefinitionHandle handle, MetadataReader reader) => reader.GetFieldDefinition(handle); 66public static int GetToken(this FieldDefinitionHandle handle) => MetadataTokens.GetToken(handle);
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.BindingFlags.cs (1)
59foreach (FieldDefinitionHandle handle in TypeDefinition.GetFields())
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (1)
112foreach (FieldDefinitionHandle handle in TypeDefinition.GetFields())