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-master/docs/migration/v22/index.html | 138 +++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v22/index.html (limited to 'ThirdParty/CsvHelper-master/docs/migration/v22/index.html') diff --git a/ThirdParty/CsvHelper-master/docs/migration/v22/index.html b/ThirdParty/CsvHelper-master/docs/migration/v22/index.html new file mode 100644 index 0000000..9e1defc --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v22/index.html @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + V22 | CsvHelper + + + + + + + + + + + + + + + + +
+
+
+
+

Migrating from version 21 to 22

+

ParserMode

+

Name change to CsvMode.

+
// v21
+ParserMode.RFC4180
+
+//v22
+CsvMode.RFC4180
+
+

ShouldQuote

+
// v21
+var config = new CsvConfiguration(CultureInfo.InvariantCulture)
+{
+	ShouldQuote = (field, context) => true,
+};
+
+// v22
+var config = new CsvConfiguration(CultureInfo.InvariantCulture)
+{
+	ShouldQuote = (field, context, row) => true,
+};
+
+

EnumConverter

+

EnumConverter was changed to case sensitive by default.

+

If you want Enums to ignore case, you need to set a type converter option.

+
Map(m => m.Property).TypeConverterOption.EnumIgnoreCase();
+
+

IParserConfiguration

+
    +
  • Added ProcessFieldBufferSizse.
  • +
+

Any class that implements IParserConfiguration will need these changes applied to it.

+

IWriterConfiguration

+
    +
  • Added Mode.
  • +
+

Any class that implements IWriterConfiguration will need these changes applied to it.

+ +
+
+
+
+ +

+ + + + + + + + + + + -- cgit v1.1-26-g67d0