MetalamaAPI documentationAspect APIMetalama.​Framework.​AspectsContract­Direction
Open sandboxFocus

ContractDirection Class

Directions of the data flow to which the contract applies.

Inheritance
System.Object
ContractDirection
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[RunTimeOrCompileTime]
public sealed class ContractDirection : Enum

Fields

Name Description
Both

Both Input and Output.

Default

For all parameters except out parameters and read-only properties or indexers, equivalent to Input. Otherwise, equivalent to Output.

Input

Validates the input value of the parameter (before execution of the method) or the value assigned to the field, property or indexer (before the actual assignment).

None

Means that the contract is disabled.

Output

Validates the output value of an out or ref parameter or the value (after execution of the method), the value returned by the property or indexer getter, or the value assigned to the field at the moment when the field is retrieved.

value__