Specifies the kind of initializer that should be added by an advice operation.
Namespace: Metalama.Framework.Advising
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public enum InitializerKindRemarks
This enumeration is used with methods like AddInitializer(IAdviser<INamedType>, IStatement, InitializerKind) to determine when and where initialization code should be injected into a type's constructors or initialization sequence.
Fields
| Name | Description |
|---|---|
| BeforeInstanceConstructor | Indicates that the advice should be executed before any user code in all instance constructors except those that are chained to a constructor of the current class (using the |
| BeforeTypeConstructor | Indicates that the advice should be executed before the type constructor (aka static constructor) of the target type. If there is no type constructor, this advice adds one. |