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

Assembly class
파일 보기 프로젝트 열기: OxPatient/Rule-Engine

공개 메소드들

메소드 설명
Assembly ( string name, string directory = "", AssemblyType type = AssemblyType.Dll ) : System

Constructor

Create ( ) : void

Creates all types associated with the assembly and saves the assembly to disk if a directory is specified.

CreateEnum ( string name, Type enumBaseType = null, TypeAttributes attributes = TypeAttributes.Public ) : EnumBuilder

Creates an enum builder

CreateType ( string name, TypeAttributes attributes = TypeAttributes.Public, Type baseClass = null, IEnumerable interfaces = null ) : TypeBuilder

Creates a type builder

ToString ( ) : string

Converts the assembly to a string

비공개 메소드들

메소드 설명
Setup ( string name, string directory = "", AssemblyType type = AssemblyType.Dll ) : void

Sets up the assembly

메소드 상세

Assembly() 공개 메소드

Constructor
public Assembly ( string name, string directory = "", AssemblyType type = AssemblyType.Dll ) : System
name string Assembly name
directory string directory to save the assembly (if left blank, the assembly is run only and will not be saved)
type AssemblyType Assembly type (exe or dll)
리턴 System

Create() 공개 메소드

Creates all types associated with the assembly and saves the assembly to disk if a directory is specified.
public Create ( ) : void
리턴 void

CreateEnum() 공개 메소드

Creates an enum builder
public CreateEnum ( string name, Type enumBaseType = null, TypeAttributes attributes = TypeAttributes.Public ) : EnumBuilder
name string name of the enum
enumBaseType System.Type Base type of the enum (defaults to int)
attributes TypeAttributes Attributes associated with the type
리턴 EnumBuilder

CreateType() 공개 메소드

Creates a type builder
public CreateType ( string name, TypeAttributes attributes = TypeAttributes.Public, Type baseClass = null, IEnumerable interfaces = null ) : TypeBuilder
name string name of the type
attributes TypeAttributes Attributes associated with the type
baseClass System.Type Base class for this type
interfaces IEnumerable Interfaces used by this type
리턴 TypeBuilder

ToString() 공개 메소드

Converts the assembly to a string
public ToString ( ) : string
리턴 string