The validate expression that will be called on every field when reading.
The expression should return true if the field is valid.
If false is returned, a
ValidationException
will be thrown.
- Namespace
- CsvHelper
.Configuration - Containing Type
- IHasValidate
<TClass, TMember>
Syntax
IHasMap<TClass> Validate(Validate validateExpression)
Parameters
Name | Type | Description |
---|---|---|
validateExpression | Validate | The validation expression. |