C# 클래스 Yea.Reflection.Emit.EnumBuilder

Helper class for defining enums
상속: IType
파일 보기 프로젝트 열기: OxPatient/Rule-Engine 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

AddLiteral() 공개 메소드

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
리턴 void

Create() 공개 메소드

Creates the enum
public Create ( ) : Type
리턴 System.Type

EnumBuilder() 공개 메소드

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.)
리턴 System

ToString() 공개 메소드

Enum definition as a string
public ToString ( ) : string
리턴 string