C# Class Yea.Reflection.Emit.EnumBuilder

Helper class for defining enums
Inheritance: IType
Afficher le fichier Open project: OxPatient/Rule-Engine Class Usage Examples

Méthodes publiques

Méthode Description
AddLiteral ( string name, object value ) : void

Adds a literal to the enum (an entry)

Create ( ) : Type

Creates the enum

EnumBuilder ( Assembly assembly, string name, Type enumType, TypeAttributes attributes ) : System

Constructor

ToString ( ) : string

Enum definition as a string

Method Details

AddLiteral() public méthode

Adds a literal to the enum (an entry)
public AddLiteral ( string name, object value ) : void
name string name of the entry
value object Value associated with it
Résultat void

Create() public méthode

Creates the enum
public Create ( ) : Type
Résultat System.Type

EnumBuilder() public méthode

Constructor
public EnumBuilder ( Assembly assembly, string name, Type enumType, TypeAttributes attributes ) : System
assembly Assembly Assembly builder
name string name of the enum
enumType System.Type Type for the enum
attributes TypeAttributes Attributes for the enum (public, private, etc.)
Résultat System

ToString() public méthode

Enum definition as a string
public ToString ( ) : string
Résultat string