PostSharp//API Reference/Post­Sharp.​Patterns.​Model/Depends
Open sandboxFocus

Class Depends

Provides a way to specify dependencies of a method to properties or chains of properties. This class should be used from methods marked with the SafeForDependencyAnalysisAttribute custom attribute.

Inheritance
Depends
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Model.dll
Syntax
public static class Depends : Object

Fields

Name Description
Guard

A Boolean value that is always false.

Methods

Name Description
On(Object)

Specifies an explicit dependency between the calling method and the argument passed to this method.

On(Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

On(Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

On(Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

On(Object, Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

On(Object, Object, Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

On(Object, Object, Object, Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

On(Object, Object, Object, Object, Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

On(Object, Object, Object, Object, Object, Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.

On(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Specifies an explicit dependency between the calling method and the arguments passed to this method.