C# 클래스 Spring.Util.DynamicCodeManager

Use this class for obtaining ModuleBuilder instances for dynamic code generation.

The purpose of this class is to provide a simple abstraction for creating and managing dynamic assemblies.

Using this factory you can't define several modules within a single dynamic assembly - only a simple one2one relation between assembly/module is used.
파일 보기 프로젝트 열기: spring-projects/spring-net

공개 메소드들

메소드 설명
Clear ( ) : void

Removes all registered ModuleBuilders.

GetModuleBuilder ( string assemblyName ) : ModuleBuilder

Returns the ModuleBuilder for the dynamic module within the specified assembly.

If the assembly does not exist yet, it will be created.
This factory caches any dynamic assembly it creates - calling GetModule() twice with the same name will *not* create 2 distinct modules!

비공개 메소드들

메소드 설명
DynamicCodeManager ( ) : System

prevent instantiation

SaveAssembly ( string assemblyName ) : void

메소드 상세

Clear() 공개 정적인 메소드

Removes all registered ModuleBuilders.
public static Clear ( ) : void
리턴 void

GetModuleBuilder() 공개 정적인 메소드

Returns the ModuleBuilder for the dynamic module within the specified assembly.
If the assembly does not exist yet, it will be created.
This factory caches any dynamic assembly it creates - calling GetModule() twice with the same name will *not* create 2 distinct modules!
public static GetModuleBuilder ( string assemblyName ) : ModuleBuilder
assemblyName string The assembly-name of the module to be returned
리턴 System.Reflection.Emit.ModuleBuilder