Open sandboxFocus

Class Pointcut

In Metalama, use a foreach loop in the BuildAspect(IAspectBuilder<T>) method, iterate the code model exposed on builder.Target, and add advice using methods of builder.Advice.

Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
[Obsolete("In Metalama, use a <c>foreach</c> loop in the 'IAspect<T>.BuildAspect(IAspectBuilder<T>)' method, iterate the code model exposed on <c>builder</c>.'IAspectBuilder<TAspectTarget>.Target', and add advice using methods of <c>builder</c>.'IAspectBuilder.Advice'.", false)]
public abstract class Pointcut : Attribute

Constructors

Name Description
Pointcut()