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.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Aspects.ModuleInitializerAttribute

Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.30.0 (4.3.30.0)
Syntax
C#
public sealed class ModuleInitializerAttribute : Attribute

The ModuleInitializerAttribute type exposes the following members.

Constructors
  NameDescription
Public methodModuleInitializerAttribute
Initializes a new ModuleInitializerAttribute.
Top
Properties
  NameDescription
Public propertyOrder
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.
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Top
See Also