In Metalama, use a foreach
loop in the BuildAspect(IAspectBuilder<T>) method, iterate the code model exposed on builder
.TargetMethods, and add advice using methods of builder
.Advice.
Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[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.Target''INamedType.Methods', and add advice using methods of <c>builder</c>.'IAspectBuilder.Advice'.", false)]
public sealed class SignaturePointcut : Pointcut
Constructors
Name | Description |
---|---|
SignaturePointcut(string, params Type[]) |
Properties
Name | Description |
---|---|
ArgumentTypes | |
Name |