In Metalama, use builder
.Advice.AddInitializer(INamedType, string, InitializerKind, object?, object?).
Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
[Obsolete("In Metalama, use <c>builder</c>.'IAspectBuilder.Advice'.'IAdviceFactory.AddInitializer(INamedType, string, InitializerKind, object?, object?)'.", false)]
public sealed class InitializeAspectInstanceAdvice : Advice
Constructors
Name | Description |
---|---|
InitializeAspectInstanceAdvice() |