Метод | Описание | |
---|---|---|
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, |
Creates an enum builder
|
|
CreateType ( string name, TypeAttributes attributes = TypeAttributes.Public, |
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
|
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 |
public CreateEnum ( string name, |
||
name | string | name of the enum |
enumBaseType | Base type of the enum (defaults to int) | |
attributes | TypeAttributes | Attributes associated with the type |
Результат | EnumBuilder |
public CreateType ( string name, TypeAttributes attributes = TypeAttributes.Public, |
||
name | string | name of the type |
attributes | TypeAttributes | Attributes associated with the type |
baseClass | Base class for this type | |
interfaces | IEnumerable |
Interfaces used by this type |
Результат | TypeBuilder |