Interface IValidator<T>
Defines a generic interface for validators.
Namespace: Juhta.Net.Validation
Assembly: Juhta.Net.Validation.dll
Syntax
public interface IValidator<T>
Type Parameters
Name | Description |
---|---|
T | Specifies the type of values to validate. |
Methods
| Improve this Doc View SourceValidate(T)
Validates a specified value. If the specified value doesn't pass validation, the method must throw a ValidationException.
Declaration
void Validate(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | Specifies a value to validate. |