PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Aspect­Dependency Class

AspectDependency Class

Represent a dependency relationships between aspects, advices or more generally any object implementing IAspectDependencyObject.
Inheritance Hierarchy

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public class AspectDependency

The AspectDependency type exposes the following members.

Constructors
  NameDescription
Public methodAspectDependency(AspectDependencyAction, AspectDependencyCondition)
Initializes a new AspectDependency with default (Any) position.
Public methodAspectDependency(AspectDependencyAction, AspectDependencyPosition, AspectDependencyCondition)
Initializes a new AspectDependency with the given position.
Public methodAspectDependency(AspectDependencyAction, AspectDependencyPosition, AspectDependencyCondition, Boolean)
Initializes a new AspectDependency with the given position and specifies whether a violation of this dependency rule should result in a warning instead of an error.
Properties
  NameDescription
Public propertyAction
Gets the kind of relationship represented by the current AspectDependency.
Public propertyCondition
Gets the condition determining whether a pair of objects matches the current relationship.
Public propertyIsWarning
Determines whether a violation of the current dependency rule should result in a warning instead of an error.
Public propertyPosition
Gets the position of the right member of the current relationship with respect to the left member.
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Overrides Object.ToString().)
See Also