C# Class Yea.Reflection.Emit.FieldBuilder

Helper class for defining a field within a type
Inheritance: Yea.Reflection.Emit.BaseClasses.VariableBase
Show file Open project: OxPatient/Rule-Engine Class Usage Examples

Public Methods

Method Description
FieldBuilder ( TypeBuilder typeBuilder, string name, Type fieldType, FieldAttributes attributes ) : System

Constructor

GetDefinition ( ) : string

Gets the definition of the field

Load ( ILGenerator generator ) : void

Loads the field

Save ( ILGenerator generator ) : void

Saves the field

ToString ( ) : string

The field as a string

operator ( ) : FieldBuilder

Increments the field by one

Method Details

FieldBuilder() public method

Constructor
public FieldBuilder ( TypeBuilder typeBuilder, string name, Type fieldType, FieldAttributes attributes ) : System
typeBuilder TypeBuilder Type builder
name string Name of the method
fieldType System.Type Type for the field
attributes FieldAttributes Attributes for the field (public, private, etc.)
return System

GetDefinition() public method

Gets the definition of the field
public GetDefinition ( ) : string
return string

Load() public method

Loads the field
public Load ( ILGenerator generator ) : void
generator System.Reflection.Emit.ILGenerator IL Generator
return void

Save() public method

Saves the field
public Save ( ILGenerator generator ) : void
generator System.Reflection.Emit.ILGenerator IL Generator
return void

ToString() public method

The field as a string
public ToString ( ) : string
return string

operator() public static method

Increments the field by one
public static operator ( ) : FieldBuilder
return FieldBuilder