Table of Contents

Interface IHasValidate<TClass, TMember>

Namespace
CsvHelper.Configuration
Assembly
CsvHelper.dll

Has validate capabilities.

public interface IHasValidate<TClass, TMember> : IBuildableClass<TClass>

Type Parameters

TClass

The class type.

TMember

The member type.

Inherited Members

Methods

Validate(Validate)

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.

IHasMap<TClass> Validate(Validate validateExpression)

Parameters

validateExpression Validate

The validation expression.

Returns

IHasMap<TClass>