PostSharpAPI ReferencePost­Sharp.​Patterns.​ContractsLocation­Contract­AttributeSelect­Self­Or­Nothing
Open sandboxFocus

LocationContractAttribute.SelectSelfOrNothing Method

SelectSelfOrNothing(LocationInfo)

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

Declaration
protected IEnumerable<LocationInfo> SelectSelfOrNothing(LocationInfo target)
Parameters
Type Name Description
LocationInfo target

The target location.

Returns
Type Description
System.Collections.Generic.IEnumerable<LocationInfo>

The target location, or nothing if the target location is a dependency property or an attached property.