Open sandboxFocus
  • TOC

Metalama Documentation

Getting started

Conceptual documentation

Commented examples

API documentation

Aspect API

Metalama.​Framework.​Advising

Metalama.​Framework.​Aspects

Metalama.​Framework.​Code

Metalama.​Framework.​Code.​Collections

Metalama.​Framework.​Code.​Comparers

Metalama.​Framework.​Code.​Declaration­Builders

Metalama.​Framework.​Code.​Invokers

Metalama.​Framework.​Code.​Syntax­Builders

Metalama.​Framework.​Code.​Types

Metalama.​Framework.​Diagnostics

Metalama.​Framework.​Eligibility

Metalama.​Framework.​Fabrics

Metalama.​Framework.​Metrics

Metalama.​Framework.​Options

Metalama.​Framework.​Project

Metalama.​Framework.​Run­Time

Metalama.​Framework.​Serialization

Metalama.​Framework.​Services

Metalama.​Framework.​Utilities

Extensions API

Patterns API

Flashtrace API

Introspection API

Advanced API

Post­Sharp API migration

  • Article

Enum ContractDirection

Directions of the data flow to which the contract applies.

Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[RunTimeOrCompileTime]
public enum ContractDirection

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.

  • Navigation