In This Article

IFieldDefinition Interface

Provides the base requirements of a field definition.

public interface IFieldDefinition : IReflectionDefinition

Properties

DeclaringModule

The reference to the module in which the field is declared.

IModuleReference? DeclaringModule { get; }

Property Value

IModuleReference

DeclaringType

The declaring type.

ITypeDefinition? DeclaringType { get; }

Property Value

ITypeDefinition

Docstring

The docstring for the field.

string? Docstring { get; }

Property Value

string

IsPublic

Indicates whether the field is public.

bool IsPublic { get; }

Property Value

bool

IsStatic

Indicates whether the field is static.

bool IsStatic { get; }

Property Value

bool

Type

An ITypeDefinition indicating the field type, if known.

ITypeDefinition? Type { get; }

Property Value

ITypeDefinition

TypeExpressionTextRange

The field type expression TextRange.

TextRange? TypeExpressionTextRange { get; }

Property Value

TextRange?

Inherited Members

Extension Methods