In This Article

IFieldDefinition Interface

Provides the base requirements of a field definition.

public interface IFieldDefinition : IReflectionDefinition

Properties

DeclaringModule

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

IModuleReference DeclaringModule { get; }

Property Value

IModuleReference:

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

DeclaringType

Gets the declaring type.

ITypeDefinition DeclaringType { get; }

Property Value

ITypeDefinition:

The declaring type.

Docstring

Gets the docstring for the field.

string Docstring { get; }

Property Value

string:

The docstring for the field.

IsPublic

Gets whether the field is public.

bool IsPublic { get; }

Property Value

bool:

true if the field is public; otherwise, false.

IsStatic

Gets whether the field is static.

bool IsStatic { get; }

Property Value

bool:

true if the field is static; otherwise, false.

Type

Gets a ITypeDefinition indicating the field type, if known.

ITypeDefinition Type { get; }

Property Value

ITypeDefinition:

A ITypeDefinition indicating the field type, if known.

TypeExpressionTextRange

Gets the field type expression TextRange.

TextRange TypeExpressionTextRange { get; }

Property Value

TextRange:

The field type expression TextRange.

Inherited Members