Back to Csvhelper

Migrating from version 29 to 30

src/CsvHelper.Website/input/migration/v30/index.md

33.1.0675 B
Original Source

Migrating from version 29 to 30

BadDataException constructor

cs
// 29
throw new BadDataException(context);

// 30
throw new BadDataException(field, rawRecord, context);

IParserConfiguration

Any class that implements IParserConfiguration will need to add property double MaxFixFieldSize { get; }. Any class that implements IParserConfiguration will need to add property bool LeaveOpen { get; }.

IWriterConfiguration

ixFieldSize { get; }. Any class that implements IWriterConfigurationwill need to add propertybool LeaveO

ValidateArgs

cs
// 29
var args = new ValidateArgs(field);

// 30
var args = new ValidateArgs(field, row);