C# Class Yea.Reflection.Emit.PropertyBuilder

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

Méthodes publiques

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

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

Load() public méthode

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

PropertyBuilder() public méthode

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

Save() public méthode

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

ToString() public méthode

Returns the property name
public ToString ( ) : string
Résultat string

operator() public static méthode

Adds one to the property
public static operator ( ) : PropertyBuilder
Résultat PropertyBuilder