RuntimeHelpers.RunModuleConstructor Method (ModuleHandle)

 

Runs a specified module constructor method.

Namespace:   System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

public static void RunModuleConstructor(
	ModuleHandle module
)

Parameters

module
Type: System.ModuleHandle

A handle that specifies the module constructor method to run.

Exception Condition
TypeInitializationException

The module constructor throws an exception.

This method is used by compilers.

.NET Framework
Available since 2.0
Return to top
Show: