C# Class Yea.Reflection.Emit.PropertyBuilder

Helper class for defining a property
Inheritance: Yea.Reflection.Emit.BaseClasses.VariableBase, IPropertyBuilder
Mostra file Open project: OxPatient/Rule-Engine Class Usage Examples

Public Methods

Method Description
GetDefinition ( ) : string

Gets the definition

Load ( ILGenerator generator ) : void

Loads a property

PropertyBuilder ( TypeBuilder typeBuilder, string name, PropertyAttributes attributes, MethodAttributes getMethodAttributes, MethodAttributes setMethodAttributes, Type propertyType, IEnumerable parameters ) : System

Constructor

Save ( ILGenerator generator ) : void

Saves the property

ToString ( ) : string

Returns the property name

operator ( ) : PropertyBuilder

Adds one to the property

Method Details

GetDefinition() public method

Gets the definition
public GetDefinition ( ) : string
return string

Load() public method

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

PropertyBuilder() public method

Constructor
public PropertyBuilder ( TypeBuilder typeBuilder, string name, PropertyAttributes attributes, MethodAttributes getMethodAttributes, MethodAttributes setMethodAttributes, Type propertyType, IEnumerable parameters ) : System
typeBuilder TypeBuilder Type builder
name string Name of the property
attributes PropertyAttributes Attributes for the property (public, private, etc.)
getMethodAttributes MethodAttributes Get method attributes
setMethodAttributes MethodAttributes Set method attributes
propertyType System.Type Property type for the property
parameters IEnumerable Parameter types for the property
return System

Save() public method

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

ToString() public method

Returns the property name
public ToString ( ) : string
return string

operator() public static method

Adds one to the property
public static operator ( ) : PropertyBuilder
return PropertyBuilder