IFieldDefinition

Overview

Field definition interface. This interface is used to modify existing fields (both static and instance) on a type. The initialValue property can only be set from the HandleInterface methods in the aspect interfaces.

Location


Properties


InitialValue

Gets or sets the initial value for this field

 

property InitialValue: Value read write;

 

Value InitialValue { get; set; }

 

var InitialValue: Value { get{} set{} }

 

Value InitialValue { __get; __set; }

 

Property InitialValue() As Value

ReadOnly

Gets or sets if this field is writable outside constructors

 

property ReadOnly: Boolean read write;

 

Boolean ReadOnly { get; set; }

 

var ReadOnly: Boolean { get{} set{} }

 

Boolean ReadOnly { __get; __set; }

 

Property ReadOnly() As Boolean

Type

Gets or sets the type of this field

 

property Type: IType read write;

 

IType Type { get; set; }

 

var Type: IType { get{} set{} }

 

IType Type { __get; __set; }

 

Property Type() As IType

Volatile

Gets or sets if this field should be treated as accessed from multiple threads (avoids caching)

 

property Volatile: Boolean read write;

 

Boolean Volatile { get; set; }

 

var Volatile: Boolean { get{} set{} }

 

Boolean Volatile { __get; __set; }

 

Property Volatile() As Boolean