C# Class Yea.Reflection.Emit.DefaultPropertyBuilder

Helper class for defining default properties
Inheritance: Yea.Reflection.Emit.BaseClasses.VariableBase, IPropertyBuilder
Exibir arquivo Open project: OxPatient/Rule-Engine Class Usage Examples

Public Methods

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

Constructor

GetDefinition ( ) : string

Gets the definition of the property

Load ( ILGenerator generator ) : void

Loads the property

Save ( ILGenerator generator ) : void

Saves the property

ToString ( ) : string

property as a string

operator ( ) : DefaultPropertyBuilder

Increments the property by one

Method Details

DefaultPropertyBuilder() public method

Constructor
public DefaultPropertyBuilder ( 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

GetDefinition() public method

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

Load() public method

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

Save() public method

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

ToString() public method

property as a string
public ToString ( ) : string
return string

operator() public static method

Increments the property by one
public static operator ( ) : DefaultPropertyBuilder
return DefaultPropertyBuilder