PostSharp6.1/API Reference/Post­Sharp.​Aspects.​Dependencies Namespace/Aspect­Dependency­Target Enumeration

AspectDependencyTarget Enumeration

Enumeration of targets (Default or Type) to which the aspect dependency apply.

Namespace:  PostSharp.Aspects.Dependencies
Assembly:  PostSharp (in PostSharp.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public enum AspectDependencyTarget
Members
  Member nameValueDescription
Default0 Natural target of the aspect.
Type1 Declaring type of the natural target of the aspect.
Remarks

This property is meaningful only for aspects that apply to type members. For aspects that apply to types, type-level and default-level dependencies are the same thing.

Member-level aspects may have semantics that actually apply at type level (for instance member introductions and imports). By setting the dependency target to Type, you can specify that the aspect dependency applies to type-level semantics. Otherwise, it will apply to member-level semantics.

See Also