CsvFieldValidate Delegate

Definition

Namespace: DataStandardizer.File.CSV

The delegate called to validate an incoming CSV field value.

Syntax

public delegate bool CsvFieldValidate<TModel>(CsvFieldContext<TModel> context)
    where TModel : class;

Remarks

Attached to a mapping with the ValidateUsing step of the fluent CsvFieldMappingBuilder. Return true if the field value is valid; false triggers the CsvFieldBadValue handler if one is set, otherwise a CsvFileException. See CsvFieldContext.

Applies to

Targets netstandard1.3, netstandard2.0, net8.0, and net10.0.

See also

</content>


This site uses Just the Docs, a documentation theme for Jekyll.