In Metalama, implement the BuildAspect(IAspectBuilder<T>) method and call
builder.Advice.ImplementInterface(INamedType, INamedType, OverrideStrategy, object?).
Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
[Obsolete("In Metalama, implement the 'IAspect<T>.BuildAspect(IAspectBuilder<T>)' method and call <c>builder</c>.'IAspectBuilder.Advice'.'IAdviceFactory.ImplementInterface(INamedType, INamedType, OverrideStrategy, object?)'.", false)]
public sealed class IntroduceInterfaceAttribute : AdviceConstructors
| Name | Description |
|---|---|
| IntroduceInterfaceAttribute(Type) |
Properties
| Name | Description |
|---|---|
| AncestorOverrideAction | |
| OverrideAction |