PostSharp 6.10 / / Post­Sharp Documentation / 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: (
public enum AspectDependencyTarget
  Member nameValueDescription
Default0 Natural target of the aspect.
Type1 Declaring type of the natural target of the aspect.

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