PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Aspect­Dependency Class / Aspect­Dependency Constructor / Aspect­Dependency Constructor (Aspect­Dependency­Action, Aspect­Dependency­Condition)

AspectDependency Constructor (AspectDependencyAction, AspectDependencyCondition)

Initializes a new AspectDependency with default (Any) position.

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public AspectDependency(
	AspectDependencyAction action,
	AspectDependencyCondition condition
)

Parameters

action
Type: AspectDependencyAction
The kind of aspect dependency.
condition
Type: PostSharp.Sdk.AspectInfrastructure.AspectDependencyCondition
An object evaluating whether a pair of objects is affected by the current AspectDependency.
See Also