MethodPointcut Class |

System.Attribute
PostSharp.Aspects.Advices.Pointcut
PostSharp.Aspects.Advices.MethodPointcut
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.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.
|

Name | Description | |
---|---|---|
![]() | QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |

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).
