C# Class Yea.Reflection.Emit.EnumBuilder

Helper class for defining enums
Inheritance: IType
ファイルを表示 Open project: OxPatient/Rule-Engine Class Usage Examples

Public Methods

Method 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 method

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
return void

Create() public method

Creates the enum
public Create ( ) : Type
return System.Type

EnumBuilder() public method

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.)
return System

ToString() public method

Enum definition as a string
public ToString ( ) : string
return string