PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Contracts Namespace/Location­Contract­Attribute Class/Location­Contract­Attribute Methods/Location­Contract­Attribute.​Select­Self­Or­Nothing Method

LocationContractAttribute.SelectSelfOrNothing Method

A pointcut that selects the target location of the current aspect, unless the target location is a dependency property or an attached property.

Namespace:  PostSharp.Patterns.Contracts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.6.0 (6.1.6.0)
Syntax
C#
protected IEnumerable<LocationInfo> SelectSelfOrNothing(
	LocationInfo target
)

Parameters

target
Type: PostSharp.Reflection.LocationInfo
The target location.

Return Value

Type: IEnumerable<LocationInfo>
The target location, or nothing if the target location is a dependency property or an attached property.
See Also