Table of Contents

Interface IFieldDescriptor

Namespace
AsmResolver.DotNet
Assembly
AsmResolver.DotNet.dll

Provides members for describing a field in a managed assembly.

public interface IFieldDescriptor : IMemberDescriptor, IFullNameProvider, INameProvider, IModuleProvider, IImportable, IMetadataMember
Inherited Members
Extension Methods

Properties

Name

Gets the name of the field.

Utf8String? Name { get; }

Property Value

Utf8String

Signature

Gets the signature of the field.

FieldSignature? Signature { get; }

Property Value

FieldSignature

Methods

ImportWith(ReferenceImporter)

Imports the field using the provided reference importer object.

IFieldDescriptor ImportWith(ReferenceImporter importer)

Parameters

importer ReferenceImporter

The reference importer to use.

Returns

IFieldDescriptor

The imported field.

Resolve(RuntimeContext?, out FieldDefinition?)

Attempts to resolve the field reference to its definition, assuming the provided module as resolution context.

ResolutionStatus Resolve(RuntimeContext? context, out FieldDefinition? definition)

Parameters

context RuntimeContext

The context to assume when resolving the field.

definition FieldDefinition

The resolved field definition, or null if the field could not be resolved.

Returns

ResolutionStatus

A value describing the success or failure status of the field resolution.