Represents the context in which a ContractBaseAttribute is used, i.e. its target declaration and Options.
Namespace: Metalama.Patterns.Contracts
Assembly: Metalama.Patterns.Contracts.dll
Syntax
[CompileTime]
public sealed class ContractContextConstructors
| Name | Description |
|---|---|
| ContractContext(IMetaTarget) | |
| ContractContext(IDeclaration, ContractDirection) |
Properties
| Name | Description |
|---|---|
| Direction | Gets the ContractDirection. |
| Options | Gets the application options. |
| TargetDeclaration | Gets the declaration (parameter, field or property) validated by the contract. |
| TargetDisplayName | Gets the display name of the TargetDeclaration. |
| TargetParameterName | Gets the name of the target parameter, or |
| Type | Gets the type of the TargetDeclaration. |