C# Class Yea.Reflection.Emit.FieldBuilder

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

Méthodes publiques

Méthode 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 méthode

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.)
Résultat System

GetDefinition() public méthode

Gets the definition of the field
public GetDefinition ( ) : string
Résultat string

Load() public méthode

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

Save() public méthode

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

ToString() public méthode

The field as a string
public ToString ( ) : string
Résultat string

operator() public static méthode

Increments the field by one
public static operator ( ) : FieldBuilder
Résultat FieldBuilder