MethodPointcut Class |
System.Attribute
PostSharp.Aspects.Advices.Pointcut
PostSharp.Aspects.Advices.MethodPointcut
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp (in PostSharp.dll) Version: 6.6.14.0 (6.6.14.0)
public sealed class MethodPointcut : Pointcut
The MethodPointcut type exposes the following members.
Name | Description | |
---|---|---|
MethodPointcut |
Initializes a new MethodPointcut.
|
Name | Description | |
---|---|---|
MethodName |
Gets the name of the method returning the set of code elements.
|
This method should have the signature IEnumerable<AdviceTargetType> SelectCodeElements(AspectTargetType target) , where AspectTargetType is either object either a reflection type corresponding to the kind of targets of the aspect (for instance System.Type for a type-level aspect), and AdviceTargetType is either object either a reflection type of the kind of targets of the advice (for instance System.MethodInfo for a method-level advice).