Interface IWrapsValidatorWithExceptionBehaviour
An object which wraps a validator instance with appropriate exception-throwing behaviour.
Namespace: CSF.Validation
Assembly: CSF.Validation.dll
Syntax
public interface IWrapsValidatorWithExceptionBehaviour
Methods
| Improve this Doc View SourceWrapValidator(IValidator)
Wraps a non-generic validator with the appropriate behaviour.
Declaration
IValidator WrapValidator(IValidator validator)
Parameters
Type | Name | Description |
---|---|---|
IValidator | validator | The validator instance to wrap. |
Returns
Type | Description |
---|---|
IValidator | A validator, with added exception-throwing behaviour. |
WrapValidator<TValidated>(IValidator<TValidated>)
Wraps a generic validator with the appropriate behaviour.
Declaration
IValidator<TValidated> WrapValidator<TValidated>(IValidator<TValidated> validator)
Parameters
Type | Name | Description |
---|---|---|
IValidator<TValidated> | validator | The validator instance to wrap. |
Returns
Type | Description |
---|---|
IValidator<TValidated> | A validator, with added exception-throwing behaviour. |
Type Parameters
Name | Description |
---|---|
TValidated | The validated type. |