ModuleInitializerAttribute Class |
Custom attribute that, when added to a static method, causes the method to be executed immediately
after the assembly is loaded by the CLR. The target method must be public, parameterless, void, and non-generic.

Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 6.1.23.0 (6.1.23.0)

C#
public sealed class ModuleInitializerAttribute : Attribute
The ModuleInitializerAttribute type exposes the following members.

Name | Description | |
---|---|---|
![]() | ModuleInitializerAttribute |
Initializes a new ModuleInitializerAttribute.
|

Name | Description | |
---|---|---|
![]() | Order |
Gets the order in which the ModuleInitializerAttribute will be executed if the
current project contains several initializers. Initializers with smaller values of the Order
property get invoked first.
|
