Open sandboxFocus

Class SelfPointcut

Pointcut that selects exactly the aspect target. It is obsolete: a group of advices without pointcut applies to the target of the aspect, so this pointcut is always redundant.

Inheritance
SelfPointcut
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
[Obsolete("SelfPointcut is redundant: a group of advices without pointcut applies to the target of the aspect. Remove it, and set GroupingAdvice.Group to give the advice a group of its own.")]
public sealed class SelfPointcut : Pointcut
Remarks

The compiler treats this pointcut as the absence of a pointcut: it neither selects nor starts a group. To give an advice a group of its own that applies to the target of the aspect, set Group.

Constructors

Name Description
SelfPointcut()

See Also