OnContractViolated(dynamic?, NumericRange, ContractContext)
Template method called when the contract validation fails. Override to customize the error behavior.
Declaration
[Template]
protected virtual void OnContractViolated(dynamic? value, NumericRange range, ContractContext context)Parameters
| Type | Name | Description |
|---|---|---|
| dynamic | value | The value that failed validation. |
| NumericRange | range | The numeric range that was violated. |
| ContractContext | context | The contract context. |