Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Aspects / Contract­Direction

Class ContractDirection

Directions of the data flow to which the contract applies.

Inheritance
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).

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__