From 2a1cd4fda8a4a8e649910d16b4dfa1ce7ae63543 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Fri, 12 May 2023 09:24:40 +0800 Subject: *misc --- .../CsvHelper.Website/input/migration/v30/index.md | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ThirdParty/CsvHelper-master/src/CsvHelper.Website/input/migration/v30/index.md (limited to 'ThirdParty/CsvHelper-master/src/CsvHelper.Website/input/migration/v30') diff --git a/ThirdParty/CsvHelper-master/src/CsvHelper.Website/input/migration/v30/index.md b/ThirdParty/CsvHelper-master/src/CsvHelper.Website/input/migration/v30/index.md new file mode 100644 index 0000000..2c324f5 --- /dev/null +++ b/ThirdParty/CsvHelper-master/src/CsvHelper.Website/input/migration/v30/index.md @@ -0,0 +1,31 @@ +# 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 `IWriterConfiguration` will need to add property `bool LeaveO + +## ValidateArgs + +```cs +// 29 +var args = new ValidateArgs(field); + +// 30 +var args = new ValidateArgs(field, row); +``` -- cgit v1.1-26-g67d0