Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DynamicCodeManager.GetModuleBuilder Method

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

[Visual Basic]
Public Shared Sub GetModuleBuilder( _
   ByVal assemblyName As String _
)
[C#]
public static ModuleBuilder GetModuleBuilder(
   string assemblyName
);

Parameters

assemblyName
The assembly-name of the module to be returned

Return Value

the ModuleBuilder that can be used to define new types within the specified assembly

Remarks

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!

See Also

DynamicCodeManager Class | Spring.Util Namespace