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 --- ThirdParty/CsvHelper-master/docs/.nojekyll | 0 ThirdParty/CsvHelper-master/docs/api/index.html | 102 ++ ThirdParty/CsvHelper-master/docs/browserconfig.xml | 11 + .../CsvHelper-master/docs/change-log/index.html | 1808 ++++++++++++++++++++ .../examples/configuration/attributes/index.html | 472 +++++ .../class-maps/auto-mapping/index.html | 462 +++++ .../class-maps/constant-value/index.html | 464 +++++ .../class-maps/ignoring-properties/index.html | 463 +++++ .../examples/configuration/class-maps/index.html | 489 ++++++ .../class-maps/inline-type-conversion/index.html | 515 ++++++ .../mapping-by-alternate-names/index.html | 462 +++++ .../class-maps/mapping-by-index/index.html | 465 +++++ .../class-maps/mapping-by-name/index.html | 462 +++++ .../class-maps/mapping-duplicate-names/index.html | 464 +++++ .../class-maps/mapping-properties/index.html | 462 +++++ .../class-maps/optional-maps/index.html | 464 +++++ .../class-maps/type-conversion/index.html | 482 ++++++ .../configuration/class-maps/validation/index.html | 463 +++++ .../docs/examples/configuration/index.html | 450 +++++ .../docs/examples/csvdatareader/index.html | 460 +++++ .../CsvHelper-master/docs/examples/index.html | 465 +++++ .../docs/examples/prerequisites/index.html | 454 +++++ .../reading-and-writing-files/index.html | 480 ++++++ .../docs/examples/prerequisites/streams/index.html | 453 +++++ .../prerequisites/using-and-dispose/index.html | 444 +++++ .../reading/enumerate-class-records/index.html | 457 +++++ .../reading/get-anonymous-type-records/index.html | 451 +++++ .../examples/reading/get-class-records/index.html | 452 +++++ .../reading/get-dynamic-records/index.html | 446 +++++ .../docs/examples/reading/index.html | 469 +++++ .../examples/reading/reading-by-hand/index.html | 463 +++++ .../reading/reading-multiple-data-sets/index.html | 514 ++++++ .../reading-multiple-record-types/index.html | 497 ++++++ .../custom-type-converter/index.html | 480 ++++++ .../docs/examples/type-conversion/index.html | 596 +++++++ .../type-converter-options/index.html | 450 +++++ .../appending-to-an-existing-file/index.html | 476 ++++++ .../docs/examples/writing/index.html | 483 ++++++ .../write-anonymous-type-objects/index.html | 450 +++++ .../writing/write-class-objects/index.html | 456 +++++ .../writing/write-dynamic-objects/index.html | 454 +++++ .../docs/favicons/android-icon-144x144.png | Bin 0 -> 2931 bytes .../docs/favicons/android-icon-192x192.png | Bin 0 -> 2944 bytes .../docs/favicons/android-icon-36x36.png | Bin 0 -> 1243 bytes .../docs/favicons/android-icon-48x48.png | Bin 0 -> 1425 bytes .../docs/favicons/android-icon-72x72.png | Bin 0 -> 1784 bytes .../docs/favicons/android-icon-96x96.png | Bin 0 -> 2116 bytes .../docs/favicons/apple-icon-114x114.png | Bin 0 -> 2447 bytes .../docs/favicons/apple-icon-120x120.png | Bin 0 -> 2498 bytes .../docs/favicons/apple-icon-144x144.png | Bin 0 -> 2931 bytes .../docs/favicons/apple-icon-152x152.png | Bin 0 -> 3040 bytes .../docs/favicons/apple-icon-180x180.png | Bin 0 -> 3523 bytes .../docs/favicons/apple-icon-57x57.png | Bin 0 -> 1525 bytes .../docs/favicons/apple-icon-60x60.png | Bin 0 -> 1577 bytes .../docs/favicons/apple-icon-72x72.png | Bin 0 -> 1784 bytes .../docs/favicons/apple-icon-76x76.png | Bin 0 -> 1813 bytes .../docs/favicons/apple-icon-precomposed.png | Bin 0 -> 3516 bytes .../CsvHelper-master/docs/favicons/apple-icon.png | Bin 0 -> 3516 bytes .../docs/favicons/favicon-16x16.png | Bin 0 -> 974 bytes .../docs/favicons/favicon-32x32.png | Bin 0 -> 1208 bytes .../docs/favicons/favicon-96x96.png | Bin 0 -> 2116 bytes .../CsvHelper-master/docs/favicons/favicon.ico | Bin 0 -> 1150 bytes .../docs/favicons/ms-icon-144x144.png | Bin 0 -> 2931 bytes .../docs/favicons/ms-icon-150x150.png | Bin 0 -> 3011 bytes .../docs/favicons/ms-icon-310x310.png | Bin 0 -> 7118 bytes .../docs/favicons/ms-icon-70x70.png | Bin 0 -> 1698 bytes .../docs/getting-started/index.html | 372 ++++ .../docs/google6ad86f23ff698b61.html | 99 ++ ThirdParty/CsvHelper-master/docs/images/logo.svg | 89 + ThirdParty/CsvHelper-master/docs/index.html | 427 +++++ ThirdParty/CsvHelper-master/docs/manifest.json | 41 + .../CsvHelper-master/docs/migration/index.html | 134 ++ .../CsvHelper-master/docs/migration/v10/index.html | 102 ++ .../CsvHelper-master/docs/migration/v11/index.html | 102 ++ .../CsvHelper-master/docs/migration/v12/index.html | 102 ++ .../CsvHelper-master/docs/migration/v13/index.html | 102 ++ .../CsvHelper-master/docs/migration/v14/index.html | 102 ++ .../CsvHelper-master/docs/migration/v15/index.html | 102 ++ .../CsvHelper-master/docs/migration/v16/index.html | 102 ++ .../CsvHelper-master/docs/migration/v17/index.html | 102 ++ .../CsvHelper-master/docs/migration/v18/index.html | 102 ++ .../CsvHelper-master/docs/migration/v19/index.html | 102 ++ .../CsvHelper-master/docs/migration/v2/index.html | 102 ++ .../CsvHelper-master/docs/migration/v20/index.html | 344 ++++ .../CsvHelper-master/docs/migration/v21/index.html | 116 ++ .../CsvHelper-master/docs/migration/v22/index.html | 138 ++ .../CsvHelper-master/docs/migration/v23/index.html | 295 ++++ .../CsvHelper-master/docs/migration/v24/index.html | 116 ++ .../CsvHelper-master/docs/migration/v25/index.html | 255 +++ .../CsvHelper-master/docs/migration/v26/index.html | 267 +++ .../CsvHelper-master/docs/migration/v27/index.html | 131 ++ .../CsvHelper-master/docs/migration/v28/index.html | 131 ++ .../CsvHelper-master/docs/migration/v29/index.html | 122 ++ .../CsvHelper-master/docs/migration/v3/index.html | 102 ++ .../CsvHelper-master/docs/migration/v30/index.html | 121 ++ .../CsvHelper-master/docs/migration/v4/index.html | 102 ++ .../CsvHelper-master/docs/migration/v5/index.html | 102 ++ .../CsvHelper-master/docs/migration/v6/index.html | 102 ++ .../CsvHelper-master/docs/migration/v7/index.html | 102 ++ .../CsvHelper-master/docs/migration/v8/index.html | 102 ++ .../CsvHelper-master/docs/migration/v9/index.html | 102 ++ ThirdParty/CsvHelper-master/docs/robots.txt | 1 + ThirdParty/CsvHelper-master/docs/scripts/header.js | 6 + .../CsvHelper-master/docs/scripts/sidebar.js | 41 + ThirdParty/CsvHelper-master/docs/sitemap.xml | 1 + ThirdParty/CsvHelper-master/docs/styles/base.css | 3 + .../CsvHelper-master/docs/styles/content.css | 1 + ThirdParty/CsvHelper-master/docs/styles/header.css | 1 + ThirdParty/CsvHelper-master/docs/styles/index.css | 21 + .../CsvHelper-master/docs/styles/sidebar.css | 13 + 110 files changed, 24432 insertions(+) create mode 100644 ThirdParty/CsvHelper-master/docs/.nojekyll create mode 100644 ThirdParty/CsvHelper-master/docs/api/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/browserconfig.xml create mode 100644 ThirdParty/CsvHelper-master/docs/change-log/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/attributes/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/auto-mapping/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/constant-value/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/ignoring-properties/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/inline-type-conversion/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-by-alternate-names/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-by-index/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-by-name/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-duplicate-names/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-properties/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/optional-maps/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/type-conversion/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/validation/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/configuration/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/csvdatareader/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/prerequisites/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/prerequisites/reading-and-writing-files/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/prerequisites/streams/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/prerequisites/using-and-dispose/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/reading/enumerate-class-records/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/reading/get-anonymous-type-records/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/reading/get-class-records/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/reading/get-dynamic-records/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/reading/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/reading/reading-by-hand/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/reading/reading-multiple-data-sets/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/reading/reading-multiple-record-types/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/type-conversion/custom-type-converter/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/type-conversion/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/type-conversion/type-converter-options/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/writing/appending-to-an-existing-file/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/writing/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/writing/write-anonymous-type-objects/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/writing/write-class-objects/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/examples/writing/write-dynamic-objects/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/android-icon-144x144.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/android-icon-192x192.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/android-icon-36x36.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/android-icon-48x48.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/android-icon-72x72.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/android-icon-96x96.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/apple-icon-114x114.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/apple-icon-120x120.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/apple-icon-144x144.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/apple-icon-152x152.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/apple-icon-180x180.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/apple-icon-57x57.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/apple-icon-60x60.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/apple-icon-72x72.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/apple-icon-76x76.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/apple-icon-precomposed.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/apple-icon.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/favicon-16x16.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/favicon-32x32.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/favicon-96x96.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/favicon.ico create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/ms-icon-144x144.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/ms-icon-150x150.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/ms-icon-310x310.png create mode 100644 ThirdParty/CsvHelper-master/docs/favicons/ms-icon-70x70.png create mode 100644 ThirdParty/CsvHelper-master/docs/getting-started/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/google6ad86f23ff698b61.html create mode 100644 ThirdParty/CsvHelper-master/docs/images/logo.svg create mode 100644 ThirdParty/CsvHelper-master/docs/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/manifest.json create mode 100644 ThirdParty/CsvHelper-master/docs/migration/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v10/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v11/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v12/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v13/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v14/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v15/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v16/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v17/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v18/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v19/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v2/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v20/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v21/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v22/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v23/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v24/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v25/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v26/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v27/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v28/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v29/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v3/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v30/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v4/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v5/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v6/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v7/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v8/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/migration/v9/index.html create mode 100644 ThirdParty/CsvHelper-master/docs/robots.txt create mode 100644 ThirdParty/CsvHelper-master/docs/scripts/header.js create mode 100644 ThirdParty/CsvHelper-master/docs/scripts/sidebar.js create mode 100644 ThirdParty/CsvHelper-master/docs/sitemap.xml create mode 100644 ThirdParty/CsvHelper-master/docs/styles/base.css create mode 100644 ThirdParty/CsvHelper-master/docs/styles/content.css create mode 100644 ThirdParty/CsvHelper-master/docs/styles/header.css create mode 100644 ThirdParty/CsvHelper-master/docs/styles/index.css create mode 100644 ThirdParty/CsvHelper-master/docs/styles/sidebar.css (limited to 'ThirdParty/CsvHelper-master/docs') diff --git a/ThirdParty/CsvHelper-master/docs/.nojekyll b/ThirdParty/CsvHelper-master/docs/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/ThirdParty/CsvHelper-master/docs/api/index.html b/ThirdParty/CsvHelper-master/docs/api/index.html new file mode 100644 index 0000000..6e555f3 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/api/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + Index | CsvHelper + + + + + + + + + + + + + + + + +
+
+
+
+

Coming soon...

+ +
+
+
+
+ +

+ + + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/browserconfig.xml b/ThirdParty/CsvHelper-master/docs/browserconfig.xml new file mode 100644 index 0000000..ae389fe --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/browserconfig.xml @@ -0,0 +1,11 @@ + + + + + + + + #ffffff + + + \ No newline at end of file diff --git a/ThirdParty/CsvHelper-master/docs/change-log/index.html b/ThirdParty/CsvHelper-master/docs/change-log/index.html new file mode 100644 index 0000000..7607512 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/change-log/index.html @@ -0,0 +1,1808 @@ + + + + + + + + + + + + + + + + + + + + + + + Change Log | CsvHelper + + + + + + + + + + + + + + + + +
+
+
+
+

Change Log

+

30.0.1

+

Bug Fixes

+
    +
  • Fixed issue when writing with the escape char not being escaped if it was different than the quote char.
  • +
  • Fixed issue with CsvWriter not passing leavOpen parameter to other constructor call.
  • +
  • Fixed issue with TypeConverter being assigned to a member that has a Convert expression assigned to it.
  • +
+

30.0.0

+

Features

+
    +
  • Added Field and RawRecord to BadDataException.
  • +
  • Pass IWriterConfiguration into CsvWriter constructor instead of CsvConfiguration.
  • +
  • Allow inherited header prefixes.
  • +
  • Allow mapping to dynamic properties.
  • +
  • Added MemberName to the type converter exception message.
  • +
  • Added MaxFieldSize configuration. If max size is set and the size is reached, MaxFieldSizeException is thrown.
  • +
  • Added class level attribute capability.
    +New Attributes: +
      +
    • BufferSizeAttribute
    • +
    • CacheFieldsAttribute
    • +
    • CommentAttribute
    • +
    • CountBytesAttribute
    • +
    • DelimiterAttribute
    • +
    • DetectColumnCountChangesAttribute
    • +
    • DetectDelimiterAttribute
    • +
    • DetectDelimiterValueAttribute
    • +
    • EncodingAttribute
    • +
    • EscapeAttribute
    • +
    • ExceptionMessagesContainRawDataAttribute
    • +
    • HasHeaderRecordAttribute
    • +
    • IgnoreBlankLinesAttribute
    • +
    • IgnoreReferencesAttribute
    • +
    • IncludePrivateMembersAttribute
    • +
    • InjectionCharactersAttribute
    • +
    • InjectionEscapeCharacterAttribute
    • +
    • InjectionOptionsAttribute
    • +
    • LineBreakInQuotedFieldIsBadDataAttribute
    • +
    • MaxFieldSizeAttribute
    • +
    • ModeAttribute
    • +
    • NewLineAttribute
    • +
    • ProcessFieldAttribute
    • +
    • QuoteAttribute
    • +
    • TrimOptionsAttribute
    • +
    • UseNewObjectForNullReferenceMembersAttribute
    • +
    • WhiteSpaceCharsAttribute
    • +
    +
  • +
  • Added params object[] constructorArgs to TypeConverterAttribute.
  • +
  • Added validation message expression to Validate mapping.
  • +
  • Added IReaderRow to ValidateArgs.
  • +
  • Relax Default and Constant type constraints to IsAssignableFrom.
  • +
+

Bug Fixes

+
    +
  • Added null check in WriteRecords.
  • +
  • Fixed interpolation in exception message.
  • +
  • Fixed constructor mapping issue where parameter has a type converter but would still try and use constructor mapping.
  • +
+

Breaking Changes

+
    +
  • Added string field and string rawRecord to BadDataException constructor.
  • +
  • Added double MaxFieldSize { get; } to IParserConfiguration.
  • +
  • Added bool LeaveOpen { get; } to IWriterConfiguration.
  • +
  • Added bool LeaveOpen { get; } to IParserConfiguration.
  • +
  • Added IReaderRow row to ValidateArgs constructor.
  • +
+

29.0.0

+

Features

+
    +
  • Added support for TypeConverter factories. This allows for the ability to handle many types at once. +Code that manually handle nullable, enums, and collections were changed into factories.
  • +
  • Moved delimiter detection into a configuration function. +This allows for a user to easily change the detection logic. +Default logic is in ConfigurationFunction.GetDelimiter.
  • +
  • Changed CsvConfiguration.SanitizeInjection flag to CsvConfiguration.InjectionOptions enum. +
      +
    • Options are: +
        +
      • None - Default. Does no injection protection. The is default because it's not a part of CSV and is used for an external tool.
      • +
      • Escape - Escapes the field based on OWASP recommendations if an injection char is detected.
      • +
      • Strip - Removes the injection character.
      • +
      • Exception - Throws an exception if an injection char is detected.
      • +
      +
    • +
    • Added \t and \r to CsvConfiguration.InjectionEscapeCharacter.
    • +
    • Changed CsvConfiguration.InjectionEscapeCharacter from \t to '.
    • +
    +
  • +
  • CsvDataReader.GetDataTypeName will use types when the schema table is overridden.
  • +
  • More detail added to CsvConfiguration.Validate exception messages.
  • +
  • Reduce double dictionary lookup in a few places.
  • +
+

Bug Fixes

+
    +
  • Fixed issues with delimiter detection logic.
  • +
  • Missing ConfigureAwait(false) added to async calls.
  • +
  • Fixed issue with CsvReader.TryGetField throwing an exception when multiple headers are read.
  • +
  • Fixed issue with MemberMap.Validate passing the wrong type into the expression call.
  • +
  • Fixed issue with MemberMap<T>.Convert not working with static methods.
  • +
  • Fixed issue with DateTimeConverter and DateTimeOffsetConverter throwing an exception other than TypeConverterException on failure.
  • +
  • Fixed issue where MissingFieldFound was not being called if IgnoreBlankLines was off.
  • +
+

Breaking Changes

+
    +
  • CsvConfiguration.SanitizeForInjection -> CsvConfiguration.InjectionOptions
  • +
  • bool IWriterConfiguration.SanitizeForInjection -> InjectionOptions IWriterConfiguration.InjectionOptions
  • +
  • CsvConfiguration.InjectionEscapeCharacter changed from \t to '.
  • +
  • Added \t and \r to CsvConfiguration.InjectionCharacters.
  • +
  • Added GetDelimiter IParserConfiguration.GetDelimiter delegate.
  • +
+

28.0.1

+

Bug Fixes

+
    +
  • Disabled nullable until all null issues are fixed.
  • +
+

28.0.0

+

Features

+
    +
  • Updated delimiter detection algorithm. +
      +
    • Strips escaped text based on mode.
    • +
    • Only looks for delimiters that appear on every line.
    • +
    • Uses CultureInfo.TextInfo.ListSeparator if it's on every line.
    • +
    +
  • +
  • Cache processed fields in parser so they're not processed on every access.
  • +
  • Cache CsvParser.Record[] so multiple calls wont' regenerate it.
  • +
  • ShouldSkipRecord is null by default and won't get called if not set.
  • +
  • ShouldSkipRecordArgs holds IReaderRow now instead of string[].
  • +
  • Changed CsvParser constructor to take in IParserConfiguration instead of CsvConfiguration.
  • +
  • Changed CsvReader constructor to take in IReaderConfiguration instead of CsvConfiguration.
  • +
+

Bug Fixes

+
    +
  • Fixed issue where collection types weren't getting the correct MemberMapData passed to them when converting the item.
  • +
  • Fixed issue where BadDataFound was being called multiple times for the same field.
  • +
  • Fixed issue where you can't read with no header when a name has been mapped.
  • +
  • Fixed issue where quoted fields not correctly being identified if there was a buffer swap on white space before quote.
  • +
+

Breaking Changes

+
    +
  • ShouldSkipRecordArgs holds IReaderRow now instead of string[].
  • +
  • Removed ConfigurationFunctions.ShouldSkipRecord as the default is now null.
  • +
  • Added IParserConfiguration.Validate.
  • +
+

27.2.1

+

Bug Fixes

+
    +
  • Changed dependencies to minimal needed version.
  • +
+

27.2.0

+

Features

+
    +
  • Support for net60 DateOnly and TimeOnly types.
  • +
+

27.1.1

+

Bug Fixes

+
    +
  • Fixed issue with delimiter detection in parser async read.
  • +
+

27.1.0

+

Features

+
    +
  • Added IgnoreBaseAttribute to not look at the base class when auto mapping.
  • +
+

27.0.4

+

Bug Fixes

+
    +
  • Changed delimiter detection to look line by line instead of the full buffer.
  • +
+

27.0.3

+

Bug Fixes

+
    +
  • Specified exact dependency version matches.
  • +
+

27.0.2

+

Bug Fixes

+
    +
  • Fixed issue with delimiter detection.
  • +
+

27.0.1

+

Bug Fixes

+
    +
  • \t wasn't removed and just an exception was being thrown.
  • +
+

27.0.0

+

Features

+
    +
  • Config option to auto detect delimiter. Off by default.
  • +
  • Added ability to apply a type converter to all registered types.
  • +
  • Added ability to apply type converter options to all registered types.
  • +
  • Added ability to pass an IAsyncEnumerable to WriteRecords.
  • +
  • Added option to use default value on conversion failure.
  • +
+

Breaking Changes

+
    +
  • Added IParserConfiguration.DetectDelimiter.
  • +
  • Added IParserConfiguration.DetectDelimiterValues.
  • +
  • Added IWriter.WriteRecordsAsync<T>(IAsyncEnumerable<T> records, CancellationToken cancellationToken = default).
  • +
  • Removed \t from CsvConfiguration.WhiteSpaceChars as a default.
  • +
+

26.1.0

+

Features

+
    +
  • Allow schema of destination table to be specified in CsvDataReader.
  • +
+

26.0.1

+

Bug Fixes

+
    +
  • Fixed issue with constant not working when the field is missing.
  • +
+

26.0.0

+

Features

+
    +
  • Added configuration for ExceptionMessagesContainRawData that defaults to true.
  • +
+

Bug Fixes

+
    +
  • Removed all init properties. These were causing people too many problems.
  • +
  • Fixed issue with exception message not containing the header record.
  • +
+

Breaking Changes

+
    +
  • Added bool IParserConfiguration.ExceptionMessagesContainRawData { get; }.
  • +
  • Added bool IWriterConfiguration.ExceptionMessagesContainRawData { get; }.
  • +
  • All delegate args objects have init removed and now have constructors with parameters. +
      +
    • BadDataFound
    • +
    • ConvertFromString
    • +
    • GetConstructor
    • +
    • GetDynamicPropertyName
    • +
    • HeaderValidated
    • +
    • MissingFieldFound
    • +
    • PrepareHeaderForMatch
    • +
    • ReadingExceptionOccurred
    • +
    • ReferenceHeaderPrefix
    • +
    • ShouldQuote
    • +
    • ShouldSkipRecord
    • +
    • ShouldUseConstructorParameter
    • +
    • Validate
    • +
    +
  • +
+

25.0.0

+

Bug Fixes

+
    +
  • Fixed stack overflow issue with accessing Parser[int] or Parser.Record in BaddataFound callback. Throws an exception explaining issue now.
  • +
+

Breaking Changes

+
    +
  • All delegate args had their non-parameterless constructor removed in favor of using init.
  • +
+

24.0.1

+

Bug Fixes

+
    +
  • Fixed issue with Trimming all white space.
  • +
+

24.0.0

+

Features

+
    +
  • Added CancellationToken to reading and writing async methods.
  • +
+

Bug Fixes

+
    +
  • Fixed issue with ShouldQuote not having the correct field type when writing records instead of fields.
  • +
  • Fixed issue with CharCount and ByteCount when trimming.
  • +
+

Breaking Changes

+
    +
  • void IWriterRow.WriteConvertedField(string field) -> void IWriterRow.WriteConvertedField(string field, Type fieldType)
  • +
  • void CsvWriter.WriteConvertedField(string field) -> void CsvWriter.WriteConvertedField(string field, Type fieldType)
  • +
+

23.0.0

+

Features

+
    +
  • Changed public init properties to set. Once VB.NET implements init, it can change back.
  • +
  • Made method CsvWriter.WriteBuffer protected so sub classes can write fields.
  • +
  • CsvWriter.Flush and CsvWriter.FlushAsync will now flush the underlying TextWriter.
  • +
  • Changed all delegate methods to accept an args struct instead of parameters. This makes it easier to understand what parameters are passed in, and allows for additional parameters to be added later without a breaking change.
  • +
+

Breaking Changes

+
    +
  • Removed the large CsvConfiguration constructor. The properties are now settable, so this isn't needed for VB.NET.
  • +
  • All delegates now take in a single struct argument. +
      +
    • BadDataFound
    • +
    • ConvertFromString
    • +
    • GetConstructor
    • +
    • GetDynamicPropertyName
    • +
    • HeaderValidated
    • +
    • MissingFieldFound
    • +
    • PrepareHeaderForMatch
    • +
    • ReadingExceptionOccurred
    • +
    • ReferenceHeaderPrefix
    • +
    • ShouldQuote
    • +
    • ShouldSkipRecord
    • +
    • ShouldUseConstructorParameter
    • +
    • Validate
    • +
    +
  • +
+

22.1.2

+

Bug Fixes

+
    +
  • Fixed issue with data corruption when parser buffer ran out in middle of escape and quote.
  • +
+

22.1.1

+

Bug Fixes

+
    +
  • Fixed issue where CsvConfiguration.NewLine was being set when value is null in constructor causing IsNewLine to be true.
  • +
+

22.1.0

+

Features

+
    +
  • Added [EnumIgnoreAttribute].
  • +
+

Bug Fixes

+
    +
  • Fixed issue with EnumIgnoreCase value not making it to the converter when reading.
  • +
+

22.0.0

+

Features

+
    +
  • Changed ParserMode to CsvMode and added the modes to CsvWriter.
  • +
  • Added Type fieldType parameter to ShouldQuote delegate.
  • +
  • Added TypeConverterOptions.EnumIgnoreCase (default is false). Allows EnumConverter to ignore case when matching enum names, values, or NameAttribute.
  • +
+

Bug Fixes

+
    +
  • Fixed issue with EnumConverter when duplicate names or values appeared in an Enum.
  • +
+

Breaking Changes

+
    +
  • ParserMode -> CsvMode
  • +
  • Added IParserConfiguration.ProcessFieldBufferSize.
  • +
  • Added IWriterConfiguration.Mode.
  • +
  • ShouldQuote(string, IWriterRow) -> ShouldQuote(string, Type, IWriterRow).
  • +
  • EnumConverter was changed to case sensitive by default.
  • +
+

21.3.1

+

Bug Fixes

+
    +
  • Fixed issue with CsvContext not being passed into AutoMap.
  • +
+

21.3.0

+

Features

+
    +
  • Added back Excel compatibility for bad data fallback. +
      +
    1. If a field doesn't start with a Quote, read until a Delimiter or NewLine is found.
    2. +
    3. If in quoted field and a Quote is found that isn't preceded by an Escape, read until a Delimiter or NewLine` is found.
    4. +
    5. TrimOptions.Trim will be applied before these rules.
    6. +
    +
  • +
+

21.2.1

+

Bug Fixes

+
    +
  • Fixed issue with processed field buffer not being large enough on resize.
  • +
+

21.2.0

+

Features

+
    +
  • Process boolean and null type converter options when writing.
  • +
+

21.1.2

+

Bug Fixes

+
    +
  • Fixed parsing issue with state not being reset when buffer is filled in the middle of a state.
  • +
+

21.1.1

+

Bug Fixes

+
    +
  • Fixed parsing issue with buffer ending in the middle of a line ending.
  • +
+

21.1.0

+

Features

+
    +
  • Added ParserMode.NoEscape. This will ignore quotes and escape characters.
  • +
+

21.0.6

+

Bug Fixes

+
    +
  • Fixed issue with writing a field that is larger then 2x the buffer size.
  • +
+

21.0.5

+

Bug Fixes

+
    +
  • Fixed issue with VB not being able to set init properties on CsvConfiguration by adding a constructor that takes in all properties as optional named arguments.
  • +
+

21.0.4

+

Bug Fixes

+
    +
  • Fixed issue with cache miss in on both the reader and writer.
  • +
+

21.0.3

+

No changes.

+

21.0.2

+

Bug Fixes

+
    +
  • Fixed issue with CsvConfiguration.NewLine not defaulting to '\r\n'.
  • +
+

21.0.1

+

Big Fixes

+
    +
  • Fixed issue with CsvWriter not keeping track of Row and Index.
  • +
+

21.0.0

+

Features

+
    +
  • CsvConfiguration.NewLine changed to a string. You can now read and write any string you like for a line ending. This defaults to Environment.NewLine. When reading, if the value is not explicitly set \r\n, \r, or \n will still be used.
  • +
+

Bug Fixes

+
    +
  • Fixed issue with other platforms than net50 using init.
  • +
  • Fixed issue with being unable to write \r\n in an environment that does use that for Environment.NewLine.
  • +
+

Breaking Changes

+
    +
  • char? CsvConfiguration.NewLine changed to string CsvConfiguration.NewLine.
  • +
+

20.0.0

+

Features

+
    +
  • Parser performance.
  • +
  • Writer performance.
  • +
  • Changed CsvConfiguration to a read only record to eliminate threading issues.
  • +
  • Unix parsing mode. Uses escape character instead of field quoting. Configurable NewLine.
  • +
  • Field caching. Disabled by default. When enabled, this will cache all fields created so duplicate fields won't need to create a new string from a character array.
  • +
+

Breaking Changes

+
    +
  • Removed Caches enum.
  • +
  • ReadingContext and WritingContext were merged into a single CsvContext. Anywhere that used either was changed to CsvContext.
  • +
  • All Funcs and Actions now have their own delegate.
  • +
  • ConvertUsing renamed to Convert.
  • +
  • ShouldQuote now takes in IWriterRow instead of CsvContext.
  • +
  • CsvConfiguration changed from a class to a record.
  • +
  • All CsvConfiguration properties changed to read only get; init;.
  • +
  • CsvConfiguration.NewLine changed to char?.
  • +
  • CsvConfiguration.NewLineString removed.
  • +
  • CsvConfiguration.RegisterClassMap moved to CsvContext.
  • +
  • CsvConfiguration.UnregisterClassMap moved to CsvContext.
  • +
  • CsvConfiguration.AutoMap moved to CsvContext.
  • +
  • All IParserConfiguration setters removed.
  • +
  • bool IParserConfiguration.CacheFields added.
  • +
  • bool IParserConfiguration.LeaveOpen added.
  • +
  • char? IParserConfiguration.NewLine added.
  • +
  • ParserMode IParserConfiguration.Mode added.
  • +
  • IParserConfiguration.IgnoreQuotes removed.
  • +
  • char[] IParserConfiguration.WhiteSpaceChars added.
  • +
  • All IReaderConfiguration setters removed.
  • +
  • IReaderConfiguration.TypeConverterOptionsCache removed.
  • +
  • IReaderConfiguration.TypeConverterCache removed.
  • +
  • IReaderConfiguration.Maps removed.
  • +
  • IReaderConfiguration.RegisterClassMap removed.
  • +
  • IReaderConfiguration.UnregisterClassMap removed.
  • +
  • IReaderConfiguration.AutoMap removed.
  • +
  • ISerializerConfiguration removed and properties added to IWriterConfiguration.
  • +
  • All IWriterConfiguration setters removed.
  • +
  • IWriterConfiguration.QuoteString removed.
  • +
  • IWriterConfiguration.TypeConverterCache removed.
  • +
  • IWriterConfiguration.MemberTypes removed.
  • +
  • IWriterConfiguration.Maps removed.
  • +
  • IWriterConfiguration.RegisterClassMap removed.
  • +
  • IWriterConfiguration.UnregisterClassMap removed.
  • +
  • IWriterConfiguration.AutoMap removed.
  • +
  • MemberMap.Optional added.
  • +
  • MemberMap<TClass, TMember>.ConvertUsing renamed to Convert.
  • +
  • CsvFieldReader removed.
  • +
  • CsvParser.Read returns boolean instead of string[].
  • +
  • CsvParser constructors that take in a FieldReader removed.
  • +
  • CsvParser[int index] added to retrieve fields after a Read.
  • +
  • CsvSerializer removed.
  • +
  • IFieldReader removed.
  • +
  • IParser.ByteCount added.
  • +
  • IParser.CharCount added.
  • +
  • IParser.Count added.
  • +
  • IParser[int index] added.
  • +
  • IParser.Record added.
  • +
  • IParser.RawRecord added.
  • +
  • IParser.Row added.
  • +
  • IParser.RawRow added.
  • +
  • IParser.Read returns bool instead of string[].
  • +
  • IParser.ReadAsync returns bool instead of string[].
  • +
  • IReader.Parser removed.
  • +
  • int IReaderRow.ColumnCount added.
  • +
  • int IReaderRow.CurrentIndex added.
  • +
  • string[] IReaderRow.HeaderRecord added.
  • +
  • IParser IReaderRow.Parser added.
  • +
  • ISerializer removed.
  • +
  • string[] IWriterRow.HeaderRecord added.
  • +
  • int IWriterRow.Row added.
  • +
  • int IWriterRow.Index added.
  • +
  • RecordBuilder removed.
  • +
+

19.0.0

+

Features

+
    +
  • Added the rest of the mapping and attributes configuration for constructor parameters.
  • +
  • Reading speed improvement.
  • +
+

Breaking Changes

+
    +
  • Added IParameterMapper to BooleanFalseValuesAttribute, BooleanTrueValuesAttribute, ConstantAttribute, CultureInfoAttribute, DateTimeStylesAttribute, DefaultAttribute, FormatAttribute, HeaderPrefixAttribute, IgnoreAttribute, NameIndexAttribute, NullValuesAttribute, NumberStylesAttribute, OptionalAttribute, and TypeConverterAttribute.
  • +
  • Renamed MapTypeConverterOption to MemberMapTypeConverterOptions.
  • +
  • Renamed TypeConverterOptions.NumberStyle to TypeConverterOptions.NumberStyles.
  • +
  • Removed ReflectionHelper.CreateInstance<T>.
  • +
  • Removed ReflectionHelper.CreateInstance.
  • +
  • Removed ReflectionHelper.CreateInstanceWithoutContractResolver.
  • +
+

18.0.0

+

Features

+
    +
  • Added parameter mapping via class map or attributes.
  • +
+

Breaking Changes

+
    +
  • NameAttribute added interface IParameterMapper.
  • +
  • IndexAttribute added interface IParameterMapper.
  • +
+

17.0.1

+

Bug Fixes

+
    +
  • Fixed issue where EnumConverter wasn't working if enum value wasn't an Int32.
  • +
+

17.0.0

+

Features

+
    +
  • ValidateHeader will validate all members before calling HeaderValidated.
  • +
+

Breaking Changes

+
    +
  • Action<bool, string[], int, ReadingContext> IReaderConfiguration.HeaderValidated -> Action<InvalidHeader[], ReadingContext> IReaderConfiguration.HeaderValidated
  • +
  • Action<bool, string[], int, ReadingContext> CsvConfiguration.HeaderValidated -> Action<InvalidHeader[], ReadingContext> CsvConfiguration.HeaderValidated
  • +
  • ConfigurationFunctions.HeaderValidated signature changed from (bool isValid, string[] headerNames, int headerNameIndex, ReadingContext context) to (InvalidHeader[] invalidHeaders, ReadingContext context)
  • +
  • CsvReader.ValidateHeader(ClassMap map) -> CsvReader.ValidateHeader(ClassMap map, List<InvalidHeader> invalidHeaders)
  • +
  • Removed HeaderValidationException.HeaderNames.
  • +
  • Removed HeaderValidationException.HeaderNameIndex.
  • +
  • Added InvalidHeader[] HeaderValidationException.InvalidHeaders.
  • +
+

16.2.0

+

Features

+
    +
  • Added ability to put [Name] attribute on enum values.
  • +
  • Added ability to register a converter for Enum that will be a default for all enum types.
  • +
+

16.1.0

+

Features

+
    +
  • GetRecords throws ObjectDisposedException when CsvReader is disposed. A message hint was added to help the user understand what went wrong.
  • +
+

16.0.0

+

Features

+
    +
  • Ability to have duplicate header names when using dynamic records.
  • +
+

Breaking Changes

+
    +
  • Added Func<ReadingContext, int, string> IReaderConfiguration.GetDynamicPropertyName.
  • +
  • Added Func<ReadingContext, int, string> CsvConfiguration.GetDynamicPropertyName.
  • +
+

15.0.10

+
    +
  • Fixed IgnoreAttribute to ignore the whole property treey if put on a reference property when auto mapped.
  • +
+

15.0.9

+

Bug Fixes

+
    +
  • Fixed issue where CsvDataReader.FieldCount was throwing an exception if there were no records.
  • +
+

15.0.8

+

Bug Fixes

+
    +
  • Fixed CsvDataReader.GetOrdinal issue where it wasn't doing a case-insensitive match after a failed case-sensitive match. Run values through PrepareHeaderForMatch.
  • +
+

15.0.7

+

Bug Fixes

+
    +
  • Fixed issue where writing null to WriteField didn't output a field.
  • +
+

15.0.6

+

Bug Fixes

+
    +
  • Fixed test not building.
  • +
+

15.0.5

+

Bug Fixes

+
    +
  • Fixed issue with multiple character delimiter not working when the first char of the delimiter precedes the actual delimiter.
  • +
+

15.0.4

+

Bug Fixes

+
    +
  • Fixed issue with ReflectionHelper caching not always unique.
  • +
+

15.0.3

+

Bug Fixes

+
    +
  • Updated default number styles for DecimalConverter and DoubleConverter to match MS's recommendations.
  • +
+

15.0.2

+

Bug Fixes

+
    +
  • Fixed issue with DataReader.GetValues not working when column and rows have different count.
  • +
+

15.0.1

+

Bug Fixes

+
    +
  • Downgraded System.Threading.Tasks.Extensions to 4.5.2 due to loading error of Microsoft.Bcl.AsyncInterfaces.
  • +
+

15.0.0

+

Features

+
    +
  • Ignore attribute on a reference will ignore all properties on that reference.
  • +
+

Breaking Changes

+
    +
  • Added IMemberReferenceMapper to IgnoreAttribute.
  • +
+

14.0.0

+

Features

+
    +
  • Added IAsyncDispose on writing classes.
  • +
+

Breaking Changes

+
    +
  • Added dependency <PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.3" /> to net45.
  • +
  • Added dependency <PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.3" /> to net47.
  • +
  • Added dependency <PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.3" /> to netstandard2.0.
  • +
  • IWriter added interface IAsyncDisposable for net47 and netstandard2.1.
  • +
  • ISerializer added interface IAsyncDisposable for net47 and netstandard2.1.
  • +
  • WritingContext added interface IAsyncDisposable for net47 and netstandard2.1.
  • +
  • CsvWriter added methods public async ValueTask DisposeAsync() and protected virtual async ValueTask DisposeAsync(bool disposing) for net47 and netstandard.
  • +
  • CsvSerializer added methods public async ValueTask DisposeAsync() and protected virtual async ValueTask DisposeAsync(bool disposing) for net47 and netstandard.
  • +
  • WritingContext added methods public async ValueTask DisposeAsync() and protected virtual async ValueTask DisposeAsync(bool disposing) for net47 and netstandard.
  • +
+

13.0.0

+

Features

+
    +
  • Added netstandard2.1 build.
  • +
  • Added required CultureInfo parameter to any class that uses CultureInfo.
  • +
  • Apply member attributes using interface instead of hard coding.
  • +
  • Added customizable new line when writing. You can choose from CRLF, CR, LF, or Environment.NewLine.
  • +
  • Renamed Configuration to CsvConfiguration to avoid namespace conflicts.
  • +
  • Added GetRecordsAsync and WriteRecordsAsync.
  • +
+

Breaking Changes

+
    +
  • Removed dependency <PackageReference Include="System.Reflection.TypeExtensions" Version="4.4.0" /> from netstandard2.0.
  • +
  • Removed dependency <PackageReference Include="System.Reflection.TypeExtensions" Version="4.4.0" /> from netstandard2.1.
  • +
  • Added dependency <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="1.1.0" /> to net47.
  • +
  • Added dependency <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="1.1.0" /> to netstandard2.0.
  • +
  • ClassMap.AutoMap() -> ClassMap.AutoMap(CultureInfo)
  • +
  • CsvParser.CsvParser(TextReader) -> CsvParser.CsvParser(TextReader, CultureInfo)
  • +
  • CsvParser.CsvParser(TextReader, bool) -> CsvParser.CsvParser(TextReader, CultureInfo, bool)
  • +
  • CsvReader.CsvReader(TextReader) -> CsvReader.CsvReader(TextReader, CultureInfo)
  • +
  • CsvReader.CsvReader(TextReader, bool) -> CsvReader.CsvReader(TextReader, CultureInfo, bool)
  • +
  • CsvSerializer.CsvSerializer(TextWriter) -> CsvSerializer.CsvSerializer(TextWriter, CultureInfo)
  • +
  • CsvSerializer.CsvSerializer(TextWriter, bool) -> CsvSerializer.CsvSerializer(TextWriter, CultureInfo, bool)
  • +
  • CsvWriter.CsvWriter(TextWriter) -> CsvWriter.CsvWriter(TextWriter, CultureInfo)
  • +
  • CsvWriter.CsvWriter(TextWriter, bool) -> CsvWriter.CsvWriter(TextWriter, CultureInfo, bool)
  • +
  • Factory.CreateParser(TextReader) -> Factory.CreateParser(TextReader, CultureInfo)
  • +
  • Factory.CreateReader(TextReader) -> Factory.CreateReader(TextReader, CultureInfo)
  • +
  • Factory.CreateWriter(TextWriter) -> Factory.CreateWriter(TextWriter, CultureInfo)
  • +
  • IFactory.CreateParser(TextReader) -> IFactory.CreateParser(TextReader, CultureInfo)
  • +
  • IFactory.CreateReader(TextReader) -> IFactory.CreateReader(TextReader, CultureInfo)
  • +
  • IFactory.CreateWriter(TextWriter) -> IFactory.CreateWriter(TextWriter, CultureInfo)
  • +
  • Added ISerializerConfiguration.NewLine.
  • +
  • Added ISerializerConfiguration.NewLineString.
  • +
  • Added Configuration.NewLine.
  • +
  • Added Configuration.NewLineString.
  • +
  • Removed Configuration.Configuration() parameterless constructor.
  • +
  • Attributes now require the use of IMemberMapper or IMemberReferenceMapper to be loaded. All existing attributes added these and implemented the interface.
  • +
  • Renamed Configuration to CsvConfiguration.
  • +
  • Added IAsyncEnumerable<T> CsvReader.GetRecordsAsync<T>()
  • +
  • Added IAsyncEnumerable<T> CsvReader.GetRecordsAsync<T>(T anonymousTypeDefinition)
  • +
  • Added IAsyncEnumerable<object> CsvReader.GetRecordsAsync(Type type)
  • +
  • Added IAsyncEnumerable<T> CsvReader.EnumerateRecordsAsync<T>(T record)
  • +
  • Added Task CsvWriter.WriteRecordsAsync(IEnumerable records)
  • +
  • Added Task CsvWriter.WriteRecordsAsync<T>(IEnumerable<T> records)
  • +
  • Added IAsyncEnumerable<T> IReader.GetRecordsAsync<T>()
  • +
  • Added IAsyncEnumerable<T> IReader.GetRecordsAsync<T>(T anonymousTypeDefinition)
  • +
  • Added IAsyncEnumerable<object> IReader.GetRecordsAsync(Type type)
  • +
  • Added IAsyncEnumerable<T> IReader.EnumerateRecordsAsync<T>(T record)
  • +
  • Added Task IWriter.WriteRecordsAsync(IEnumerable records)
  • +
  • Added Task IWriter.WriteRecordsAsync<T>(IEnumerable<T> records)
  • +
+

12.3.2

+

Bug Fixes

+
    +
  • Changed double and single converters to only test for format "R" if the user hasn't supplied a format.
  • +
+

12.3.1

+

Bug Fixes

+
    +
  • Fix for bug in .NET Framework that causes a StackOverflowException. This needs to be changed back eventually.
  • +
+

12.3.0

+

Features

+
    +
  • Added UriConverter.
  • +
+

12.2.3

+

Big Fixes

+
    +
  • Changed round trip default format to test if "R" works and use backup of "G9" for float and "G17" for double.
  • +
+

12.2.2

+

Bug Fixes

+
    +
  • Fixed issue where multiple properties with the same name were used when a child class property hides a parent class property using the new modifier.
  • +
  • Fixed issue where a null reference exception was thrown when writing and all properties are ignored.
  • +
+

12.2.1

+

Bug Fixes

+
    +
  • Fixed issue where an "Index out of bounds of the array" exception was happening on TryGetField of type DateTime.
  • +
  • Fix RawRecord adding spaces if TrimOptions.Trim is used.
  • +
+

12.2.0

+

Features

+
    +
  • Allow default value when using optional members.
  • +
  • Added BigIntConverter.
  • +
  • Mapping to member with type Type will throw exception by default.
  • +
+

Bug Fixes

+
    +
  • Made SingleConverter and DoubleConverter round-trip-able.
  • +
+

12.1.3

+

Bug Fixes

+
    +
  • Always write \r\n line endings to be compliant with RFC 4180.
  • +
+

12.1.2

+

Bug Fixes

+
    +
  • Fixed issue where CsvDataReader would skip the first row when there is no header record.
  • +
  • Fixed CsvDataReader issue where null values weren't being represented as DBNull.Value on GetValue and GetValues methods.
  • +
  • Fixed issue with IsDBNull method where an empty string was considered a null.
  • +
+

12.1.1

+

Bug Fixes

+
    +
  • Fixed issue where CsvReader.ReadAsync wasn't behaving the same as CsvReader.Read.
  • +
+

12.1.0

+

Features

+
    +
  • Added constructor to Configuration to pass in the CultureInfo. When passing a culture in, the Delimiter will be set to CultureInfo.TextInfo.ListSeparator.
  • +
+

12.0.1

+

Bug Fixes

+
    +
  • Fixed issue where writing a dynamic object would still sort the header when no sort was specified.
  • +
+

12.0.0

+

Features

+
    +
  • Added config option for sorting dynamic object properties when writing. Defaults to property value set order.
  • +
+

Breaking Changes

+
    +
  • Added IComparer<string> IWriterConfiguration.DynamicPropertySort.
  • +
  • Added IComparer<string> Configuration.DynamicPropertySort.
  • +
+

11.0.1

+

Bug Fixes

+
    +
  • Fixed issue with leaveOpen not being used in the context's dispose.
  • +
+

11.0.0

+

Features

+
    +
  • Removed config options QuoteAllFields, QuoteNoFields, QuoteRequiredChars, and BuildREquiredQuoteChars in favor of ShouldQuote function.
  • +
+

Breaking Changes

+
    +
  • Removed IWriterConfiguration.QuoteAllFields.
  • +
  • Removed IWriterConfiguration.QuoteNoFields.
  • +
  • Removed IWriterConfiguration.QuoteRequiredChars.
  • +
  • Removed IWriterConfiguration.BuildRequiredQuoteChars.
  • +
  • Removed Configuration.QuoteAllFields.
  • +
  • Removed Configuration.QuoteNoFields.
  • +
  • Removed Configuration.QuoteRequiredChars.
  • +
  • Removed Configuration.BuildRequiredQuoteChars.
  • +
  • Added Func<string, WritingContext, bool> IWriterConfiguration.ShouldQuote.
  • +
  • Added Func<string, WritingContext, bool> Configuration.ShouldQuote.
  • +
+

10.0.0

+

Features

+
    +
  • Added a more friendly header validation message.
  • +
  • Separated header and field validation exceptions.
  • +
  • Added data properties to validation classes.
  • +
  • Changed Configuration.ReadingExceptionOccurred to not throw an exception and return a boolean whether it should throw an exception. The caller will throw if true.
  • +
  • Changed NamedIndexCache type from Tuple<string, int> to (string, int).
  • +
  • Config option to consider a line break in a quoted field as bad data.
  • +
  • Changed delimiter default value from ',' to CultureInfo.CurrentCulture.TextInfo.ListSeparator.
  • +
  • PrepareHeaderForMatch now passes in the header name and index.
  • +
  • Dynamic records will now have null properties for missing fields.
  • +
  • Write ExpandoObject and IDynamicMetaObjectProvider object properties in ascending order to ensure order of property creation doesn't matter.
  • +
  • Added escape character configuration.
  • +
  • Added IDataReader implementation. This allows for easily loading a DataTable.
  • +
+

Breaking Changes

+
    +
  • ValidationException is now abstract.
  • +
  • IReaderConfiguration.ReadingExceptionOccurred type changed from Action<CsvHelperException> to Func<CsvHelperException, bool>.
  • +
  • Configuration.ReadingExceptionOccurred type changed from Action<CsvHelperException> to Func<CsvHelperException, bool>.
  • +
  • Changed NamedIndexCache type from Tuple<string, int> to (string, int). This adds a dependency to System.ValueTuple on .NET 4.5.
  • +
  • Added bool IParserConfiguration.LineBreakInQuotedFieldIsBadData.
  • +
  • Added bool Configuration.LineBreakInQuotedFieldIsBadData.
  • +
  • Changed IReaderConfiguration.PrepareHeaderForMatch type from Func<string, string> to Func<string, int, string>.
  • +
  • Changed Configuration.PrepareHeaderForMatch type from Func<string, string> to Func<string, int, string>.
  • +
  • Added char ISerializerConfiguration.Escape.
  • +
  • Added char IParserConfiguration.Escape.
  • +
  • Added char Configuration.Escape.
  • +
+

9.2.3

+

Bug Fixes

+
    +
  • Fixed issue where TrimOptions.InsideQuotes would fail when there were escaped quotes in the field.
  • +
+

9.2.2

+

Bug Fixes

+
    +
  • Fixed issue where NamedIndexes wasn't being reset on ReadHeader call.
  • +
+

9.2.1

+

Bug Fixes

+
    +
  • Fixed issue where a TypeConverterAttribute isn't being used when on a reference.
  • +
+

9.2.0

+

Features

+
    +
  • More clear exception messages when reading and a missing field is found.
  • +
+

9.1.0

+

Features

+
    +
  • Allow parameterless constructor on classes and reference property classes when auto mapping.
  • +
+

9.0.2

+

Bug Fixes

+
    +
  • Fixed issue where WriteAsync wasn't calling SanitizeForInjection.
  • +
+

9.0.1

+

Bug Fixes

+
    +
  • Fixed issue where leaveOpen parameter in CsvParser constructor was hard coded.
  • +
  • Fixed issue where header validation was being ran on properties that only had an index mapped.
  • +
+

9.0.0

+

This release contains changes from 8.3.0 and 8.2.0.

+

8.3.0

+

This has been unlisted in nuget because of a breaking change before it. The changes are in 9.0.0.

+

Features

+
    +
  • Removed restriction that was disallowing the null char '\0' to be used as a delimiter.
  • +
+

8.2.0

+

This has been unlisted in nuget because of a breaking change. The changes are in 9.0.0.

+

Features

+
    +
  • Added Optional config to factory builder.
  • +
  • Added OptionalAttribute.
  • +
+

Breaking Changes

+
    +
  • Added IHasMapOptions : IHasOptional.
  • +
  • Added MemberMapBuilder : IHasOptional.
  • +
  • Added MemberMapBuilder : IHasOptionalOptions.
  • +
+

8.1.1

+

Features

+
    +
  • Configuration functions are available on a static class ConfigurationFunctions.
  • +
+

Bug Fixes

+
    +
  • Fixed issue where IgnoreBlankLines wasn't being checked in GetField<T>(int index, ITypeConverter converter).
  • +
+

8.1.0

+

Features

+
    +
  • Added IsOptional mapping option.
  • +
+

8.0.0

+

Features

+
    +
  • Added Unity build.
  • +
  • Added IsOptional mapping option.
  • +
+

Bug Fixes

+
    +
  • Added missing interface methods to configs.
  • +
  • Fixed issue with parsing when only CR is used and fields are quoted.
  • +
  • Fixed issue where GetField was calling the ObjectResolver.
  • +
  • Made the contexts not serializable in exceptions.
  • +
  • Fixed issue with ObjectResolver fallback causing a StackOverflowException.
  • +
+

Breaking Changes

+
    +
  • Added IReaderConfiguration.IgnoreReferences.
  • +
  • Added IWriterConfiguration.IgnoreReferences.
  • +
+

7.1.1

+

Bug Fixes

+
    +
  • Added constructor to CsvWriter that allows for leaveOpen to be set.
  • +
  • Made CsvWriter.Dispose able to be called multiple times.
  • +
  • Added ConfigureAwait(false) to all async calls.
  • +
+

7.1.0

+

Features

+
    +
  • Changed record object creation to use the ObjectResolver.
  • +
+

7.0.1

+

Bug Fixes

+
    +
  • Allow private constructors to be used to instantiate new class instances.
  • +
+

7.0.0

+

Features

+
    +
  • Reading performance improvements.
  • +
+

Breaking Changes

+
    +
  • Removed IReadingContext and IWritingContext interfaces. ReadingContext and WritingContext are used directly now.
  • +
+

6.1.1

+

Bug Fixes

+
    +
  • Fixed issue with circular references when auto mapping.
  • +
+

6.1.0

+

Features

+
    +
  • Dynamic now uses Configuration.PrepareHeaderForMatch on header name to get property name for dynamic object.
  • +
+

6.0.3

+

Bug Fixes

+
    +
  • Fixed issue with LINQPad not working properly due to types from differently assemblies being cached in the writer.
  • +
+

Breaking Changes

+
    +
  • IWritingContext.TypeActions signature changed.
  • +
+

6.0.2

+

Bug Fixes

+
    +
  • Fixed issue with LINQPad not working properly due to types from differently assemblies being cached.
  • +
+

6.0.0

+

Features

+
    +
  • Use ObjectResolver to create internal classes RecordManager, ExpressionManager, RecordCreatorFactory, and RecordHydrator, RecordWriterFactory.
  • +
  • Added generic resolve method to object resolver.
  • +
  • Added mapping methods to MemberMap for use during runtime mapping.
  • +
  • Added more info and properties to TypeConverterException.
  • +
+

Bug Fixes

+
    +
  • Fixed issue where mapping an interface doesn't get used when writing.
  • +
+

Breaking Changes

+
    +
  • Added IObjectResolver.Resolve<T>( params object[] constructorArgs ) method.
  • +
  • Added IWriter.WriteRecords<T>( IEnumerable<T> records ) method.
  • +
  • TypeConverterException constructors signatures changed.
  • +
+

5.0.0

+

Features

+
    +
  • Added Map<TClass>.References( expression ) back in.
  • +
+

Bug Fixes

+
    +
  • Fixed DefaultTypeConverterException message. The generated message wasn't being used.
  • +
+

4.0.3

+

Bug Fixes

+
    +
  • Added ReadingExceptionOccurred callback to GetRecord methods when an exception occurs.
  • +
+

4.0.2

+

Bug Fixes

+
    +
  • Fixed issue with parsing when buffer spans over a field.
  • +
+

4.0.1

+

Bug Fixes

+
    +
  • Fixed issue where trimming inside quotes would fail when the character after a space was a delimiter, \r, or \n.
  • +
+

4.0.0

+

Breaking Changes

+
    +
  • Added setter to ISerializerConfiguration.Quote.
  • +
  • Removed ClassMap<TClass>.References( expression, constructorArs ). Use sub property mapping instead.
  • +
  • Removed ClassMap<TClass>.ConstructUsing( expression ). Use the ObjectResolver` instead.
  • +
  • Change how reference header prefixing works.
  • +
  • Changed Configuration/IReaderConfiguration/IWriterConfiguration bool PrefixReferenceHeaders to Func<Type, string, string> ReferenceHeaderPrefix. The function takes in the member type and member name and returns the prefix.
  • +
  • Removed MemberReferenceMap.Prefix() method.
  • +
  • Removed ParameterReferenceMap.Prefix() method.
  • +
  • Changed Configuration/IReaderConfiguration/IWriterConfiguration ClassMap AutoMap<T>() to ClassMap<T> AutoMap<T>()
  • +
  • Changed TypeConverterException constructors parameter from ReadingContext to IReadingContext.
  • +
+

3.4.0

+

Bug Fixes

+
    +
  • Fixed issue when a map was created through auto mapping, you couldn't use sub property mapping to update a member.
  • +
+

3.3.0

+

Features

+
    +
  • Added more information to the DefaultTypeConverter.ConvertFromString not convertible exception.
  • +
  • Reduced the number of PrepareHeaderForMatch calls.
  • +
+

3.2.0

+

Features

+
    +
  • Attribute mapping. It's back...
  • +
+

3.1.1

+

Bug Fixes

+
    +
  • Fixed issue where you weren't able to write IEnumerable.
  • +
+

3.1.0

+

Features

+
    +
  • Allow multiple headers to be written.
  • +
+

Bug Fixes

+
    +
  • Flush CsvWriter on Dispose.
  • +
  • Made ShouldSkipRecord not called if the parser returns null for an end of stream.
  • +
  • ShouldUseConstructorParameters returns false if there are no constructors.
  • +
  • Header validation doesn't validate members where ConvertUsing or Constant are used.
  • +
+

3.0.0

+

Features

+
    +
  • netstandard2.0
  • +
  • Massive speed improvements to the CsvParser.
  • +
  • Speed improvements to CsvSerializer.
  • +
  • Map child properties so multiple mapping classes aren't needed.
  • +
  • ConvertUsing implementation for writing.
  • +
  • Read/write IEnumerable properties.
  • +
  • Field mapping.
  • +
  • Async reading/writing.
  • +
  • Added ClassMapBuilder to build maps on the fly without a mapping class.
  • +
  • Write IDynamicMetaObjectProvider objects. DynamicObject and ExpandoObject are the 2 most common.
  • +
  • Allow null fields to be written.
  • +
  • IDictionary type converters.
  • +
  • Added trim options to trim in parser and removed trim from reader.
  • +
  • Header validation.
  • +
  • Field validation.
  • +
  • Added leaveOpen flag to constructors to not dispose of underlying TextReader and TextWriter.
  • +
  • Added properties to CsvHelperException and removed the string data.
  • +
  • Speed up mappings that use ConvertUsing by caching the named indexes.
  • +
  • Write comments.
  • +
  • Map constants.
  • +
  • Write fields that aren't mapped.
  • +
  • Specify values that resolve to null when reading.
  • +
  • Added CsvProperMap to allow for compile time type checking on mappings.
  • +
  • Read more than 1 header row.
  • +
  • Changed reading exception callback to send a CsvHelperException.
  • +
  • Map the same property more than once.
  • +
  • Exposed the underlying TextReader as a property.
  • +
  • Removed header matching manipulation configuration IsHeaderCaseSensitive, IgnoreHeaderWhiteSpace, and TrimHeaders and added a config for PrepareHeaderForMatch that is a function. Both the header field name and the property name are ran through this method before matching against each other.
  • +
  • Added interfaces for configuration so you can tell what options are available in your current context.
  • +
  • Moved detection of column count changes into the reader. The parser shouldn't care and should just return whatever data it finds.
  • +
  • ConstructUsing works with reference maps.
  • +
  • ConstructUsing can use initializers.
  • +
  • Allow resuming reading of more data is written to the stream.
  • +
  • Auto mapping with user defined struct.
  • +
  • Ability to change required quote characters.
  • +
  • Speed improvements when using GetField.
  • +
  • Speed improvements when using WriteField.
  • +
  • Allow mapping default value to be a string that is converted.
  • +
  • Moved reading/writing state data into a common context object that is shared.
  • +
  • Multiple string formats for TypeConverterOptions.
  • +
  • Created object resolver so interfaces can be mapped to and IoC containers can be plugged in.
  • +
  • Made methods ReIndex and GetMaxIndex on CsvClassMap public.
  • +
  • Added a Flush method to the writer so NextRecord just writes a line ending. This will allow users to not write a line ending if they want.
  • +
  • Removed statics to eliminate possible threading issues.
  • +
  • Added SerializableAttribute to exception classes. It was removed previously because of netstandard1.x not having it available.
  • +
  • Added ByteArrayConverter.
  • +
  • Reading anonymous types.
  • +
  • Auto mapping with any constructor.
  • +
  • Changed Property naming to Member since both properties and fields are used.
  • +
  • TypeConverterFactory is now instance of Configuration instead of a static.
  • +
  • Changed Configuration flags to callbacks with default functionality to let the user change the functionality if they want.
  • +
+

Bug Fixes

+
    +
  • Fixed issue with CsvClassMapCollection[type] choosing the wrong type when multiple types on the inheritance tree are mapped.
  • +
  • Fixed issue where setting Configuration.ShouldSkipRecord method always overrides the Configuration.SkipEmptyRecords setting.
  • +
  • Fixed issue where ignoring header whitespace wouldn't work if a named property had the same whitespace in it.
  • +
  • When comments are on and a field is being written that is the first field in the record and the first char is a comment char, quote the field because it's not a comment.
  • +
  • Fixed issue with type converter options set in factory not working with auto mapping or explicit map.
  • +
  • Fixed line ending spanning buffer issue.
  • +
  • Fixed issue of skipping a character if a line ending was within a quoted field.
  • +
  • Added locking to factory to make it thread safe.
  • +
  • Fixed bug when mapping a constant then mapping another property after will throw an exception.
  • +
  • Changed reflection calls to ConvertToString to get the method for ITypeConverter instead of the actual converter. This is so the overridden implementation will be used instead of a random method with the same name.
  • +
  • Adding locking in ReflectionHelper.CreateInstance for the static delegate cache.
  • +
  • Fixed quote handling issue of IsFieldBad by marking unquoted fields with quote chars as bad only when Configuration.IgnoreQuotes is false.
  • +
  • Fixed issue with automapping not mapping references correctly in some nested situations because it thought it was a circular dependency when it wasn't.
  • +
  • Fixed issue with private properties not being able to be set.
  • +
  • Fixed issue with getting the class map from the collection. It was only getting the current and not looking up the tree.
  • +
  • Fixed issue with Constant not working with null.
  • +
+

Breaking Changes

+
    +
  • Removed all .NET builds except for net45 and netstandard2.0.
  • +
  • Removed obsolete code.
  • +
  • object ICsvReader.GetField( int index, ITypeConverter converter )
  • +
  • object ICsvReader.GetField( string name, ITypeConverter converter )
  • +
  • object ICsvReader.GetField( string name, int index, ITypeConverter converter )
  • +
  • void ICsvWriter.WriteField( Type type, object field )
  • +
  • void ICsvWriter.WriteField( Type type, object field, ITypeConverter converter )
  • +
  • void ICsvWriter.WriteRecord( Type type, object record )
  • +
  • Moved methods that aren't row level out of ICsvReaderRow and into ICsvReader.
  • +
  • IEnumerable<T> GetRecords<T>()
  • +
  • IEnumerable<object> GetRecords( Type type )
  • +
  • void ClearRecordCache<T>()
  • +
  • void ClearRecordCache( Type type )
  • +
  • void ClearRecordCache()
  • +
  • Removed CanConvertTo and CanConvertFrom from the type converters because there is no need for them.
  • +
  • Added properties to CsvHelperException and removed the string data.
  • +
  • Changed WriteRecord to not call NextRecord.
  • +
  • Changed config setting name from IgnorePrivateAccessor to IncludePrivateProperties to be more clear on intention.
  • +
  • Changed reading exception callback to send a CsvHelperException.
  • +
  • Removed configuration IsHeaderCaseSensitive, IgnoreHeaderWhiteSpace, and TrimHeaders and added PrepareHeaderForMatch.
  • +
  • Changed DateTime and DateTimeOffset converters to not work when the string is spaces to match what all the other converters do. The .NET Framework DateTime and DateTimeOffset converters will convert a string of all spaces into MinValue, so we are diverging from that a little.
  • +
  • Changed ReadHeader to not set CurrentRecord to null.
  • +
  • Removed Excel specific code. This will go into a separate library. The malformed fallback behavior that mimics Excel still exists.
  • +
  • Moved reading/writing state data into a common context object that is shared.
  • +
  • Changed BadDataCallback to take in a ReadingContext instead of a string.
  • +
  • Removed Csv prefix from all classes except CsvReader, CsvParser, CsvWriter, and CsvSerializer.
  • +
  • Removed default null values since there is no common standard that could be found.
  • +
  • Removed default boolean values of yes, y, no, n since it's not a standard boolean. true, false, 1, 0 still work.
  • +
  • Changed default delimiter to , instead of ListSeparator.
  • +
  • Added a Flush method to the writer.
  • +
  • Changed Property naming to Member.
  • +
  • Removed Configurations ThrowOnBadData, IgnoreReadingExceptions, SkipEmptyRecords, and WillThrowOnMissingField in favor of function callbacks.
  • +
  • Renamed +
      +
    • TypeConverterFactory to TypeConverterCache
    • +
    • TypeConverterOptionsFactory to TypeConverterOptionsCache
    • +
    • Configuration.HeaderValidatedCallback to Configuration.HeaderValidated
    • +
    • Configuration.MissingFieldFoundCallback to Configuration.MissingFieldFound
    • +
    • Configuration.ReadingExceptionCallback to Configuration.ReadingExceptionOccurred
    • +
    • Configuration.BadDataFoundCallback to Configuration.BadDataFound
    • +
    • ICsvParser to IParser
    • +
    • FieldReader to CsvFieldReader
    • +
    • ICsvReader to IReader
    • +
    • ICsvReaderRow to IReaderRow
    • +
    • ICsvSerializer to ISerializer
    • +
    • ICsvWriter to IWriter
    • +
    • ICsvWriterRow to IWriterRow
    • +
    +
  • +
+

2.16.3

+

Bug Fixes

+
    +
  • Fixed issue with CsvClassMapCollection[type] choosing the wrong type when multiple types on the inheritance tree are mapped.
  • +
+

2.16.2

+

Bug Fixes

+
    +
  • Made TypeInfo compatibility stuff internal to not cause conflicts.
  • +
+

2.16.1

+

Bug Fixes

+
    +
  • Fix for UWP release not working.
  • +
+

2.16

+

Features

+
    +
  • Added CsvReader.ReadHeader so headers can be read without reading the first row.
  • +
+

2.15.0.2

+

Features

+
    +
  • Update to .NET Core 1.0 release.
  • +
+

2.15

+

Features

+
    +
  • Added SerializableAttribute to all exceptions.
  • +
+

2.14.3

+

Features

+
    +
  • Updated project to .NET Core RC2.
  • +
+

Bug Fixes

+
    +
  • Fixed issue with assembly not being a release build.
  • +
+

2.14.2

+

Bug Fixes

+
    +
  • Added net45 build and excluded it from CoreFX compatibility.
  • +
+

2.14.1

+

Bug Fixes

+
    +
  • Fixed issue with .NET 2.0 classes being included that shouldn't have been in .NET 4.0.
  • +
+

2.14

+

Features

+
    +
  • Added CoreCLR support.
  • +
+

2.13.5

+

Bug Fixes

+
    +
  • Fixed ShouldSkipRecord not working on rows before header.
  • +
+

2.13.3

+

Bug Fixes

+
    +
  • Fixed issue where the number of delimiter characters was read when a multiple character delimiter is hit. This was causing non-delimiters to be read when just the first character of the delimiter was found.
  • +
+

2.13.2

+

Bug Fixes

+
    +
  • Fixed issue with TryGetField with named index returning wrong value.
  • +
+

2.13.1

+

Bug Fixes

+
    +
  • Added missing DateTimeConverter to the list of default converters.
  • +
+

2.13

+

Features

+
    +
  • When writing, use empty values for properties on reference properties when flag UseNewObjectForNullReferenceProperties is off.
  • +
+

Bug Fixes

+
    +
  • Fixed portable target for Windows Phone 8.1.
  • +
+

2.12

+

Features

+
    +
  • Added Windows Phone 8.1 support to the PCL assembly.
  • +
  • Added ability to set a prefix for reference maps. i.e. Prefix( string prefix = null)
  • +
  • Added callback to use to determine if a record should be skipped when reading.
  • +
  • Excel leading zeros number formatting. This allows you to read and write numbers that will preserve the zeros on the front. i.e. ="0001"
  • +
  • Use default value when a field is null because of a missing field in the row.
  • +
  • Added TrimFields to CsvWriter.
  • +
  • ability to specify constructor arguments when referencing another map within a mapping.
  • +
  • Added Names property on CsvPropertyNameCollection to get raw list of property names.
  • +
  • Added raw file line number to parser.
  • +
  • Mapping methods on CsvClassMap<T> are now public to more easily allow mapping during runtime.
  • +
  • Added DateTimeOffset converter.
  • +
+

Bug Fixes

+
    +
  • Fixed exception that was occurring when fields were empty and UseExcelLeadingZerosFormatForNumerics = true.
  • +
  • Excel compatibility fix. If a field starts with a quote but never ends and the end of the file is reached, the field would be null. The field will now contain everything.
  • +
  • Don't get static properties when automapping.
  • +
  • Made all exceptions thrown contain Exception.Data["CsvHelper"].
  • +
  • Fixed missing support writing the double quotes for inner quotes on a quoted field. This used to be there and was removed at some point. A unit test is now in place so this doesn't happen again.
  • +
+

2.11.1.1

+

Bug Fixes

+
    +
  • Fixed issue with writing an array of records.
  • +
+

2.11

+

Features

+
    +
  • Allow preservation of numeric strings for Excel.
  • +
+

Bug Fixes

+
    +
  • Fixed writing issue with anonymous objects outputting wrong headers.
  • +
+

2.10

+

Features

+
    +
  • Updated writer methods to match reader methods.
  • +
+

2.9.1

+

Bug Fixes

+
    +
  • Fixed issue where char converter would trim a single space string.
  • +
+

2.9

+

Features

+
    +
  • Added support to ignore whitespace when determining a record is empty.
  • +
+

2.8.4

+

Bug Fixes

+
    +
  • Fixed breaking change to not break.
  • +
+

2.8.3

+

Bug Fixes

+
    +
  • Fixed issue where header wasn't written when there were no records in the IEnumerable on WriteRecords( IEnumerable ).
  • +
+

2.8.2

+

Bug Fixes

+
    +
  • Fixed issue where an exception was always thrown if Configuration.ThrowOnBadData is on.
  • +
+

2.8

+

Features

+
    +
  • Added configurations for a callback when a bad field is detected. Added configuration to throw an exception when a bad field is detected.
  • +
  • Made mapping with interfaces not duplicate property maps.
  • +
+

2.7.1

+

Bug Fixes

+
    +
  • Fixed issue with mappings overwriting an explicitly set index when re-indexing.
  • +
  • Auto mapping will ignore Enumerable properties instead of throwing an exception. Exceptions will still be thrown if an Enumerable is used outside of auto mapping.
  • +
+

2.7

+

Bug Fixes

+
    +
  • Fixed issue where using dynamic proxy objects would always automap instead of using a registered class map.
  • +
  • Fixed issue when trimming fields and the field is null.
  • +
  • Fixed issue when writing a field and the value is null.
  • +
  • Removed deprecated writer methods.
  • +
+

2.6.1

+

Features

+
    +
  • PCL implementation. .NET 4.0+, Silveright 4.0+, WP7 7.5+, Windows 8
  • +
  • Excel separator record reading and writing.
  • +
  • Writer speed enhancements. Thanks to thecontrarycat.
  • +
+

Bug Fixes

+
    +
  • Fixed issue with mapping order when no index is specified.
  • +
+

2.6

+

Features

+
    +
  • Added config to prefix headers of reference properties with the parent property name when automapping.
  • +
  • Ability to ignore blank lines. When this config option is set to false, the parser will return and array of nulls. You can differentiate between a row with commas this way. The reader will behave the same way as a blank record.
  • +
+

Bug Fixes

+
    +
  • Fixed issue when writing and a reference map type is a struct.
  • +
+

2.5

+

Features

+
    +
  • Global type converter options.
  • +
  • Easier access to property maps to allow for changing maps on the fly.
  • +
  • Option to ignore references when auto mapping.
  • +
  • AutoMap functionality is available in class maps.
  • +
  • Mappings can be specified in the constructor of the mapping class. Overriding CreateMap is now deprecated.
  • +
+

Bug Fixes

+
    +
  • Updated ConvertUsing to not cause the exception "Operation Could Destabilize the Runtime" when property is a nullable type and a non-nullable type is returned.
  • +
+

2.4.1

+

Bug Fixes

+
    +
  • Fixed issue where parsing would add delimiter chars to the field when the buffer ran out in the middle of the delimiter.
  • +
+

2.4

+

Features

+
    +
  • Split writing up into a writer and serializer so the writer can write other things besides CSV files.
  • +
+

Bug Fixes

+
    +
  • Fixed issue where a NullReferenceException was thrown when using reference maps and a reference was null.
  • +
  • Fixed issue where TryGetField was throwing MissingFieldException.
  • +
  • Fixed issue where a commented row on the last line that doesn't have a newline will return the commented row.
  • +
  • Fixed NuGet package for WP8.
  • +
  • Added missing WriteHeader methods to ICsvWriter that were a part of CsvWriter.
  • +
+

2.3

+

Features

+
    +
  • Support for TimeSpan.
  • +
  • Support for writing records of type dynamic. The dynamic objects do not work with collections, which means ExpandoObject doesn't currently work.
  • +
+

Bug Fixes

+
    +
  • Fixed issue with extra exception info not being added when the reading exception callback is used.
  • +
  • Fixed issue where having only reference maps throws exception.
  • +
+

2.2.2

+

Bug Fixes

+
    +
  • Fixed issue with parser where a line wouldn't end if the previous char was a \0.
  • +
+

2.2.1

+

Bug Fixes

+
    +
  • Fixed issue with trimming fields not working under one path. +2.2.0
  • +
+

Features

+
    +
  • Added Row property to ICsvReader.
  • +
  • Config option to trim headers and values when reading.
  • +
+

2.1.1

+

Bug Fixes

+
    +
  • Fixed issue when WillThrowOnMissingField is off and exception was still being thrown.
  • +
+

2.1.0

+

Features

+
    +
  • Made RegisterClassMap overload with CsvClassMap instance public.
  • +
+

2.0.1

+

Bug Fixes

+
    +
  • Made a WinRT Any CPU build and removed the arch specific WinRT builds.
  • +
+

2.0.0

+

Features

+
    +
  • Added parser configuration to ignoring quotes and treating them like any other character.
  • +
  • Added CsvFactory to create ICsvParser, ICsvReader, and ICsvWriter classes. This is useful when you need to unit test code that uses CsvHelper since these 3 classes require a TextReader or TextWriter to work.
  • +
  • All assembly versions are strong named but will use a single version of 2.0.0.0. The file version and NuGet versions will change with every release.
  • +
  • Removed class type constraint from reading and writing.
  • +
  • Added non-generic class mapping overload.
  • +
  • WriteRecords param changed from IEnumerable to non-generic IEnumerable. +
  • Value types can be read and written instead of just custom classes.
  • +
  • Indexes are automatically set and incremented when mapping in order of the Map and Reference calls.
  • +
  • Auto mapping with circular reference detection.
  • +
  • Config option to ignore spaces in header names.
  • +
  • Fixed exception handling. Exception are no longer wrapped. Exception.Data["CsvHelper"] contains CsvHelper specific exception info.
  • +
  • Row exception can be skipped during GetRecords.
  • +
  • Renamed IsStrictMode to WillThrowOnMissingField.
  • +
  • Window Phone 7 & 8 builds.
  • +
  • Auto mapping will use defined maps if available.
  • +
  • Type converter options.
  • +
  • Added IEnumerable converter that throws an exception so people will know that converting to/from and enumerable is not supported instead of getting a cryptic error message.
  • +
  • Dynamic support for reading and writing.
  • +
  • Multiple maps can be supplied.
  • +
  • Renamed InvalidateRecordCache to ClearRecordCache.
  • +
  • Recursive reference mapping down the whole mapping tree.
  • +
  • Configuration.CultureInfo was added in place of Configuration.UseInvariantCulture.
  • + +

    Bug Fixes

    +
      +
    • Getting the exception helper message failed when writing because no parser is available.
    • +
    • WriteRecords Dynamic invoke had wrong parameter count.
    • +
    • GetField( string ) was not returning null if the header is not found.
    • +
    • CsvBadDataException when there were extra columns in the row.
    • +
    • Raw record corruption.
    • +
    +

    1.17.0

    +

    Features

    +
      +
    • Ignore properties that can't be set in attribute mapping.
    • +
    • Made TypeConverterFactory thread safe.
    • +
    • Added remove converter method.
    • +
    +

    Bug Fixes

    +
      +
    • Issue with writer exception in WinRT.
    • +
    +

    1.16.0

    +

    Features

    +
      +
    • Change TypeConverterFactory to use a set of cache type converters so global type converters can be used.
    • +
    • Added GetField<T, TConverter> overloads.
    • +
    • Changed all Activator.CreateInstance calls to use compiled expression trees to create them instead.
    • +
    • Changed mapping for ConvertUsing to accept a Func so a block expression can be used.
    • +
    +

    1.15.0

    +

    Features

    +
      +
    • Support for Silverlight 4 & 5.
    • +
    +

    Bug Fixes

    +
      +
    • Issue where writing with Configuration.QuoteAllFields enabled will not quote the quotes inside the field.
    • +
    • Issue with WinRT not building after pull request merge.
    • +
    +

    1.14.0

    +

    Features

    +
      +
    • Parse full line on read. This allows for the parser to retain the whole unchanged raw CSV lin on a read.
    • +
    • Changed delimiter config from a char to a string.
    • +
    • Iterating records multiple times will throw a CsvReaderException. This is to help stop confusion when 0 results are returned the second iteration.
    • +
    +

    Bug Fixes

    +
      +
    • Issue where EnumConverter isn't created correctly from the TypeConverterFactory.
    • +
    • Issue with updating count for all closing quotes.
    • +
    +

    1.13.0

    +

    Features

    +
      +
    • Configuration to always not quote all fields.
    • +
    • WriteHeader method is public.
    • +
    • Added enum converter.
    • +
    +

    Bug Fixes

    +
      +
    • Issue with boolean converter returning true for "no" value.
    • +
    • Issue with GetMethod in WinRT.
    • +
    +

    1.12.1

    +

    Bug Fixes

    +
      +
    • Issue where an exception was being thrown when reading all records multiple times.
    • +
    +

    1.12.0

    +

    Features

    +
      +
    • WinRT support.
    • +
    +

    1.11.0

    +

    Features

    +
      +
    • Better exception information added to CsvBadDataException.
    • +
    +

    1.10.0

    +

    Features

    +
      +
    • Mapping property for CreateUsing which allows user to specify how the property gets created.
    • +
    +

    1.9.2

    +

    Bug Fixes

    +
      +
    • Issue with skipping empty records.
    • +
    +

    1.9.1

    +

    Bug Fixes

    +
      +
    • Issue with detecting column count changes.
    • +
    +

    1.9.0

    +

    Features

    +
      +
    • Added properties to CsvReaderException to give more information about the error.
    • +
    • Ability to skip empty records based on config settings.
    • +
    • Getting by index that doesn't exist will give a default or CsvMissingFieldException.
    • +
    • Made column count detection a config setting.
    • +
    • Map option for constructing the row object.
    • +
    • Throw exception when inconsistent column lengths are detected.
    • +
    • String.Format support in CsvWriter.
    • +
    • Excel compatible parsing.
    • +
    • Parser can keep track of the byte position using an encoding so a user can seek to a stream and start reading from there.
    • +
    +

    Bug Fixes

    +
      +
    • Fixed bug with column count detection.
    • +
    • Issue with double counting the closing quote.
    • +
    • Issue where parsing was incorrect when the last row didn't have a CRLF at the end.
    • +
    • Issue with error messages.
    • +
    +

    1.8.0

    +

    Features

    +
      +
    • Writer overload for shouldQuote when writing a field.
    • +
    • Ability for using alternative names for headers in the configuration.
    • +
    • Better error messages.
    • +
    +

    1.7.0

    +

    Features

    +
      +
    • Configuration to quote all fields when writing.
    • +
    • Parser keeps a char count of where it's at.
    • +
    +

    Bug Fixes

    +
      +
    • Fixed subclass issue by having the reader and writer use interfaces instead of concrete classes.
    • +
    +

    1.6.0

    +

    Features

    +
      +
    • Custom boolean type converter that can convert from 1 and 0 besides the normal conversion.
    • +
    • Property map configuration to set a default value.
    • +
    • CsvWriter no longer flushes to the output stream after every record.
    • +
    • Non-generic overloads for reading, writing, and attribute mapping.
    • +
    • Invalidate record cache will clear the properties list.
    • +
    +

    1.5.0

    +

    Features

    +
      +
    • Support .NET 2.0 and 3.5 builds.
    • +
    +

    1.4.0

    +

    Features

    +
      +
    • Case insensitive header matching.
    • +
    +

    1.3.0

    +

    Features

    +
      +
    • Removed CsvHelper class.
    • +
    • Property reference mapping. One level deep.
    • +
    +

    1.2.0

    +

    Features

    +
      +
    • Support for multiple duplicate header names.
    • +
    +

    1.1.2

    +

    Bug Fixes

    +
      +
    • Issue when using a readonly or writeonly stream and disposing causes an exception.
    • +
    +

    1.1.1

    +

    Features

    +
      +
    • Updated CsvHelper.cs to allow for readonly and writeonly stream.
    • +
    +

    Bug Fixes

    +
      +
    • Fixed DateTimeConverter issue where a white space string would return a - DateTime.MinValue instead of null.
    • +
    +

    1.1.0

    +

    Features

    +
      +
    • Changed .NET 3.5 project to client profile.
    • +
    • Added getter for the current record in the header.
    • +
    +

    1.0.0

    +

    Features

    +
      +
    • Changed strict mode to default to true.
    • +
    • Renamed strict mode configuration property.
    • +
    • Changed reader to not throw an exception when there are duplicate header records unless in strict mode.
    • +
    +

    Bug Fixes

    +
      +
    • Fixed bug where if there is no line ending at the end of the file, the last field would be null instead of an empty string.
    • +
    • Fixed configuration references and constructor signatures.
    • +
    +

    0.16.0

    +

    Features

    +
      +
    • Added configuration option for using CultureInvariant to read/write.
    • +
    • Updated the reader/writer to use the config option.
    • +
    • Both CsvReader and CsvWriter are using Local culture when converting from/to strings.
    • +
    • CsvClassMap without generic argument.
    • +
    +

    0.15.0

    +

    Features

    +
      +
    • Changed TryGetField to do a low level check instead of jsut wrapping in try/catch blocks.
    • +
    • Removed non generic TryGetField methods.
    • +
    • Formatting changes.
    • +
    • Changed CsvParser to use the Configuration.Comment char instead of #.
    • +
    +

    Bug Fixes

    +
      +
    • Fixed indentation error caused by new constructor in CsvPropertyMap.
    • +
    +

    0.14.0

    +

    Features

    +
      +
    • Changed GetRecords to return IEnumerable.
    • +
    • Added convenience constructor to CsvPropertyMap.
    • +
    • Major configuration overhaul.
    • +
    • Changed end of file check to be more low level.
    • +
    • Final record is returned if there is a trailing delimiter.
    • +
    • Added an exception re-throw to parsing that tells the line and character number.
    • +
    • Added ability to change what the quote char is.
    • +
    • Added CSV specific exceptions.
    • +
    +

    Bug Fixes

    +
      +
    • Fix for issue when CsvHelper uses CurrentCulture instead of InvariantCulture.
    • +
    +

    0.13.0

    +

    Features

    +
      +
    • Changed StreamReader to TextReader to be more generic.
    • +
    +

    0.12.0

    +

    Features

    +
      +
    • Added option to have a commented out line using '#' as the first character of the line.
    • +
    +

    Bug Fixes

    +
      +
    • Fixed issue with spaces in non-quoted field.
    • +
    + + + + + + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/attributes/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/attributes/index.html new file mode 100644 index 0000000..a5e958f --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/attributes/index.html @@ -0,0 +1,472 @@ + + + + + + + + + + + + + + + + + + + + + + + Attributes | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Attributes

    +

    Most of the configuration done via class maps can also be done using attributes.

    +
    Data
    +
    Identifier,name,IsBool,Constant
    +1,one,yes,a
    +2,two,no,b
    +
    +
    Example
    +
    void Main()
    +{
    +	using (var reader = new StreamReader("path\\to\\file.csv"))
    +	using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +	{
    +		csv.GetRecords<Foo>().ToList().Dump();
    +	}
    +}
    +
    +[Delimiter(",")]
    +[CultureInfo("")]  // Set CultureInfo to InvariantCulture
    +public class Foo
    +{
    +	[Name("Identifier")]
    +	public int Id { get; set; }
    +	
    +	[Index(1)]
    +	public string Name { get; set; }
    +	
    +	[BooleanTrueValues("yes")]
    +	[BooleanFalseValues("no")]
    +	public bool IsBool { get; set; }
    +	
    +	[Constant("bar")]
    +	public string Constant { get; set; }
    +	
    +	[Optional]
    +	public string Optional { get; set; }
    +	
    +	[Ignore]
    +	public string Ignored { get; set; }	
    +}
    +
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/auto-mapping/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/auto-mapping/index.html new file mode 100644 index 0000000..e410ab5 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/auto-mapping/index.html @@ -0,0 +1,462 @@ + + + + + + + + + + + + + + + + + + + + + + + Auto Mapping | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Auto Mapping

    +

    If you don't supply a map to the configuration, one is automatically created for you on the fly. You can call auto mapping directly in your class map also. You may want to do this if you have a large number of properties that will be set up correctly by default, and only need to make a couple changes.

    +
    Data
    +
    Id,The Name
    +1,one
    +
    +
    Example
    +
    void Main()
    +{	   
    +	using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +    {
    +        csv.Context.RegisterClassMap<FooMap>();
    +        var records = csv.GetRecords<Foo>();
    +    }
    +}
    +
    +public class Foo
    +{
    +	public int Id { get; set; }
    +	public string Name { get; set; }
    +}
    +
    +public sealed class FooMap : ClassMap<Foo>
    +{
    +	public FooMap()
    +	{
    +		AutoMap(CultureInfo.InvariantCulture);
    +		Map(m => m.Name).Name("The Name");
    +	}
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/constant-value/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/constant-value/index.html new file mode 100644 index 0000000..8c4b933 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/constant-value/index.html @@ -0,0 +1,464 @@ + + + + + + + + + + + + + + + + + + + + + + + Constant Value | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Constant Value

    +

    You can set a constant value to a property instead of mapping it to a field.

    +
    Data
    +
    Id,Name
    +1,one
    +
    +
    Example
    +
    void Main()
    +{       
    +    using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +    {
    +        csv.Context.RegisterClassMap<FooMap>();
    +        var records = csv.GetRecords<Foo>();
    +    }
    +}
    +
    +public class Foo
    +{
    +    public int Id { get; set; }
    +    public string Name { get; set; }
    +    public bool IsDirty { get; set; }
    +}
    +
    +public sealed class FooMap : ClassMap<Foo>
    +{
    +    public FooMap()
    +    {
    +		Map(m => m.Id);
    +		Map(m => m.Name);
    +        Map(m => m.IsDirty).Constant(true);
    +    }
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/ignoring-properties/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/ignoring-properties/index.html new file mode 100644 index 0000000..8a8b126 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/ignoring-properties/index.html @@ -0,0 +1,463 @@ + + + + + + + + + + + + + + + + + + + + + + + Ignoring Properties | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Ignoring Properties

    +

    When you use auto mapping in your class map, every property will get mapped. If there are properties that you don't want mapped, you can ignore them.

    +
    Data
    +
    Id,Name
    +1,one
    +
    +
    Example
    +
    void Main()
    +{       
    +    using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +    {
    +        csv.Context.RegisterClassMap<FooMap>();
    +        var records = csv.GetRecords<Foo>();
    +    }
    +}
    +
    +public class Foo
    +{
    +    public int Id { get; set; }
    +    public string Name { get; set; }
    +    public bool IsDirty { get; set; }
    +}
    +
    +public sealed class FooMap : ClassMap<Foo>
    +{
    +    public FooMap()
    +    {
    +        AutoMap(CultureInfo.InvariantCulture);
    +        Map(m => m.IsDirty).Ignore();
    +    }
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/index.html new file mode 100644 index 0000000..26c946e --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/index.html @@ -0,0 +1,489 @@ + + + + + + + + + + + + + + + + + + + + + + + Class Maps | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Class Maps

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Topics 
    Mapping PropertiesMapping to properties.
    Mapping by NameMapping properties by header name.
    Mapping by Alternate NamesMapping properties that may be one of many names.
    Mapping Duplicate NamesMapping properties that have duplicate header names.
    Mapping by IndexMapping properties by header index position.
    Auto MappingAutomatic mapping.
    Ignoring PropertiesIgnoring mapped properites.
    Constant ValueSetting a constant value for a property.
    Type ConversionUsing a specific type converter.
    Inline Type ConversionConvert a field to a type inline.
    Optional MapsMap a property only if it exists.
    ValidationValidate a field value.
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/inline-type-conversion/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/inline-type-conversion/index.html new file mode 100644 index 0000000..0ec199e --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/inline-type-conversion/index.html @@ -0,0 +1,515 @@ + + + + + + + + + + + + + + + + + + + + + + + Inline Type Conversion | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Inline Type Conversion

    +

    If you don't want to write a full ITypeConverter implementation, you can specify a function that will do the same thing.

    +

    Reading

    +
    Data
    +
    Id,Name,Json
    +1,one,"{ ""Foo"": ""Bar"" }"
    +
    +
    Example
    +
    void Main()
    +{
    +    using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +    {
    +        csv.Context.RegisterClassMap<FooMap>();
    +        csv.GetRecords<Foo>().ToList().Dump();
    +    }
    +}
    +
    +public class Foo
    +{
    +    public int Id { get; set; }
    +    public string Name { get; set; }
    +    public Json Json { get; set; }
    +}
    +
    +public class Json
    +{
    +    public string Foo { get; set; }
    +}
    +
    +public class FooMap : ClassMap<Foo>
    +{
    +    public FooMap()
    +    {
    +        Map(m => m.Id);
    +        Map(m => m.Name);
    +        Map(m => m.Json).Convert(row => JsonConvert.DeserializeObject<Json>(row.GetField("Json")));
    +    }
    +}
    +
    +

    Writing

    +
    Example
    +
    void Main()
    +{
    +	var records = new List<Foo>
    +	{
    +		new Foo { Id = 1, Name = "one" }
    +	};
    +	
    +	using (var writer = new StreamWriter("path\\to\\file.csv"))
    +	using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
    +	{
    +		csv.Context.RegisterClassMap<FooMap>();
    +		csv.WriteRecords(records);
    +		
    +		writer.ToString().Dump();
    +	}
    +}
    +
    +public class Foo
    +{
    +	public int Id { get; set; }
    +	public string Name { get; set; }
    +	public Json Json { get; set; }
    +}
    +
    +public class Json
    +{
    +	public string Foo { get; set; }
    +}
    +
    +public class FooMap : ClassMap<Foo>
    +{
    +	public FooMap()
    +	{
    +		Map(m => m.Id);
    +		Map(m => m.Name);
    +		Map(m => m.Json).Convert(o => JsonConvert.SerializeObject(o));
    +	}
    +}
    +
    +
    Output
    +
    Id,Name,Json
    +1,one,"{""Id"":1,""Name"":""one"",""Json"":null}"
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-by-alternate-names/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-by-alternate-names/index.html new file mode 100644 index 0000000..62e3bd7 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-by-alternate-names/index.html @@ -0,0 +1,462 @@ + + + + + + + + + + + + + + + + + + + + + + + Mapping By Alternate Names | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Mapping by Alternate Names

    +

    If you have a header name that could vary, you can specify multiple header names.

    +
    Data
    +
    Id,Name
    +1,one
    +
    +
    Example
    +
    void Main()
    +{
    +    using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +    {
    +        csv.Context.RegisterClassMap<FooMap>();
    +        var records = csv.GetRecords<Foo>();
    +    }
    +}
    +
    +public class Foo
    +{
    +    public int Id { get; set; }
    +    public string Name { get set; }
    +}
    +
    +public sealed class FooMap : ClassMap<Foo>
    +{
    +    public FooMap()
    +    {
    +        Map(m => m.Id).Name("TheId", "Id");
    +        Map(m => m.Name).Name("TheName", "Name");
    +    }
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-by-index/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-by-index/index.html new file mode 100644 index 0000000..9aa7759 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-by-index/index.html @@ -0,0 +1,465 @@ + + + + + + + + + + + + + + + + + + + + + + + Mapping By Index | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Mapping by Index

    +

    If your data doesn't have a header you can map by index instead of name. You can't rely on the order of class properties in .NET, so if you're not mapping by name, make sure you specify an index.

    +
    Data
    +
    1,one
    +
    +
    Example
    +
    void Main()
    +{
    +    var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +    {
    +        HasHeaderRecord = false,
    +    };
    +    using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, config))
    +    {
    +        csv.Context.RegisterClassMap<FooMap>();
    +        var records = csv.GetRecords<Foo>();
    +    }
    +}
    +
    +public class Foo
    +{
    +    public int Id { get; set; }
    +    public string Name { get set; }
    +}
    +
    +public sealed class FooMap : ClassMap<Foo>
    +{
    +    public FooMap()
    +    {
    +        Map(m => m.Id).Index(0);
    +        Map(m => m.Name).Index(1);
    +    }
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-by-name/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-by-name/index.html new file mode 100644 index 0000000..cb15885 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-by-name/index.html @@ -0,0 +1,462 @@ + + + + + + + + + + + + + + + + + + + + + + + Mapping By Name | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Mapping by Name

    +

    If your property names don't match your class names, you can map the property to the column by name.

    +
    Data
    +
    ColumnA,ColumnB
    +1,one
    +
    +
    Example
    +
    void Main()
    +{
    +	using (var reader = new StreamReader("path\\to\\file.csv"))
    +	using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +	{
    +		csv.Context.RegisterClassMap<FooMap>();
    +		var records = csv.GetRecords<Foo>();
    +	}
    +}
    +
    +public class Foo
    +{
    +	public int Id { get; set; }
    +	public string Name { get set; }
    +}
    +
    +public sealed class FooMap : ClassMap<Foo>
    +{
    +	public FooMap()
    +	{
    +		Map(m => m.Id).Name("ColumnA");
    +		Map(m => m.Name).Name("ColumnB");
    +	}
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-duplicate-names/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-duplicate-names/index.html new file mode 100644 index 0000000..d7dc521 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-duplicate-names/index.html @@ -0,0 +1,464 @@ + + + + + + + + + + + + + + + + + + + + + + + Mapping Duplicate Names | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Mapping Duplicate Names

    +

    Sometimes you have duplicate header names. This is handled through a header name index. The name index is the index of how many occurrences of that header name there are, not the position of the header.

    +
    Data
    +
    Id,Name,Name
    +1,first,last
    +
    +
    Example
    +
    void Main()
    +{
    +    using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +    {
    +        csv.Context.RegisterClassMap<FooMap>();
    +        var records = csv.GetRecords<Foo>();
    +    }
    +}
    +
    +public class Foo
    +{
    +    public int Id { get; set; }
    +    public string FirstName { get set; }
    +	public string LastName { get; set; }
    +}
    +
    +public sealed class FooMap : ClassMap<Foo>
    +{
    +    public FooMap()
    +    {
    +        Map(m => m.Id);
    +        Map(m => m.FirstName).Name("Name").NameIndex(0);
    +		Map(m => m.LastName).Name("Name").NameIndex(1);
    +    }
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-properties/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-properties/index.html new file mode 100644 index 0000000..05640ec --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/mapping-properties/index.html @@ -0,0 +1,462 @@ + + + + + + + + + + + + + + + + + + + + + + + Mapping Properties | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Mapping Properties

    +

    This will map the properties of a class to the header names of the CSV data. The mapping needs to be registered in the context. This example is identical to not using a class mapping at all. The headers match the property names.

    +
    Data
    +
    Id,Name
    +1,one
    +
    +
    Example
    +
    void Main()
    +{
    +	using (var reader = new StreamReader("path\\to\\file.csv"))
    +	using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +	{		
    +		csv.Context.RegisterClassMap<FooMap>();
    +		var records = csv.GetRecords<Foo>();
    +	}
    +}
    +
    +public class Foo
    +{
    +	public int Id { get; set; }	
    +	public string Name { get; set; }
    +}
    +
    +public sealed class FooMap : ClassMap<Foo>
    +{
    +	public FooMap()
    +	{
    +		Map(m => m.Id);
    +		Map(m => m.Name);
    +	}
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/optional-maps/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/optional-maps/index.html new file mode 100644 index 0000000..d57dcad --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/optional-maps/index.html @@ -0,0 +1,464 @@ + + + + + + + + + + + + + + + + + + + + + + + Optional Maps | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Optional Maps

    +

    If you have data that may or may not have a header, you can make the mapping optional.

    +
    Data
    +
    Id,Name
    +1,one
    +
    +
    Example
    +
    void Main()
    +{
    +	using (var reader = new StreamReader("path\\to\\file.csv"))
    +	using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +	{
    +		csv.Context.RegisterClassMap<FooMap>();
    +		csv.GetRecords<Foo>().ToList().Dump();
    +	}
    +}
    +
    +public class Foo
    +{
    +	public int Id { get; set; }
    +	public string Name { get; set; }
    +	public DateTimeOffset? Date { get; set; }
    +}
    +
    +public class FooMap : ClassMap<Foo>
    +{
    +	public FooMap()
    +	{
    +		Map(m => m.Id);
    +		Map(m => m.Name);
    +		Map(m => m.Date).Optional();
    +	}
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/type-conversion/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/type-conversion/index.html new file mode 100644 index 0000000..56bf740 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/type-conversion/index.html @@ -0,0 +1,482 @@ + + + + + + + + + + + + + + + + + + + + + + + Type Conversion | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Type Conversion

    +

    If you need to convert to or from a non-standard .NET type, you can supply a type converter to use for a property.

    +
    Data
    +
    Id,Name,Json
    +1,one,"{ ""Foo"": ""Bar"" }"
    +
    +
    Example
    +
    void Main()
    +{
    +	using (var reader = new StreamReader("path\\to\\file.csv"))
    +	using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +	{
    +		csv.Context.RegisterClassMap<FooMap>();
    +		csv.GetRecords<Foo>().ToList().Dump();
    +	}
    +}
    +
    +public class Foo
    +{
    +	public int Id { get; set; }
    +	public string Name { get; set; }
    +	public Json Json { get; set; }
    +}
    +
    +public class Json
    +{
    +	public string Foo { get; set; }
    +}
    +
    +public class JsonConverter<T> : DefaultTypeConverter
    +{
    +	public override object ConvertFromString(string text, IReaderRow row, MemberMapData memberMapData)
    +	{
    +		return JsonConvert.DeserializeObject<T>(text);
    +	}
    +
    +	public override string ConvertToString(object value, IWriterRow row, MemberMapData memberMapData)
    +	{
    +		return JsonConvert.SerializeObject(value);
    +	}
    +}
    +
    +public class FooMap : ClassMap<Foo>
    +{
    +	public FooMap()
    +	{
    +		Map(m => m.Id);
    +		Map(m => m.Name);
    +		Map(m => m.Json).TypeConverter<JsonConverter<Json>>();
    +	}
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/validation/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/validation/index.html new file mode 100644 index 0000000..b97f314 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/class-maps/validation/index.html @@ -0,0 +1,463 @@ + + + + + + + + + + + + + + + + + + + + + + + Validation | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Validation

    +

    If you want to ensure your data conforms to some sort of standard, you can validate it.

    +
    Data
    +
    Id,Name
    +1,on-e
    +
    +
    Example
    +
    void Main()
    +{
    +    using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +    {
    +        csv.Context.RegisterClassMap<FooMap>();
    +        csv.GetRecords<Foo>().ToList().Dump();
    +    }
    +}
    +
    +public class Foo
    +{
    +    public int Id { get; set; }
    +    public string Name { get; set; }
    +    public DateTimeOffset? Date { get; set; }
    +}
    +
    +public class FooMap : ClassMap<Foo>
    +{
    +    public FooMap()
    +    {
    +        Map(m => m.Id);
    +        Map(m => m.Name).Validate(field => !field.Contains("-"));
    +    }
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/configuration/index.html b/ThirdParty/CsvHelper-master/docs/examples/configuration/index.html new file mode 100644 index 0000000..061d5b8 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/configuration/index.html @@ -0,0 +1,450 @@ + + + + + + + + + + + + + + + + + + + + + + + Configuration | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Configuration

    +

    Topics

    + + + + + + + + + + + + + + + + + +
      
    Class MapsConfigure CSV structure with a class map.
    AttributesConfigure CSV structure with attributes.
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/csvdatareader/index.html b/ThirdParty/CsvHelper-master/docs/examples/csvdatareader/index.html new file mode 100644 index 0000000..5a9f0f1 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/csvdatareader/index.html @@ -0,0 +1,460 @@ + + + + + + + + + + + + + + + + + + + + + + + Csvdatareader | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    CsvDataReader

    +

    The question on how to load a data table using CsvHelper came up so often that I just built the functionality in.

    +

    CsvDataReader implements IDataReader. This means it has all the capabilities of a forward only data reader. There is really no reason to use this class directly over using CsvReader. CsvDataReader requires an instance of CsvReader and uses it internally to do it's work.

    +

    Loading a DataTable in CsvHelper is simple. By default, a table will be loaded with all columns populated as strings. For the reader to be ready after instantiation, the first row needs to be read immediately, so you need to make any configuration changes before creating an instance of CsvDataReader.

    +
    using (var reader = new StreamReader("path\\to\\file.csv"))
    +using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +{
    +	// Do any configuration to `CsvReader` before creating CsvDataReader.
    +	using (var dr = new CsvDataReader(csv))
    +	{		
    +		var dt = new DataTable();
    +		dt.Load(dr);
    +	}
    +}
    +
    +

    If you want to specify columns and column types, the data table will be loaded with the types automatically converted.

    +
    using (var reader = new StreamReader("path\\to\\file.csv"))
    +using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +{
    +	// Do any configuration to `CsvReader` before creating CsvDataReader.
    +	using (var dr = new CsvDataReader(csv))
    +	{		
    +		var dt = new DataTable();
    +		dt.Columns.Add("Id", typeof(int));
    +		dt.Columns.Add("Name", typeof(string));
    +
    +		dt.Load(dr);
    +	}
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/index.html b/ThirdParty/CsvHelper-master/docs/examples/index.html new file mode 100644 index 0000000..a1d8adc --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/index.html @@ -0,0 +1,465 @@ + + + + + + + + + + + + + + + + + + + + + + + Examples | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Examples

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Sections 
    PrerequisitesImplied knowledge when using CsvHelper.
    ReadingReading CSV data.
    WritingWriting CSV data.
    ConfigurationConfiguring the behavior of CsvHelper to work with your CSV data or custom class structures.
    Type ConversionUsing type conversion to convert CSV fields to and from .NET types.
    DataReaderUsing a DataTable to read CSV data.
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/prerequisites/index.html b/ThirdParty/CsvHelper-master/docs/examples/prerequisites/index.html new file mode 100644 index 0000000..3e6af69 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/prerequisites/index.html @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + Prerequisites | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Prerequisites

    +

    Here are some prerequisites that are needed for using CsvHelper. These are .NET basics that are implied knowledge when using CsvHelper. Microsoft has excellent documentation that can you can use to learn more.

    + + + + + + + + + + + + + + + + + + + + + +
    Topics 
    Using and Dispose
    Reading and Writing Files
    Streams
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/prerequisites/reading-and-writing-files/index.html b/ThirdParty/CsvHelper-master/docs/examples/prerequisites/reading-and-writing-files/index.html new file mode 100644 index 0000000..72fa8a0 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/prerequisites/reading-and-writing-files/index.html @@ -0,0 +1,480 @@ + + + + + + + + + + + + + + + + + + + + + + + Reading And Writing Files | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Reading and Writing Files

    +

    To open a file for reading or writing, we can use System.IO.File.

    +
    using (var stream = File.OpenRead("path\\to\\file.csv"))
    +{
    +}
    +
    +using (var stream = File.OpenWrite("path\\to\\file.csv"))
    +{	
    +}
    +
    +

    These both return a FileStream for working with our file. Since our data is text, we will need to use a StreamReader and StreamWriter to read and write the text.

    +
    using (var stream = File.OpenRead("path\\to\\file.csv"))
    +using (var reader = new StreamReader(stream))
    +{
    +}
    +
    +using (var stream = File.OpenWrite("path\\to\\file.csv"))
    +using (var writer = new StreamWriter(stream))
    +{	
    +}
    +
    +

    StreamReader and StreamWriter have shortcuts for doing this.

    +
    using (var reader = new StreamReader("path\\to\\file.csv"))
    +{
    +}
    +
    +using (var writer = new StreamWriter("path\\to\\file.csv"))
    +{	
    +}
    +
    +

    CsvHelper doesn't know anything about your encoding, so if you have a specific encoding, you'll need to specify that in your stream.

    +
    using (var reader = new StreamReader("path\\to\\file.csv", Encoding.UTF8))
    +{
    +}
    +
    +using (var writer = new StreamWriter("path\\to\\file.csv", Encoding.UTF8))
    +{	
    +}
    +
    +

    CsvReader and CsvWriter take a TextReader and TextWriter in their constructors. TextReader and TextWriter are abstract classes for reading and writing text. StreamReader inherits TextReader and StreamWriter inherits TextWriter, so we can use those with CsvReader and CsvWriter.

    +
    using (var reader = new StreamReader("path\\to\\file.csv"))
    +using (var csv = new CsvReader(reader))
    +{
    +}
    +
    +using (var writer = new StreamWriter("path\\to\\file.csv"))
    +using (var csv = new CsvWriter(writer))
    +{	
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/prerequisites/streams/index.html b/ThirdParty/CsvHelper-master/docs/examples/prerequisites/streams/index.html new file mode 100644 index 0000000..4168219 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/prerequisites/streams/index.html @@ -0,0 +1,453 @@ + + + + + + + + + + + + + + + + + + + + + + + Streams | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Streams

    +

    When reading from a stream, if you need to go back to the beginning of the stream, you can use the Stream.Position property.

    +
    using (var stream = new File.OpenRead("path\\to\\file"))
    +using (var reader = new StreamReader(stream))
    +{	
    +	// Read file content.
    +	var content = reader.ReadToEnd();
    +
    +	// Go back to beginning of the stream.
    +	stream.Position = 0;
    +
    +	// Read file content again.
    +	content = reader.ReadToEnd();
    +}
    +
    +

    When writing to a file, you need to flush the writer for the data to be written to the stream. StreamWriter contains an internal buffer and the data is only written to the stream when the buffer is full, or Flush is called. Flush is automatically called when a using block exits.

    +
    using (var stream = new File.OpenWrite("path\\to\\file"))
    +using (var writer = new StreamWriter(stream))
    +{	
    +	writer.WriteLine("Foo");
    +	writer.Flush(); // Data is written from the writer buffer to the stream.
    +} // Flush is also called here.
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/prerequisites/using-and-dispose/index.html b/ThirdParty/CsvHelper-master/docs/examples/prerequisites/using-and-dispose/index.html new file mode 100644 index 0000000..1b06644 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/prerequisites/using-and-dispose/index.html @@ -0,0 +1,444 @@ + + + + + + + + + + + + + + + + + + + + + + + Using And Dispose | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Using and Dispose

    +

    Whenever you have an object the implements IDisposable, you need to dispose of the resource when you're done with it. Most classes that use unmanaged resources will implement IDisposable. This means a lot of classes in the System.IO namespace will need to be disposed of.

    +

    The best practice to dispose of an object when you're done with it is to wrap the code in a using block. When the using block exits, the resource will automatically be disposed of as soon as possible.

    +
    using (var stream = new MemoryStream())
    +{
    +	// Use the stream.
    +}
    +// The stream will be disposed of as soon as possible.
    +
    +

    If you need to keep keep it around for a while and dispose of it later, using does some error handling for you, so it's still a good idea to use it instead of calling Dispose directly. There is some debate on whether this is a good idea because it doesn't show intent.

    +
    var stream = new MemoryStream();
    +// Later in a different part of your code.
    +using (stream) { }
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/reading/enumerate-class-records/index.html b/ThirdParty/CsvHelper-master/docs/examples/reading/enumerate-class-records/index.html new file mode 100644 index 0000000..4102d5d --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/reading/enumerate-class-records/index.html @@ -0,0 +1,457 @@ + + + + + + + + + + + + + + + + + + + + + + + Enumerate Class Records | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Enumerate Class Records

    +

    Convert CSV rows into a class object that is re-used on every iteration of the enumerable. Each enumeration will hydrate the given record, but only the mapped members. If you supplied a map and didn't map one of the members, that member will not get hydrated with the current row's data. Be careful. Any methods that you call on the projection that force the evaluation of the IEnumerable, such as ToList(), you will get a list where all the records are the same instance you provided that is hydrated with the last record in the CSV file.

    +
    Data
    +
    Id,Name
    +1,one
    +
    +
    Example
    +
    void Main()
    +{
    +    using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +    {
    +		var record = new Foo();
    +        var records = csv.EnumerateRecords(record);
    +		foreach (var r in records)
    +		{
    +			// r is the same instance as record.
    +		}
    +    }
    +}
    +
    +public class Foo
    +{
    +    public int Id { get; set; }
    +    public string Name { get; set; }
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/reading/get-anonymous-type-records/index.html b/ThirdParty/CsvHelper-master/docs/examples/reading/get-anonymous-type-records/index.html new file mode 100644 index 0000000..44e5bac --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/reading/get-anonymous-type-records/index.html @@ -0,0 +1,451 @@ + + + + + + + + + + + + + + + + + + + + + + + Get Anonymous Type Records | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Get Anonymous Type Records

    +

    Convert CSV rows into anonymous type objects. You just need to supply the anonymous type definition.

    +
    Data
    +
    Id,Name
    +1,one
    +
    +
    Example
    +
    void Main()
    +{
    +    using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +    {
    +		var anonymousTypeDefinition = new
    +		{
    +			Id = default(int),
    +			Name = string.Empty
    +		};
    +        var records = csv.GetRecords(anonymousTypeDefinition);
    +    }
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/reading/get-class-records/index.html b/ThirdParty/CsvHelper-master/docs/examples/reading/get-class-records/index.html new file mode 100644 index 0000000..98045ef --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/reading/get-class-records/index.html @@ -0,0 +1,452 @@ + + + + + + + + + + + + + + + + + + + + + + + Get Class Records | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Get Class Records

    +

    Convert CSV rows into class objects.

    +
    Data
    +
    Id,Name
    +1,one
    +
    +
    Example
    +
    void Main()
    +{
    +	using (var reader = new StreamReader("path\\to\\file.csv"))
    +	using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +	{
    +		var records = csv.GetRecords<Foo>();
    +	}
    +}
    +
    +public class Foo
    +{
    +	public int Id { get; set; }
    +	public string Name { get; set; }
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/reading/get-dynamic-records/index.html b/ThirdParty/CsvHelper-master/docs/examples/reading/get-dynamic-records/index.html new file mode 100644 index 0000000..d1b8eb8 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/reading/get-dynamic-records/index.html @@ -0,0 +1,446 @@ + + + + + + + + + + + + + + + + + + + + + + + Get Dynamic Records | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Get Dynamic Records

    +

    Convert CSV rows into dynamic objects. Since there is no way to tell what type the properties should be, all the properties on the dynamic object are strings.

    +
    Data
    +
    Id,Name
    +1,one
    +
    +
    Example
    +
    void Main()
    +{
    +    using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +    {
    +        var records = csv.GetRecords<dynamic>();
    +    }
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/reading/index.html b/ThirdParty/CsvHelper-master/docs/examples/reading/index.html new file mode 100644 index 0000000..cb0538a --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/reading/index.html @@ -0,0 +1,469 @@ + + + + + + + + + + + + + + + + + + + + + + + Reading | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    + +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/reading/reading-by-hand/index.html b/ThirdParty/CsvHelper-master/docs/examples/reading/reading-by-hand/index.html new file mode 100644 index 0000000..dc8cb29 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/reading/reading-by-hand/index.html @@ -0,0 +1,463 @@ + + + + + + + + + + + + + + + + + + + + + + + Reading By Hand | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Reading by Hand

    +

    Sometimes it's easier to not try and configure a mapping to match your class definition for various reasons. It's usually only a few more lines of code to just read the rows by hand instead.

    +
    Data
    +
    Id,Name
    +1,one
    +
    +
    Example
    +
    void Main()
    +{
    +    using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +    {
    +        var records = new List<Foo>();
    +		csv.Read();
    +		csv.ReadHeader();
    +		while (csv.Read())
    +		{
    +			var record = new Foo
    +			{
    +				Id = csv.GetField<int>("Id"),
    +				Name = csv.GetField("Name")
    +			};
    +			records.Add(record);
    +		}
    +    }
    +}
    +
    +public class Foo
    +{
    +    public int Id { get; set; }
    +    public string Name { get; set; }
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/reading/reading-multiple-data-sets/index.html b/ThirdParty/CsvHelper-master/docs/examples/reading/reading-multiple-data-sets/index.html new file mode 100644 index 0000000..baba878 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/reading/reading-multiple-data-sets/index.html @@ -0,0 +1,514 @@ + + + + + + + + + + + + + + + + + + + + + + + Reading Multiple Data Sets | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Reading Multiple Data Sets

    +

    For some reason there are CSV files out there that contain multiple sets of CSV data in them. You should be able to read files like this without issue. You will need to detect when to change class types you are retreiving.

    +
    Data
    +
    FooId,Name
    +1,foo
    +
    +BarId,Name
    +07a0fca2-1b1c-4e44-b1be-c2b05da5afc7,bar
    +
    +
    Example
    +
    void Main()
    +{
    +    var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +	{
    +		IgnoreBlankLines = false,		
    +	};
    +    using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, config))
    +    {
    +		csv.Context.RegisterClassMap<FooMap>();
    +		csv.Context.RegisterClassMap<BarMap>();
    +		var fooRecords = new List<Foo>();
    +		var barRecords = new List<Bar>();
    +		var isHeader = true;
    +		while (csv.Read())
    +		{
    +			if (isHeader)
    +			{
    +				csv.ReadHeader();
    +				isHeader = false;
    +				continue;
    +			}
    +			
    +			if (string.IsNullOrEmpty(csv.GetField(0)))
    +			{
    +				isHeader = true;
    +				continue;
    +			}
    +
    +			switch (csv.HeaderRecord[0])
    +			{
    +				case "FooId":
    +					fooRecords.Add(csv.GetRecord<Foo>());
    +					break;
    +				case "BarId":
    +					barRecords.Add(csv.GetRecord<Bar>());
    +					break;
    +				default:
    +					throw new InvalidOperationException("Unknown record type.");
    +			}
    +		}
    +    }
    +}
    +
    +public class Foo
    +{
    +    public int Id { get; set; }
    +    public string Name { get; set; }
    +}
    +
    +public class Bar
    +{
    +	public Guid Id { get; set; }
    +	public string Name { get; set; }
    +}
    +
    +public sealed class FooMap : ClassMap<Foo>
    +{
    +	public FooMap()
    +	{
    +		Map(m => m.Id).Name("FooId");
    +		Map(m => m.Name);
    +	}
    +}
    +
    +public sealed class BarMap : ClassMap<Bar>
    +{
    +	public BarMap()
    +	{
    +		Map(m => m.Id).Name("BarId");
    +		Map(m => m.Name);
    +	}
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/reading/reading-multiple-record-types/index.html b/ThirdParty/CsvHelper-master/docs/examples/reading/reading-multiple-record-types/index.html new file mode 100644 index 0000000..c86999e --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/reading/reading-multiple-record-types/index.html @@ -0,0 +1,497 @@ + + + + + + + + + + + + + + + + + + + + + + + Reading Multiple Record Types | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Reading Multiple Record Types

    +

    If you have CSV data where each row may be a different record type, you should be able to read based on a row type or something similar.

    +
    Data
    +
    A,1,foo
    +B,07a0fca2-1b1c-4e44-b1be-c2b05da5afc7,bar
    +
    +
    Example
    +
    void Main()
    +{
    +	var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +	{
    +		HasHeaderRecord = false,
    +	};
    +    using (var reader = new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, config))
    +    {
    +		csv.Context.RegisterClassMap<FooMap>();
    +		csv.Context.RegisterClassMap<BarMap>();
    +		var fooRecords = new List<Foo>();
    +		var barRecords = new List<Bar>();
    +		while (csv.Read())
    +		{
    +			switch (csv.GetField(0))
    +			{
    +				case "A":
    +					fooRecords.Add(csv.GetRecord<Foo>());
    +					break;
    +				case "B":
    +					barRecords.Add(csv.GetRecord<Bar>());
    +					break;
    +				default:
    +					throw new InvalidOperationException("Unknown record type.");
    +			}
    +		}
    +    }
    +}
    +
    +public class Foo
    +{
    +    public int Id { get; set; }
    +    public string Name { get; set; }
    +}
    +
    +public class Bar
    +{
    +	public Guid Id { get; set; }
    +	public string Name { get; set; }
    +}
    +
    +public sealed class FooMap : ClassMap<Foo>
    +{
    +	public FooMap()
    +	{
    +		Map(m => m.Id).Index(1);
    +		Map(m => m.Name).Index(2);
    +	}
    +}
    +
    +public sealed class BarMap : ClassMap<Bar>
    +{
    +	public BarMap()
    +	{
    +		Map(m => m.Id).Index(1);
    +		Map(m => m.Name).Index(2);
    +	}
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/type-conversion/custom-type-converter/index.html b/ThirdParty/CsvHelper-master/docs/examples/type-conversion/custom-type-converter/index.html new file mode 100644 index 0000000..39ceb3f --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/type-conversion/custom-type-converter/index.html @@ -0,0 +1,480 @@ + + + + + + + + + + + + + + + + + + + + + + + Custom Type Converter | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Custom Type Converters

    +

    The built in type converters will handle most situations for you, but if you find +a situation where they don't you can create your own type converter.

    +

    You can register the converter globally or per member via an attribute or class map. +You only need to use one, but all are shown in the example.

    +
    Data
    +
    Id,Name,Json
    +1,one,"{""foo"": ""bar""}"
    +
    +
    Example
    +
    void Main()
    +{
    +    using (var reader = new new StreamReader("path\\to\\file.csv"))
    +    using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +    {
    +        // Register globally.
    +        csv.Context.TypeConverterCache.AddConverter<JsonNode>(new JsonNodeConverter());
    +        csv.Context.RegisterClassMap<FooMap>();
    +        csv.GetRecords<Foo>().ToList().Dump();
    +    }
    +}
    +
    +public class Foo
    +{
    +    public int Id { get; set; }
    +    public string Name { get; set; }
    +    // Register via attribute.
    +    [TypeConverter(typeof(JsonNodeConverter))]
    +    public JsonNode Json { get; set; }
    +}
    +
    +public class FooMap : ClassMap<Foo>
    +{
    +    public FooMap()
    +    {
    +        Map(m => m.Id);
    +        Map(m => m.Name);
    +        // Register via map.
    +        Map(m => m.Json).TypeConverter<JsonNodeConverter>();
    +    }
    +}
    +
    +public class JsonNodeConverter : DefaultTypeConverter
    +{
    +    public override object ConvertFromString(string text, IReaderRow row, MemberMapData memberMapData)
    +    {
    +        return JsonSerializer.Deserialize<JsonNode>(text);
    +    }
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/type-conversion/index.html b/ThirdParty/CsvHelper-master/docs/examples/type-conversion/index.html new file mode 100644 index 0000000..9c01ea2 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/type-conversion/index.html @@ -0,0 +1,596 @@ + + + + + + + + + + + + + + + + + + + + + + + Type Conversion | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Type Conversion

    +

    When reading and writing a custom class will get converted to and from +a CSV row. Each CSV field can be converted to and from a class property.
    +This conversion for class properties is done via type converters.

    +

    There are many built in converters already available to you.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    CsvHelper ConverterC# type keyword.NET Type
    ArrayConverter[ ]System.Array
    BigIntegerConverterSystem.Numerics.BigInteger
    BooleanConverterboolSystem.Boolean
    ByteArrayConverterbyte[ ]System.Array
    ByteConverterbyteSystem.Byte
    CharConvertercharSystem.Char
    CollectionGenericConverterSystem.Collections.Generic.Collection<T>, System.Collections.Generic.List<T>
    DateOnlyConverterSystem.DateOnly
    DateTimeConverterSystem.DateTime
    DateTimeOffsetConverterSystem.DateTimeOffset
    DecimalConverterdecimalSystem.Decimal
    DoubleConverterdoubleSystem.Double
    EnumConverterenumSystem.Enum
    GuidConverterSystem.Guid
    IDictionaryConverterSystem.Collections.Generic.Dictionary<string, string>
    IDictionaryGenericConverterSystem.Collections.Generic.Dictionary<TKey, TValue>
    IEnumerableConverterSystem.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList
    IEnumerableGenericConverterSystem.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>
    Int16ConvertershortSystem.Int16
    Int32ConverterintSystem.Int32
    Int64ConverterlongSystem.Int64
    NullableConverterSystem.Nullable<T>
    SByteConvertersbyteSystem.SByte
    SingleConverterfloatSystem.Single
    StringConverterstringSystem.String
    TimeOnlyConverterSystem.TimeOnly
    UInt16ConverterushortSystem.UInt16
    UInt32ConverteruintSystem.UInt32
    UInt64ConverterulongSystem.UInt64
    UriConverterSystem.Uri
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/type-conversion/type-converter-options/index.html b/ThirdParty/CsvHelper-master/docs/examples/type-conversion/type-converter-options/index.html new file mode 100644 index 0000000..0fbc43d --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/type-conversion/type-converter-options/index.html @@ -0,0 +1,450 @@ + + + + + + + + + + + + + + + + + + + + + + + Type Converter Options | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Type Converter Options

    +

    Options can be passed to the type converters. +Most type converters use IFormattable.ToString to write and TryParse to read. +Any option for these methods should be available through configuration.

    +
    Mapping Example
    +
    public sealed class FooMap : ClassMap\<Foo\>
    +{
    +    public FooMap()
    +    {
    +        Map(m => m.DateTimeProps).TypeConverterOption.DateTimeStyles(DateTimeStyles.AllowInnerWhite | DateTimeStyles.RoundtripKind);
    +    }
    +}
    +
    +
    Attributes Example
    +
    public class Foo
    +{
    +    [DateTimeStyles(DateTimeStyles.AllowInnerWhite | DateTimeStyles.RoundtripKind)]
    +    public DateTime DateTimeProp { get; set; }
    +}
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/writing/appending-to-an-existing-file/index.html b/ThirdParty/CsvHelper-master/docs/examples/writing/appending-to-an-existing-file/index.html new file mode 100644 index 0000000..38dccda --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/writing/appending-to-an-existing-file/index.html @@ -0,0 +1,476 @@ + + + + + + + + + + + + + + + + + + + + + + + Appending To An Existing File | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Appending to an Existing CSV File

    +
    Example
    +
    void Main()
    +{
    +	var records = new List<Foo>
    +	{
    +		new Foo { Id = 1, Name = "one" },
    +	};
    +
    +	// Write to a file.
    +	using (var writer = new StreamWriter("path\\to\\file.csv"))
    +	using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
    +	{
    +		csv.WriteRecords(records);
    +	}
    +
    +	records = new List<Foo>
    +	{
    +		new Foo { Id = 2, Name = "two" },
    +	};
    +
    +	// Append to the file.
    +	var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +	{
    +		// Don't write the header again.
    +		HasHeaderRecord = false,
    +	};
    +	using (var stream = File.Open("path\\to\\file.csv", FileMode.Append))
    +	using (var writer = new StreamWriter(stream))
    +	using (var csv = new CsvWriter(writer, config))
    +	{
    +		csv.WriteRecords(records);
    +	}
    +}
    +
    +public class Foo
    +{
    +	public int Id { get; set; }
    +	public string Name { get; set; }
    +}
    +
    +
    Output
    +
    Id,Name
    +1,one
    +2,two
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/writing/index.html b/ThirdParty/CsvHelper-master/docs/examples/writing/index.html new file mode 100644 index 0000000..efe0007 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/writing/index.html @@ -0,0 +1,483 @@ + + + + + + + + + + + + + + + + + + + + + + + Writing | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Writing

    +

    Injection Warning

    +

    When opening a CSV in an external program, a formula in a field could be ran that contains a vulnerability. +Read more here: CSV Injection. +Due to this issue, there is a setting InjectionOptions that can be configured.

    +

    The list of injection characters to detect are configurable in CsvConfiguration.InjectionCharacters +and default to =, @, +, -, \t, \r. An injection character can be the first character of a field +or quoted field. i.e. =foo or "=foo"

    +

    The InjectionOptions values are None (default), Escape, Strip, and Exception.

    +
    None
    +

    No injection protection is taken.

    +
    Exception
    +

    If an injection character is detected, a CsvWriterException is thrown.

    +
    Strip
    +

    All injection characters at the start of a field will be removed. ===foo will be stripped to foo.

    +
    Escape
    +

    If an injection character is detected, the field will be prepended with the InjectionEscapeCharacter +that defaults to '. The field will be quoted if it is not already.

    +

    =one -> "'=one"

    +

    "=one" -> "'=one"

    +

    =one"two -> "'=one""two"

    +

    This option is disabled by default because the primary goal if this library is to read and write CSV +files. If you are storing user entered data that you haven't sanitized yourself and you're letting +it be accessed by people that may open in Excel/Sheets/etc, you might consider enabling this feature. +The InjectionEscapeCharacter is not removed when reading.

    +

    When writing, you can throw an enumerable of class objects, dynamic objects, anonymous type objects, or pretty much +anything else, and it will get written.

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Topics 
    Write Class Objects
    Write Dynamic Objects
    Write Anonymous Type Objects
    Appending to an Existing File
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/writing/write-anonymous-type-objects/index.html b/ThirdParty/CsvHelper-master/docs/examples/writing/write-anonymous-type-objects/index.html new file mode 100644 index 0000000..66741ae --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/writing/write-anonymous-type-objects/index.html @@ -0,0 +1,450 @@ + + + + + + + + + + + + + + + + + + + + + + + Write Anonymous Type Objects | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Write Anonymous Type Objects

    +
    Example
    +
    void Main()
    +{
    +	var records = new List<object>
    +	{
    +		new { Id = 1, Name = "one" },
    +	};
    +	
    +	using (var writer = new StreamWriter("path\\to\\file.csv"))
    +	using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
    +	{
    +		csv.WriteRecords(records);
    +	}
    +}
    +
    +
    Output
    +
    Id,Name
    +1,one
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/writing/write-class-objects/index.html b/ThirdParty/CsvHelper-master/docs/examples/writing/write-class-objects/index.html new file mode 100644 index 0000000..3306af7 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/writing/write-class-objects/index.html @@ -0,0 +1,456 @@ + + + + + + + + + + + + + + + + + + + + + + + Write Class Objects | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Write Class Objects

    +
    Example
    +
    void Main()
    +{
    +	var records = new List<Foo>
    +	{
    +		new Foo { Id = 1, Name = "one" },
    +	};
    +	
    +	using (var writer = new StreamWriter("path\\to\\file.csv"))
    +	using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
    +	{
    +		csv.WriteRecords(records);
    +	}
    +}
    +
    +public class Foo
    +{
    +	public int Id { get; set; }
    +	public string Name { get; set; }
    +}
    +
    +
    Output
    +
    Id,Name
    +1,one
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/examples/writing/write-dynamic-objects/index.html b/ThirdParty/CsvHelper-master/docs/examples/writing/write-dynamic-objects/index.html new file mode 100644 index 0000000..8992dca --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/examples/writing/write-dynamic-objects/index.html @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + Write Dynamic Objects | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Write Dynamic Objects

    +
    Example
    +
    void Main()
    +{
    +	var records = new List<dynamic>();
    +	
    +	dynamic record = new ExpandoObject();
    +	record.Id = 1;
    +	record.Name = "one";
    +	records.Add(record);
    +	
    +	using (var writer = new StringWriter())
    +	using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
    +	{
    +		csv.WriteRecords(records);
    +		
    +		writer.ToString().Dump();
    +	}
    +}
    +
    +
    Output
    +
    Id,Name
    +1,one
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/favicons/android-icon-144x144.png b/ThirdParty/CsvHelper-master/docs/favicons/android-icon-144x144.png new file mode 100644 index 0000000..f128b25 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/android-icon-144x144.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/android-icon-192x192.png b/ThirdParty/CsvHelper-master/docs/favicons/android-icon-192x192.png new file mode 100644 index 0000000..e834438 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/android-icon-192x192.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/android-icon-36x36.png b/ThirdParty/CsvHelper-master/docs/favicons/android-icon-36x36.png new file mode 100644 index 0000000..fa2662c Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/android-icon-36x36.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/android-icon-48x48.png b/ThirdParty/CsvHelper-master/docs/favicons/android-icon-48x48.png new file mode 100644 index 0000000..f6d39e8 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/android-icon-48x48.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/android-icon-72x72.png b/ThirdParty/CsvHelper-master/docs/favicons/android-icon-72x72.png new file mode 100644 index 0000000..303aa57 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/android-icon-72x72.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/android-icon-96x96.png b/ThirdParty/CsvHelper-master/docs/favicons/android-icon-96x96.png new file mode 100644 index 0000000..9b150c2 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/android-icon-96x96.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-114x114.png b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-114x114.png new file mode 100644 index 0000000..f57ebc1 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-114x114.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-120x120.png b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-120x120.png new file mode 100644 index 0000000..18f8d49 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-120x120.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-144x144.png b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-144x144.png new file mode 100644 index 0000000..f128b25 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-144x144.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-152x152.png b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-152x152.png new file mode 100644 index 0000000..fe75037 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-152x152.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-180x180.png b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-180x180.png new file mode 100644 index 0000000..37794f3 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-180x180.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-57x57.png b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-57x57.png new file mode 100644 index 0000000..a74b379 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-57x57.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-60x60.png b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-60x60.png new file mode 100644 index 0000000..4a1156c Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-60x60.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-72x72.png b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-72x72.png new file mode 100644 index 0000000..303aa57 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-72x72.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-76x76.png b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-76x76.png new file mode 100644 index 0000000..2a875f2 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-76x76.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-precomposed.png b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-precomposed.png new file mode 100644 index 0000000..dab9519 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon-precomposed.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/apple-icon.png b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon.png new file mode 100644 index 0000000..dab9519 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/apple-icon.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/favicon-16x16.png b/ThirdParty/CsvHelper-master/docs/favicons/favicon-16x16.png new file mode 100644 index 0000000..dad5a10 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/favicon-16x16.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/favicon-32x32.png b/ThirdParty/CsvHelper-master/docs/favicons/favicon-32x32.png new file mode 100644 index 0000000..0395d4c Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/favicon-32x32.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/favicon-96x96.png b/ThirdParty/CsvHelper-master/docs/favicons/favicon-96x96.png new file mode 100644 index 0000000..9b150c2 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/favicon-96x96.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/favicon.ico b/ThirdParty/CsvHelper-master/docs/favicons/favicon.ico new file mode 100644 index 0000000..0ca93d0 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/favicon.ico differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/ms-icon-144x144.png b/ThirdParty/CsvHelper-master/docs/favicons/ms-icon-144x144.png new file mode 100644 index 0000000..f128b25 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/ms-icon-144x144.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/ms-icon-150x150.png b/ThirdParty/CsvHelper-master/docs/favicons/ms-icon-150x150.png new file mode 100644 index 0000000..a4d021a Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/ms-icon-150x150.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/ms-icon-310x310.png b/ThirdParty/CsvHelper-master/docs/favicons/ms-icon-310x310.png new file mode 100644 index 0000000..400b60e Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/ms-icon-310x310.png differ diff --git a/ThirdParty/CsvHelper-master/docs/favicons/ms-icon-70x70.png b/ThirdParty/CsvHelper-master/docs/favicons/ms-icon-70x70.png new file mode 100644 index 0000000..8030480 Binary files /dev/null and b/ThirdParty/CsvHelper-master/docs/favicons/ms-icon-70x70.png differ diff --git a/ThirdParty/CsvHelper-master/docs/getting-started/index.html b/ThirdParty/CsvHelper-master/docs/getting-started/index.html new file mode 100644 index 0000000..3572457 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/getting-started/index.html @@ -0,0 +1,372 @@ + + + + + + + + + + + + + + + + + + + + + + + Getting Started | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    +

    Getting Started

    +

    Installation

    +
    +

    Package Manager Console

    +
    PM> Install-Package CsvHelper
    +
    +

    .NET CLI Console

    +
    > dotnet add package CsvHelper
    +
    +

    Prerequisites

    +

    There is some basic .NET knowledge that is implied when using this documentation. Please look over the prequisites to make sure you have an +understanding of them. Prerequisites

    +

    CultureInfo

    +

    CsvHelper requires you to specify the CultureInfo that you want to use. The culture is used to determine the default delimiter, default line ending, and formatting when type converting. You can change the configuration of any of these too if you like. Choose the appropriate culture for your data. InvariantCulture will be the most portable for writing a file and reading it back again, so that will be used in most of the examples.

    +

    Newlines

    +

    By default, CsvHelper will follow RFC 4180 and use \r\n for writing newlines no matter what operating system +you are running on. CsvHelper can read \r\n, \r, or \n without any configuration changes. If you want to read or write in a non-standard format, you can +change the configuration for NewLine.

    +
    var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	NewLine = Environment.NewLine,
    +};
    +
    +

    Reading a CSV File

    +
    +

    Let's say we have CSV file that looks like this.

    +
    Id,Name
    +1,one
    +2,two
    +
    +

    And a class definition that looks like this.

    +
    public class Foo
    +{
    +	public int Id { get; set; }
    +	public string Name { get; set; }
    +}
    +
    +

    If our class property names match our CSV file header names, we can read the file without any configuration.

    +
    using (var reader = new StreamReader("path\\to\\file.csv"))
    +using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +{
    +	var records = csv.GetRecords<Foo>();
    +}
    +
    +

    The GetRecords<T> method will return an IEnumerable<T> that will yield records. +What this means is that only a single record is returned at a time as you iterate the records. +That also means that only a small portion of the file is read into memory. Be careful though. +If you do anything that executes a LINQ projection, such as calling .ToList(), the entire file +will be read into memory. CsvReader is forward only, so if you want to run any LINQ queries +against your data, you'll have to pull the whole file into memory. Just know that is what you're doing.

    +

    Let's say our CSV file names are a little different than our class properties and we don't want to +make our properties match.

    +
    id,name
    +1,one
    +2,two
    +
    +

    In this case, the names are lower case. We want our property names to be Pascal Case, so we can +just change how our properties match against the header names.

    +
    var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	PrepareHeaderForMatch = args => args.Header.ToLower(),
    +};
    +using (var reader = new StreamReader("path\\to\\file.csv"))
    +using (var csv = new CsvReader(reader, config))
    +{
    +	var records = csv.GetRecords<Foo>();
    +}
    +
    +

    Using the configuration PrepareHeaderForMatch, we're able to change how the header matching +is done against the property name. Both the header and the property name are ran through the +PrepareHeaderForMatch function. When the reader needs to find the property to set for the +header, they will now match. You can use this function to do other things such as remove +whitespace or other characters.

    +

    Let's say out CSV file doesn't have a header at all.

    +
    1,one
    +2,two
    +
    +

    First we need to tell the reader that there is no header record, using configuration.

    +
    var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	HasHeaderRecord = false,
    +};
    +using (var reader = new StreamReader("path\\to\\file.csv"))
    +using (var csv = new CsvReader(reader, config))
    +{
    +	var records = csv.GetRecords<Foo>();
    +}
    +
    +

    CsvReader will use the position of the properties in the class as the index position. There is an +issue with this though. You can't rely on the ordering of class members in .NET. +We can solve this by mapping the property to a position in the CSV file.

    +

    One way to do this is with attribute mapping.

    +
    public class Foo
    +{
    +	[Index(0)]
    +	public int Id { get; set; }
    +
    +	[Index(1)]
    +	public string Name { get; set; }
    +}
    +
    +

    The IndexAttribute allows you to specify which position the CSV field is that you want to use +for the property.

    +

    You can also map by name. Let's use our lower case header example from before and see how we can +use attributes instead of changing the header matching.

    +
    public class Foo
    +{
    +	[Name("id")]
    +	public int Id { get; set; }
    +
    +	[Name("name")]
    +	public string Name { get; set; }
    +}
    +
    +

    There are many other attributes you can use also.

    +

    What if we don't have control over the class we want to map to so we can't add attributes to it? +In this case, we can use a fluent ClassMap to do the mapping.

    +
    public class FooMap : ClassMap<Foo>
    +{
    +	public FooMap()
    +	{
    +		Map(m => m.Id).Name("id");
    +		Map(m => m.Name).Name("name");
    +	}
    +}
    +
    +

    To use the mapping, we need to register it in the context.

    +
    using (var reader = new StreamReader("path\\to\\file.csv"))
    +using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +{
    +	csv.Context.RegisterClassMap<FooMap>();
    +	var records = csv.GetRecords<Foo>();
    +}
    +
    +

    Creating a class map is the recommended way of mapping files in CsvHelper because it's a +lot more powerful.

    +

    You can also read rows by hand.

    +
    using (var reader = new StreamReader("path\\to\file.csv"))
    +using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
    +{
    +	csv.Read();
    +	csv.ReadHeader();
    +	while (csv.Read())
    +	{
    +		var record = csv.GetRecord<Foo>();
    +		// Do something with the record.
    +	}
    +}
    +
    +

    Read will advance row. ReadHeader will read the row into CsvHelper as the header values. +Separating Read and ReadHeader allows you to do other things with the header row before +moving onto the next row. GetRecord also does not advance the reader to allow you to do +other things with the row you might need to do. You may need to GetField for a single field +or maybe call GetRecord multiple times to fill more than one object.

    +

    Writing a CSV File

    +

    Now let's look at how we can write CSV files. It's basically the same thing, but in reverse order.

    +

    Let's use the same class definition as before.

    +
    public class Foo
    +{
    +	public int Id { get; set; }
    +	public string Name { get; set; }
    +}
    +
    +

    And we have a set of records like this.

    +
    var records = new List<Foo>
    +{
    +	new Foo { Id = 1, Name = "one" },
    +	new Foo { Id = 2, Name = "two" },
    +};
    +
    +

    We can write the records to a file without any configuration.

    +
    using (var writer = new StreamWriter("path\\to\\file.csv"))
    +using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
    +{
    +	csv.WriteRecords(records);
    +}
    +
    +

    The WriteRecords method will write all the records to the file. After you are done writing, +you should call writer.Flush() to ensure that all the data in the writer's internal buffer +has been flushed to the file. Once a using block has exited, the writer is automatically +flushed, so we don't have to explicitly do it here. It's recommended to always wrap any +IDisposable object with using blocks. The object will dispose of itself (and in our case +flush too) as soon as possible after the using block has exited.

    +

    Remember how we can't rely on property order in .NET? If we are writing a class that has a header, +it doesn't matter, as long as we are reading using the headers later. If we want to position +the headers in the CSV file, we need to specify an index to guarantee it's order. It's +recommended to always set an index when writing.

    +
    public class FooMap : ClassMap<Foo>
    +{
    +	public FooMap()
    +	{
    +		Map(m => m.Id).Index(0).Name("id");
    +		Map(m => m.Name).Index(1).Name("name");
    +	}
    +}
    +
    +

    You can also write rows by hand.

    +
    using (var writer = new StreamWriter("path\\to\\file.csv"))
    +using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
    +{
    +	csv.WriteHeader<Foo>();
    +	csv.NextRecord();
    +	foreach (var record in records)
    +	{
    +		csv.WriteRecord(record);
    +		csv.NextRecord();
    +	}
    +}
    +
    +

    WriteHeader will not advance you to the next row. Separating NextRecord from WriteHeader +allows you to write more things in the header if you need to. WriteRecord also will not +advance you to the next row to give you the ability to write multiple objects or use +WriteField to write individual fields.

    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/google6ad86f23ff698b61.html b/ThirdParty/CsvHelper-master/docs/google6ad86f23ff698b61.html new file mode 100644 index 0000000..a6ad012 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/google6ad86f23ff698b61.html @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + Google6ad86f23ff698b61 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    + google-site-verification: google6ad86f23ff698b61.html +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/images/logo.svg b/ThirdParty/CsvHelper-master/docs/images/logo.svg new file mode 100644 index 0000000..972caa1 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/images/logo.svg @@ -0,0 +1,89 @@ + +image/svg+xml \ No newline at end of file diff --git a/ThirdParty/CsvHelper-master/docs/index.html b/ThirdParty/CsvHelper-master/docs/index.html new file mode 100644 index 0000000..8c18cf2 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/index.html @@ -0,0 +1,427 @@ + + + + + + + + + + + + + + + + + + + + + + + A .NET library for reading and writing CSV files. Extremely fast, flexible, and easy to use. | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +
    +
    +

    CsvHelper

    +

    A .NET library for reading and writing CSV files. Extremely fast, flexible, and easy to use.

    + + + +
    +
    + +
    +
    + +

    Features

    +
    + +
    +
    +

    + + + + Fast +

    +

    Compiles classes on the fly for extremely fast performance.

    +
    + +
    +

    + + + + Flexible +

    +

    Conservative when writing, liberal when reading.

    +
    + +
    +

    + + + + Easy to Use +

    +

    + Reading and writing is as simple as GetRecords<T>() and WriteRecords(records). + No configuration required. +

    +
    + +
    +

    + + + + Highly Configurable +

    +

    Feature rich mapping and attribute systems to configure any type of CSV file to any type of class.

    +
    + +
    +

    + + + + RFC 4180 Compliant +

    +

    Adheres to the RFC 4180 standard to ensure compatibility across systems.

    +
    + +
    +

    + + + + Linux Mode +

    +

    + Mode for common Linux/SerDe files where an escape character is used instead of RFC 4180's field quoting. +

    +
    + +
    +

    + + + + Graceful Fallback +

    +

    When non-standard files are read, fallback will match MS Excel parsing.

    +
    + +
    +

    + + + + Low Memory Usage +

    +

    Reading records will yield results so only one record is in memory at a time.

    +
    + +
    +

    + + + + Field Caching +

    +

    + Option to use field caching when there is repeated data in a CSV file. This will reduce memory + and speed up parsing time. +

    +
    + +
    +

    + + + + Run Anywhere +

    +

    + CsvHelper is built on .NET Standard 2.0 which allows it to run + almost everywhere. + Older versions of .NET are possible if needed. +

    +
    + +
    +

    + + + + Open Source +

    +

    + Many contributors have helped make CsvHelper the great library it is today. + Completely free for commercial use. Dual licensed under + MS-PL and + Apache 2. +

    +
    +
    + +
    + +

    Help

    +
    + +
    +
    +

    + + + + Stack Overflow +

    +

    + Stack Overflow + has millions of users in its community just waiting to answer your questions. + There is only one of me and I'm pretty busy. + + + +

    +
    + +
    +

    + + + + Documentation +

    +

    + Learn how to use CsvHelper using the API reference + or check out some examples. +

    +
    + +
    +

    + + + + Features Requests and Bugs +

    +

    + If you have a feature request or have found a bug, you can + log an issue. + Please use + Stack Overflow + if you have a question. +

    +
    +
    + +
    + +

    License

    +
    + +

    Completely free for commercial use. Dual licensed. Choose which ever license suits your needs.

    +

    Microsoft Public License (MS-PL)

    +

    Apache License, Version 2.0

    + +

    + +

    Contributions

    +
    + +
    +

    Want to contribute? Great! Here are a few guidelines.

    +
      +
    1. + If you want to do a feature, post an issue about the feature first. Some features are intentionally left out, + some features may already be in the works, or I may have some advice on how I think it should be done. I would + feel bad if time was spent on some code that won't be used. +
    2. +
    3. + If you want to do a bug fix, it might not be a bad idea to post about it too. I've had the same bug fixed by + multiple people at the same time before. +
    4. +
    5. + All code should have a unit test. If you make a feature, there should be significant tests around the feature. + If you do a bug fix, there should be a test specific to that bug so it doesn't happen again. +
    6. +
    7. + Pull requests should have a single commit. If you have multiple commits, squash them into a single commit before + requesting a pull. +
    8. +
    9. + When in Rome: Try and follow the code styling already in place. I use default Visual Studio Text Editor settings + but change tabs to Keep tabs. +
    10. +
    +
    + +
    + +

    Contributors

    +
    + + + + + +

    + +

    Donations

    +
    + +
    +
    +

    + + + + One Time Donation +

    +

    + You can do a one time donation through + Paypal. +

    +
    + +
    +

    + + + + Recurring Donations +

    +

    + You can do recurring donations through + Open Collective. +

    +
    + +
    +

    + + + + Wish List +

    +

    + If you want to do something a little more fun, you can pick something + from my Amazon wish list. This + obviously doesn't go directly towards building software, but does help + keep me sane when I'm not. +

    +
    +
    + +

    Backers

    +
    + + + + + +

    Sponsors

    +
    + + + + +
    + +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/manifest.json b/ThirdParty/CsvHelper-master/docs/manifest.json new file mode 100644 index 0000000..8d36cc9 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/manifest.json @@ -0,0 +1,41 @@ +{ + "name": "App", + "icons": [ + { + "src": "\/android-icon-36x36.png", + "sizes": "36x36", + "type": "image\/png", + "density": "0.75" + }, + { + "src": "\/android-icon-48x48.png", + "sizes": "48x48", + "type": "image\/png", + "density": "1.0" + }, + { + "src": "\/android-icon-72x72.png", + "sizes": "72x72", + "type": "image\/png", + "density": "1.5" + }, + { + "src": "\/android-icon-96x96.png", + "sizes": "96x96", + "type": "image\/png", + "density": "2.0" + }, + { + "src": "\/android-icon-144x144.png", + "sizes": "144x144", + "type": "image\/png", + "density": "3.0" + }, + { + "src": "\/android-icon-192x192.png", + "sizes": "192x192", + "type": "image\/png", + "density": "4.0" + } + ] +} \ No newline at end of file diff --git a/ThirdParty/CsvHelper-master/docs/migration/index.html b/ThirdParty/CsvHelper-master/docs/migration/index.html new file mode 100644 index 0000000..7b1e1f3 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/index.html @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + + + Migration | CsvHelper + + + + + + + + + + + + + + + + +
    + +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v10/index.html b/ThirdParty/CsvHelper-master/docs/migration/v10/index.html new file mode 100644 index 0000000..29081e4 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v10/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V10 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v11/index.html b/ThirdParty/CsvHelper-master/docs/migration/v11/index.html new file mode 100644 index 0000000..0f5531c --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v11/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V11 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v12/index.html b/ThirdParty/CsvHelper-master/docs/migration/v12/index.html new file mode 100644 index 0000000..b0ab9fe --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v12/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V12 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v13/index.html b/ThirdParty/CsvHelper-master/docs/migration/v13/index.html new file mode 100644 index 0000000..a8079e9 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v13/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V13 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v14/index.html b/ThirdParty/CsvHelper-master/docs/migration/v14/index.html new file mode 100644 index 0000000..ad7902e --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v14/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V14 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v15/index.html b/ThirdParty/CsvHelper-master/docs/migration/v15/index.html new file mode 100644 index 0000000..7676fb6 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v15/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V15 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v16/index.html b/ThirdParty/CsvHelper-master/docs/migration/v16/index.html new file mode 100644 index 0000000..0328fc5 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v16/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V16 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v17/index.html b/ThirdParty/CsvHelper-master/docs/migration/v17/index.html new file mode 100644 index 0000000..137680f --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v17/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V17 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v18/index.html b/ThirdParty/CsvHelper-master/docs/migration/v18/index.html new file mode 100644 index 0000000..2a04ebf --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v18/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V18 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v19/index.html b/ThirdParty/CsvHelper-master/docs/migration/v19/index.html new file mode 100644 index 0000000..6821464 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v19/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V19 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v2/index.html b/ThirdParty/CsvHelper-master/docs/migration/v2/index.html new file mode 100644 index 0000000..6f50834 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v2/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V2 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v20/index.html b/ThirdParty/CsvHelper-master/docs/migration/v20/index.html new file mode 100644 index 0000000..b797d5f --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v20/index.html @@ -0,0 +1,344 @@ + + + + + + + + + + + + + + + + + + + + + + + V20 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Migrating from version 19 to 20

    +

    ConvertUsing

    +

    ConvertUsing was renamed to Convert.

    +
    // v19
    +Map(m => m.Property).ConvertUsing(row => row.GetField<int>(0) + row.GetField<int>(1));
    +
    +// v20
    +Map(m => m.Property).Convert(row => row.GetField<int>(0) + row.GetField<int>(1));
    +
    +

    CsvConfiguration

    +

    All properties changed from get; set; to get; init;.

    +
    // v19
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture);
    +config.Delimiter = ";";
    +
    +// v20
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	Delimiter = ";",
    +}
    +
    +

    CsvConfiguration changed from a class to a record.

    +
    // v19
    +class MyConfig : CsvConfiguration {}
    +
    +// v20
    +record MyConfig : CsvConfiguration {}
    +
    +

    ShouldQuote

    +

    ShouldQuote now takes in IWriterRow instead of CsvContext.

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

    NewLine

    +

    Changed from enum NewLines to char?.

    +
    // v19
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	NewLine = NewLines.LF,
    +};
    +
    +// v20
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	NewLine = '\n',
    +};
    +
    +

    NewLineString

    +

    This was removed. Any code referencing this should be deleted.

    +

    RegisterClassMap

    +

    This moved to CsvContext.

    +
    // v19
    +csv.Configuration.RegisterClassMap<MyMap>();
    +
    +// v20
    +csv.Context.RegisterClassMap<MyMap>();
    +
    +

    UnregisterClassMap

    +

    This moved to CsvContext.

    +
    // v19
    +csv.Configuration.UnregisterClassMap<MyMap>();
    +
    +// v20
    +csv.Context.UnregisterClassMap<MyMap>();
    +
    +

    AutoMap

    +

    This moved to CsvContext.

    +
    // v19
    +csv.Configuration.AutoMap<MyType>();
    +
    +// v20
    +csv.Context.AutoMap<MyType>();
    +
    +

    IParserConfiguration

    +

    All setters removed.

    +
    // v19
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture);
    +config.Delimiter = ";";
    +
    +// v20
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	Delimiter = ";",
    +};
    +
    +
      +
    • Added bool CacheFields.
    • +
    • Added bool LeaveOpen.
    • +
    • Added char? NewLine.
    • +
    • Added ParserMode Mode.
    • +
    • Added char[] WhiteSpaceChars.
    • +
    • Removed bool IgnoreQuotes.
    • +
    +

    Any classes that implement IParserConfiguration will need these changes.

    +

    IReaderConfiguration

    +

    All setters removed.

    +
    // v19
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture);
    +config.Delimiter = ";";
    +
    +// v20
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	Delimiter = ";",
    +};
    +
    +
      +
    • Removed TypeConverterOptionsCache.
    • +
    • Removed TypeConverterCache.
    • +
    • Removed Maps.
    • +
    • Removed RegisterClassMap.
    • +
    • Removed UnregisterClassMap.
    • +
    • Removed AutoMap.
    • +
    +

    Any classes that implement IReaderConfiguration will need these changes.

    +

    ISerializerConfiguration

    +

    This interface was removed and it's properties were added to IWriteConfiguration.

    +
    // v19
    +class MyConfig : ISerializerConfiguration {}
    +
    +// v20
    +class MyConfig : IWriterConfiguration {}
    +
    +

    IWriterConfiguration

    +

    All setters removed.

    +
    // v19
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture);
    +config.Delimiter = ";";
    +
    +// v20
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	Delimiter = ";",
    +};
    +
    +
      +
    • Removed QuoteString.
    • +
    • Removed TypeConverterCache.
    • +
    • Removed MemberTypes.
    • +
    • Removed Maps.
    • +
    • Removed RegisterClassMap.
    • +
    • Removed UnregisterClassMap.
    • +
    • Removed AutoMap.
    • +
    +

    Any classes that implement IWriterConfiguration will need these changes.

    +

    MemberMap

    +

    ConvertUsing renamed to Convert.

    +
    // v19
    +Map(m => m.Property).ConvertUsing(row => row.Get(0));
    +Map(m => m.Property).ConvertUsing(value => value?.ToString() ?? string.Empty);
    +
    +// v20
    +Map(m => m.Property).Convert(row => row.Get(0));
    +Map(m => m.Property).Convert(value => value?.ToString() ?? string.Empty);
    +
    +

    CsvParser

    +

    string[] Read() changed to bool Read().

    +
    // v19
    +string[] record;
    +while ((record = parser.Read()) != null)
    +{
    +}
    +
    +// v20
    +while (parser.Read())
    +{
    +	// Only get fields you need.
    +	var field1 = parser[0];
    +	var field2 = parser[1];
    +
    +	// Get all fields.
    +	var record = parser.Record;
    +}
    +
    +

    Constructor paramter IFieldReader fieldReader removed from all constructors.

    +
    // v19
    +var parser = new CsvParser(fieldReader);
    +
    +// v20
    +var parser = new CsvParser();
    +
    +

    CsvSerializer

    +

    Removed. Functionality moved into CsvWriter.

    +

    IFieldReader

    +

    Removed. Functionality moved into CsvParser.

    +

    IParser

    +
      +
    • Added long ByteCount.
    • +
    • Added long CharCount.
    • +
    • Added int Count.
    • +
    • Added string this[int index].
    • +
    • Added string[] Record.
    • +
    • Added string RawRecord.
    • +
    • Added int Row.
    • +
    • Added int RawRow.
    • +
    • Changed string[] Read to bool Read.
    • +
    • Changed Task<string[]> ReadAsync to Task<bool> ReadAsync.
    • +
    +

    Any classes that implement IParser will need these changes.

    +

    IReader

    +
      +
    • Removed ICsvParser Parser.
    • +
    +

    Any classes that implement IReader will need these changes.

    +

    IReaderRow

    +
      +
    • Added int ColumnCount.
    • +
    • Added int CurrentIndex.
    • +
    • Added string[] HeaderRecord.
    • +
    • Added IParser Parser.
    • +
    +

    Any classes that implement IReaderRow will need these changes.

    +

    ISerializer

    +

    Removed. Functionality moved into IWriter.

    +

    IWriterRow

    +
      +
    • Added string[] HeaderRecord.
    • +
    • Added int Row.
    • +
    • Added int Index.
    • +
    +

    RecordBuilder

    +

    Removed. Functionality moved into CsvWriter.

    +

    Caches

    +

    enum Caches was removed. Modifying internal caches is not supported anymore. +Any code referencing this should be removed.

    +

    ReadingContext/WritingContext

    +

    ReadingContext and WritingContext was merged into a single CsvContext. +Anywhere either of these was used should change to CsvContext.

    +

    Func/Action

    +

    Any place a Func or Action was used now has a dedicated delegate. +This should only affect classes that are inheriting ClassMap +or CsvConfiguration.

    +

    CsvFieldReader

    +

    Class removed. Code was wrapped into CsvParser.

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v21/index.html b/ThirdParty/CsvHelper-master/docs/migration/v21/index.html new file mode 100644 index 0000000..4b60137 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v21/index.html @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + V21 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Migrating from version 20 to 21

    +

    CsvConfiguration

    +

    Property char? NewLine changed to string NewLine.

    +
    // v20
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	NewLine = '\r',
    +};
    +
    +// v21
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	NewLine = "\r",
    +};
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + 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.

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v23/index.html b/ThirdParty/CsvHelper-master/docs/migration/v23/index.html new file mode 100644 index 0000000..e5be91c --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v23/index.html @@ -0,0 +1,295 @@ + + + + + + + + + + + + + + + + + + + + + + + V23 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Migrating from version 22 to 23

    +

    CsvConfiguration

    +

    All the constructor parameters were removed in favor of using +property setters. Apply this change to any of the options.

    +
    // v22
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture, delimiter = ";");
    +
    +// v23
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	Delimiter = ";",
    +};
    +
    +

    Delegates

    +

    All delegates now take in a single struct argument.

    +

    BadDataFound

    +
    // v22
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	BadDataFound = (field, context) => 
    +	{
    +		Console.WriteLine($"field: {field}");
    +		Console.WriteLine($"context: {context}");
    +	},
    +};
    +
    +// v23
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	BadDataFound = args =>
    +	{
    +		Console.WriteLine($"field: {args.Field}");
    +		Console.WriteLine($"context: {args.Context}");
    +	},
    +};
    +
    +

    ConvertFromString

    +
    // v22
    +Map(m => m.Property).Convert(row => row.GetField(0));
    +
    +// v23
    +Map(m => m.Property).Convert(args => args.Row.GetField(0));
    +
    +

    ConvertToString

    +
    // v22
    +Map(m => m.Property).Convert(value => value.ToString());
    +
    +// v23
    +Map(m => m.Property).Convert(args => args.Value.ToString());
    +
    +

    GetConstructor

    +
    // v22
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	GetConstructor = classType => classType.GetConstructors().First(),
    +};
    +
    +// v23
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	GetConstructor = args => args.ClassType.GetConstructors().First(),
    +};
    +
    +

    GetDynamicPropertyName

    +
    // v22
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	GetDynamicPropertyName = (fieldIndex, context) => $"Field{fieldIndex}";
    +};
    +
    +// v23
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	GetDynamicPropertyName = args => $"Field{args.FieldIndex}",
    +};
    +
    +

    HeaderValidated

    +
    // v22
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	HeaderValidated = (invalidHeaders, context) => Console.WriteLine($"Invalid headers count: {invalidHeaders.Count}"),
    +};
    +
    +// v23
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	HeaderValidated = args => Console.WriteLine($"Invalid headers count: {args.InvalidHeaders.Count}"),
    +};
    +
    +

    MissingFieldFound

    +
    // v22
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	MissingFieldFound = (headerNames, index, context) => Console.WriteLine($"Missing field: {headerNames[0]}"),
    +};
    +
    +// v23
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	MissingFieldFound = args => Console.WriteLine($"Missing field: {args.HeaderNames[0]}"),
    +};
    +
    +

    PrepareHeaderForMatch

    +
    // v22
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	PrepareHeaderForMatch = (header, fieldIndex) => header.ToLower(),
    +};
    +
    +// v23
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	PrepareHeaderForMatch = args => args.Header.ToLower(),
    +};
    +
    +

    ReadingExceptionOccurred

    +
    // v22
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +    ReadingExceptionOccurred = exception =>
    +    {
    +        Console.WriteLine(exception.Message);
    +        throw args.Exception;
    +    },
    +};
    +// v23
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +    ReadingExceptionOccurred = args =>
    +    {
    +        Console.WriteLine(args.Exception.Message);
    +        throw args.Exception;
    +    },
    +};
    +
    +

    ReferenceHeaderPrefix

    +
    // v22
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +    ReferenceHeaderPrefix = (memberType, memberName) => $"{memberName}.",
    +};
    +
    +// v23
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +    ReferenceHeaderPrefix = args => $"{args.MemberName}.",
    +};
    +
    +

    ShouldQuote

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

    ShouldSkipRecord

    +
    // v22
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +    ShouldSkipRecord = (records) => record.Length == 0,
    +};
    +
    +// v23
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +    ShouldSkipRecord = args => args.Record.Length == 0,
    +};
    +
    +

    ShouldUseConstructorParameters

    +
    // v22
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	ShouldUseConstructorParameters = type => true;
    +};
    +
    +// v23
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	ShouldUseConstructorParameters = args => true;
    +};
    +
    +

    Validate

    +
    // v22
    +Map(m => m.Property).Validate(field => !string.IsNullOrEmpty(field));
    +
    +// v23
    +Map(m => m.Property).Validate(args => !string.IsNullOrEmpty(args.Field));
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v24/index.html b/ThirdParty/CsvHelper-master/docs/migration/v24/index.html new file mode 100644 index 0000000..63b9b13 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v24/index.html @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + V24 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Migrating from version 23 to 24

    +

    IWriterRow

    +
    // v23
    +WriteConvertedField(field);
    +
    +// v24
    +WriteConvertedField(field, fieldType);
    +
    +

    CsvWriter

    +
    // v23
    +WriteConvertedField(field);
    +
    +// v24
    +WriteConvertedField(field, fieldType);
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v25/index.html b/ThirdParty/CsvHelper-master/docs/migration/v25/index.html new file mode 100644 index 0000000..2da1e01 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v25/index.html @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + V25 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Migrating from version 24 to 25

    +

    Delegates

    +

    All delegate args had their non-parameterless constructor removed +in favor of using init.

    +

    BadDataFoundArgs

    +
    // v25
    +var args = new BadDataRoundArgs(field, rawRecord, context);
    +
    +// v26
    +var args = new BadDataFoundArgs
    +{
    +	Field = field,
    +	RawRecord = rawRecord,
    +	Context = context,
    +};
    +
    +

    ConvertFromStringArgs

    +
    // v25
    +var args = new ConvertFromStringArgs(row);
    +
    +// v26
    +var args = new ConvertFromStringArgs
    +{
    +	Row = row,
    +};
    +
    +

    ConvertToStringArgs

    +
    // v25
    +var args = new ConvertToStringArgs(value);
    +
    +// v26
    +var args = new ConvertToStringArgs
    +{
    +	Value = value,
    +};
    +
    +

    GetConstructorArgs

    +
    // v25
    +var args = new GetConstructorArgs(type);
    +
    +// v26
    +var args = new GetConstructorArgs
    +{
    +	ClassType = type,
    +};
    +
    +

    GetDynamicPropertyNameArgs

    +
    // v25
    +var args = new GetDynamicPropertyNameArgs(index, context);
    +
    +// v26
    +var args = new GetDynamicPropertyNameArgs
    +{
    +	FieldIndex = index,
    +	Context = context,
    +};
    +
    +

    HeaderValidatedArgs

    +
    // v25
    +var args = new HeaderValidatedArgs(headers, context);
    +
    +// v26
    +var args = new HeaderValidatedArgs
    +{
    +	InvalidHeaders = headers,
    +	Context = context,
    +};
    +
    +

    MissingFieldFoundArgs

    +
    // v25
    +var args = new MissingFieldFoundArgs(headerNames, index, context);
    +
    +// v26
    +var args = new MissingFieldFoundArgs
    +{
    +	HeaderNames = headerNames,
    +	Index = index,
    +	Context = context,
    +};
    +
    +

    PrepareHeaderForMatchArgs

    +
    // v25
    +var args = new PrepareHeaderForMatchArgs(header, fieldIndex);
    +
    +// v26
    +var args = new PrepareHeaderForMatchArgs
    +{
    +	Header = header,
    +	FieldIndex = fieldIndex,
    +};
    +
    +

    ReadingExceptionOccurredArgs

    +
    // v25
    +var args = new ReadingExceptionOccurredArgs(exception);
    +
    +// v26
    +var args = new ReadingExceptionOccurredArgs
    +{
    +	Exception = exception,
    +};
    +
    +

    ReferenceHeaderPrefixArgs

    +
    // v25
    +var args = new ReferenceHeaderPrefixArgs(memberType, memberName);
    +
    +// v26
    +var args = new ReferenceHeaderPrefixArgs
    +{
    +	MemberType = memberType,
    +	MemberName = memberName,
    +};
    +
    +

    ShouldQuoteArgs

    +
    // v25
    +var args = new ShouldQuoteArgs(field, fieldType, row);
    +
    +// v26
    +var args = new ShouldQuoteArgs
    +{
    +	Field = field,
    +	FieldType = fieldType,
    +	Row = row,
    +};
    +
    +

    ShouldSkipRecordArgs

    +
    // v25
    +var args = new ShouldSkipRecordArgs(record);
    +
    +// v26
    +var args = new ShouldSkipRecordArgs
    +{
    +	Record = record,
    +};
    +
    +

    ShouldUseConstructorParametersArgs

    +
    // v25
    +var args = new ShouldUseConstructorParametersArgs(parameterType);
    +
    +// v26
    +var args = new ShouldUseConstructorParametersArgs
    +{
    +	ParameterType = parameterType,
    +};
    +
    +

    ValidateArgs

    +
    // v25
    +var args = new ValidateArgs(field);
    +
    +// v26
    +var args = new ValidateArgs
    +{
    +	Field = field,
    +};
    +
    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v26/index.html b/ThirdParty/CsvHelper-master/docs/migration/v26/index.html new file mode 100644 index 0000000..03b0d48 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v26/index.html @@ -0,0 +1,267 @@ + + + + + + + + + + + + + + + + + + + + + + + V26 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Migrating from version 25 to 26

    +

    Delegates

    +

    All delegates args objects have their init accessor removed. +Constructor parameters are used instead.

    +

    BadDataFoundArgs

    +
    // v26
    +var args = new BadDataFoundArgs
    +{
    +	Field = field,
    +	RawRecord = rawRecord,
    +	Context = context,
    +};
    +
    +// v27
    +var args = new BadDataRoundArgs(field, rawRecord, context);
    +
    +

    ConvertFromStringArgs

    +
    // v26
    +var args = new ConvertFromStringArgs
    +{
    +	Row = row,
    +};
    +
    +// v27
    +var args = new ConvertFromStringArgs(row);
    +
    +

    ConvertToStringArgs

    +
    // v26
    +var args = new ConvertToStringArgs
    +{
    +	Value = value,
    +};
    +
    +// v27
    +var args = new ConvertToStringArgs(value);
    +
    +

    GetConstructorArgs

    +
    // v26
    +var args = new GetConstructorArgs
    +{
    +	ClassType = type,
    +};
    +
    +// v27
    +var args = new GetConstructorArgs(type);
    +
    +

    GetDynamicPropertyNameArgs

    +
    // v26
    +var args = new GetDynamicPropertyNameArgs
    +{
    +	FieldIndex = index,
    +	Context = context,
    +};
    +
    +// v27
    +var args = new GetDynamicPropertyNameArgs(index, context);
    +
    +

    HeaderValidatedArgs

    +
    // v26
    +var args = new HeaderValidatedArgs
    +{
    +	InvalidHeaders = headers,
    +	Context = context,
    +};
    +
    +// v27
    +var args = new HeaderValidatedArgs(headers, context);
    +
    +

    MissingFieldFoundArgs

    +
    // v26
    +var args = new MissingFieldFoundArgs
    +{
    +	HeaderNames = headerNames,
    +	Index = index,
    +	Context = context,
    +};
    +
    +// v27
    +var args = new MissingFieldFoundArgs(headerNames, index, context);
    +
    +

    PrepareHeaderForMatchArgs

    +
    // v26
    +var args = new PrepareHeaderForMatchArgs
    +{
    +	Header = header,
    +	FieldIndex = fieldIndex,
    +};
    +
    +// v27
    +var args = new PrepareHeaderForMatchArgs(header, fieldIndex);
    +
    +

    ReadingExceptionOccurredArgs

    +
    // v26
    +var args = new ReadingExceptionOccurredArgs
    +{
    +	Exception = exception,
    +};
    +
    +// v27
    +var args = new ReadingExceptionOccurredArgs(exception);
    +
    +

    ReferenceHeaderPrefixArgs

    +
    // v26
    +var args = new ReferenceHeaderPrefixArgs
    +{
    +	MemberType = memberType,
    +	MemberName = memberName,
    +};
    +
    +// v27
    +var args = new ReferenceHeaderPrefixArgs(memberType, memberName);
    +
    +

    ShouldQuoteArgs

    +
    // v26
    +var args = new ShouldQuoteArgs
    +{
    +	Field = field,
    +	FieldType = fieldType,
    +	Row = row,
    +};
    +
    +// v27
    +var args = new ShouldQuoteArgs(field, fieldType, row);
    +
    +

    ShouldSkipRecordArgs

    +
    // v26
    +var args = new ShouldSkipRecordArgs
    +{
    +	Record = record,
    +};
    +
    +// v27
    +var args = new ShouldSkipRecordArgs(record);
    +
    +

    ShouldUseConstructorParametersArgs

    +
    // v26
    +var args = new ShouldUseConstructorParametersArgs
    +{
    +	ParameterType = parameterType,
    +};
    +
    +// v27
    +var args = new ShouldUseConstructorParametersArgs(parameterType);
    +
    +

    ValidateArgs

    +
    // v26
    +var args = new ValidateArgs
    +{
    +	Field = field,
    +};
    +
    +// v27
    +var args = new ValidateArgs(field);
    +
    +

    IParserConfiguration

    +
      +
    • Added property bool ExceptionMessagesContainRawData { get; }.
    • +
    +

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

    +

    IWriterConfiguration

    +
      +
    • Added property bool ExceptionMessagesContainRawData { get; }.
    • +
    +

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

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v27/index.html b/ThirdParty/CsvHelper-master/docs/migration/v27/index.html new file mode 100644 index 0000000..aecfe4d --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v27/index.html @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + V27 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Migrating from version 26 to 27

    +

    CsvConfiguration.WhiteSpaceChars

    +
      +
    • Removed \t from the array of default characters.
    • +
    +

    If you are expecting \t to be trimmed, you will need to add this to the +whitespace characters.

    +
    var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	WhiteSpaceChars = new[] { ' ', '\t' },
    +};
    +
    +

    IParserConfiguration

    +
      +
    • Added property bool DetectDelimiter { get; }.
    • +
    • Added property string[] DetectDelimiterValues { get; }.
    • +
    +

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

    +

    IWriter

    +
      +
    • Added method Task WriteRecordsAsync<T>(IAsyncEnumerable<T> records, CancellationToken cancellationToken = default). +This does not apply to projects that reference the net45 version of CsvHelper.
    • +
    +

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

    +

    IParser

    +
      +
    • Added property string Delimiter { get; }.
    • +
    +

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

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v28/index.html b/ThirdParty/CsvHelper-master/docs/migration/v28/index.html new file mode 100644 index 0000000..cb54f32 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v28/index.html @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + V28 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Migrating from version 27 to 28

    +

    ShouldSkipRecordArgs

    +
      +
    • string[] ShouldSkipRecordArgs.Record changed to IReaderRow ShouldSkipRecordArgs.Row.
    • +
    +
    // 27
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	ShouldSkipRecord = args => args.Record.Length < 10;
    +};
    +
    +// 28
    +
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	ShouldSkipRecord = args => args.Row.Parser.Record.Length < 10;
    +};
    +
    +

    ConfigurationFunctions.ShouldSkipRecord

    +
      +
    • Removed ConfigurationFunctions.ShouldSkipRecord.
    • +
    +

    null can be used in place of this now, and is the default.

    +
    var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +	ShouldSkipRecord = null
    +};
    +
    +

    IParserConfiguration.Validate

    +

    Implement the Validate method.

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v29/index.html b/ThirdParty/CsvHelper-master/docs/migration/v29/index.html new file mode 100644 index 0000000..32c4bf7 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v29/index.html @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + V29 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Migrating from version 28 to 29

    +

    CsvConfiguration.SanitizeForInjection

    +

    bool CsvConfiguration.SanitizeInjection changed to InjectionOptions CsvConfiguration.InjectionOptions.

    +
    // 28
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +    SanitizeForInjection = true,
    +}
    +
    +// 29
    +var config = new CsvConfiguration(CultureInfo.InvariantCulture)
    +{
    +    InjectionOptions = InjectionOptions.Escape,
    +}
    +
    +

    IWriterConfiguration.SanitizeForInjection

    +

    bool IWriterConfiguration.SanitizeInjection changed to InjectionOptions IWriterConfiguration.InjectionOptions. +Any class that implements IWriterConfiguration will need this changed.

    +

    IParserConfiguration.GetDelimiter

    +

    GetDelimiter IParserConfiguration.GetDelimiter was added. +Any class that implements IParserConfiguration will need to add this.

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v3/index.html b/ThirdParty/CsvHelper-master/docs/migration/v3/index.html new file mode 100644 index 0000000..c1496b6 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v3/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V3 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v30/index.html b/ThirdParty/CsvHelper-master/docs/migration/v30/index.html new file mode 100644 index 0000000..b693fd0 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v30/index.html @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + V30 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Migrating from version 29 to 30

    +

    BadDataException constructor

    +
    // 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

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

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v4/index.html b/ThirdParty/CsvHelper-master/docs/migration/v4/index.html new file mode 100644 index 0000000..2f3a095 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v4/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V4 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v5/index.html b/ThirdParty/CsvHelper-master/docs/migration/v5/index.html new file mode 100644 index 0000000..288d7a1 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v5/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V5 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v6/index.html b/ThirdParty/CsvHelper-master/docs/migration/v6/index.html new file mode 100644 index 0000000..b1d22c3 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v6/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V6 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v7/index.html b/ThirdParty/CsvHelper-master/docs/migration/v7/index.html new file mode 100644 index 0000000..6835c60 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v7/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V7 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v8/index.html b/ThirdParty/CsvHelper-master/docs/migration/v8/index.html new file mode 100644 index 0000000..7a96680 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v8/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V8 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/migration/v9/index.html b/ThirdParty/CsvHelper-master/docs/migration/v9/index.html new file mode 100644 index 0000000..ce6f022 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/migration/v9/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + V9 | CsvHelper + + + + + + + + + + + + + + + + +
    +
    +
    +
    +

    Coming Soon

    + +
    +
    +
    +
    + +

    + +
    +
    © 2009-2022 Josh Close
    +
    + + + + + + + + + diff --git a/ThirdParty/CsvHelper-master/docs/robots.txt b/ThirdParty/CsvHelper-master/docs/robots.txt new file mode 100644 index 0000000..7d329b1 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/robots.txt @@ -0,0 +1 @@ +User-agent: * diff --git a/ThirdParty/CsvHelper-master/docs/scripts/header.js b/ThirdParty/CsvHelper-master/docs/scripts/header.js new file mode 100644 index 0000000..491a05c --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/scripts/header.js @@ -0,0 +1,6 @@ +(() => { + document.getElementById("navbar-burger").addEventListener("click", () => { + document.getElementById("navbar-burger").classList.toggle("is-active"); + document.getElementById("navbar-menu").classList.toggle("is-active"); + }); +}); diff --git a/ThirdParty/CsvHelper-master/docs/scripts/sidebar.js b/ThirdParty/CsvHelper-master/docs/scripts/sidebar.js new file mode 100644 index 0000000..496dfef --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/scripts/sidebar.js @@ -0,0 +1,41 @@ +(() => { + const sidebar = document.getElementById("sidebar"); + if (!sidebar) { + return; + } + + const parent = sidebar.parentElement; + const footer = document.getElementById("footer"); + + const resizeSidebarWidth = () => { + const rect = parent.getBoundingClientRect(); + const style = getComputedStyle(parent); + const width = rect.width - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight); + sidebar.style.width = `${width}px`; + }; + + const resizeSidebarHeight = () => { + const parentRect = parent.getBoundingClientRect(); + const parentStyle = getComputedStyle(parent); + const footerRect = footer.getBoundingClientRect(); + const bodyRect = document.body.getBoundingClientRect(); + + const top = Math.max(parentRect.top + parseFloat(parentStyle.paddingTop), 0); + const bottom = Math.max(bodyRect.height - footerRect.top, 0); + + sidebar.style.top = `${top}px`; + sidebar.style.bottom = `${bottom}px`; + } + + const handleExpanderClick = (e) => { + e.currentTarget.classList.toggle("expanded"); + e.currentTarget.closest("li").querySelector("ul").classList.toggle("is-hidden"); + } + + const sidebarResizeObserver = new ResizeObserver(resizeSidebarWidth); + sidebarResizeObserver.observe(parent); + + window.addEventListener("load", resizeSidebarHeight); + document.addEventListener("scroll", resizeSidebarHeight); + document.querySelectorAll(".expander").forEach(el => el.addEventListener("click", handleExpanderClick)); +})(); diff --git a/ThirdParty/CsvHelper-master/docs/sitemap.xml b/ThirdParty/CsvHelper-master/docs/sitemap.xml new file mode 100644 index 0000000..4a6c7ca --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/sitemap.xml @@ -0,0 +1 @@ +/CsvHelper/CsvHelper/google6ad86f23ff698b61/CsvHelper/CsvHelper/change-log/CsvHelper/CsvHelper/examples/CsvHelper/CsvHelper/api/CsvHelper/CsvHelper/examples/configuration/CsvHelper/CsvHelper/examples/configuration/class-maps/constant-value/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-by-index/CsvHelper/CsvHelper/examples/configuration/attributes/CsvHelper/CsvHelper/examples/configuration/class-maps/inline-type-conversion/CsvHelper/CsvHelper/examples/configuration/class-maps/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-by-alternate-names/CsvHelper/CsvHelper/examples/configuration/class-maps/ignoring-properties/CsvHelper/CsvHelper/examples/csvdatareader/CsvHelper/CsvHelper/examples/configuration/class-maps/validation/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-by-name/CsvHelper/CsvHelper/examples/configuration/class-maps/type-conversion/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-duplicate-names/CsvHelper/CsvHelper/examples/prerequisites/CsvHelper/CsvHelper/examples/configuration/class-maps/mapping-properties/CsvHelper/CsvHelper/examples/reading/reading-by-hand/CsvHelper/CsvHelper/examples/reading/enumerate-class-records/CsvHelper/CsvHelper/examples/configuration/class-maps/optional-maps/CsvHelper/CsvHelper/examples/prerequisites/using-and-dispose/CsvHelper/CsvHelper/examples/prerequisites/reading-and-writing-files/CsvHelper/CsvHelper/migration/v13/CsvHelper/CsvHelper/examples/configuration/class-maps/auto-mapping/CsvHelper/CsvHelper/examples/reading/get-class-records/CsvHelper/CsvHelper/examples/prerequisites/streams/CsvHelper/CsvHelper/examples/writing/appending-to-an-existing-file/CsvHelper/CsvHelper/examples/type-conversion/custom-type-converter/CsvHelper/CsvHelper/examples/reading/CsvHelper/CsvHelper/examples/type-conversion/CsvHelper/CsvHelper/examples/reading/get-dynamic-records/CsvHelper/CsvHelper/migration/v23/CsvHelper/CsvHelper/examples/reading/get-anonymous-type-records/CsvHelper/CsvHelper/examples/writing/CsvHelper/CsvHelper/examples/reading/reading-multiple-data-sets/CsvHelper/CsvHelper/examples/reading/reading-multiple-record-types/CsvHelper/CsvHelper/examples/writing/write-class-objects/CsvHelper/CsvHelper/examples/type-conversion/type-converter-options/CsvHelper/CsvHelper/examples/writing/write-dynamic-objects/CsvHelper/CsvHelper/examples/writing/write-anonymous-type-objects/CsvHelper/CsvHelper/migration/CsvHelper/CsvHelper/migration/v2/CsvHelper/CsvHelper/getting-started/CsvHelper/CsvHelper/migration/v20/CsvHelper/CsvHelper/migration/v10/CsvHelper/CsvHelper/migration/v3/CsvHelper/CsvHelper/migration/v11/CsvHelper/CsvHelper/migration/v18/CsvHelper/CsvHelper/migration/v14/CsvHelper/CsvHelper/migration/v16/CsvHelper/CsvHelper/migration/v21/CsvHelper/CsvHelper/migration/v30/CsvHelper/CsvHelper/migration/v12/CsvHelper/CsvHelper/migration/v19/CsvHelper/CsvHelper/migration/v15/CsvHelper/CsvHelper/migration/v17/CsvHelper/CsvHelper/migration/v22/CsvHelper/CsvHelper/migration/v24/CsvHelper/CsvHelper/migration/v28/CsvHelper/CsvHelper/migration/v26/CsvHelper/CsvHelper/migration/v4/CsvHelper/CsvHelper/migration/v6/CsvHelper/CsvHelper/migration/v25/CsvHelper/CsvHelper/migration/v29/CsvHelper/CsvHelper/migration/v27/CsvHelper/CsvHelper/migration/v5/CsvHelper/CsvHelper/migration/v7/CsvHelper/CsvHelper/migration/v8/CsvHelper/CsvHelper/migration/v9/CsvHelper/CsvHelper \ No newline at end of file diff --git a/ThirdParty/CsvHelper-master/docs/styles/base.css b/ThirdParty/CsvHelper-master/docs/styles/base.css new file mode 100644 index 0000000..ce74511 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/styles/base.css @@ -0,0 +1,3 @@ +html, body { height: 100vh; } + +body { display: flex; flex-direction: column; } diff --git a/ThirdParty/CsvHelper-master/docs/styles/content.css b/ThirdParty/CsvHelper-master/docs/styles/content.css new file mode 100644 index 0000000..bc2e169 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/styles/content.css @@ -0,0 +1 @@ +pre code.hljs { background-color: transparent; } diff --git a/ThirdParty/CsvHelper-master/docs/styles/header.css b/ThirdParty/CsvHelper-master/docs/styles/header.css new file mode 100644 index 0000000..8e7dd7f --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/styles/header.css @@ -0,0 +1 @@ +@media screen and (min-width: 769px) { nav { padding: 0 1.5em; } } diff --git a/ThirdParty/CsvHelper-master/docs/styles/index.css b/ThirdParty/CsvHelper-master/docs/styles/index.css new file mode 100644 index 0000000..4e0c782 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/styles/index.css @@ -0,0 +1,21 @@ +html, body { height: 100vh; } + +body { display: flex; flex-direction: column; } + +@media screen and (min-width: 769px) { nav { padding: 0 1.5em; } } + +pre code.hljs { background-color: transparent; } + +.expander { position: absolute; font-size: 1.5rem; transform: rotate(0deg); top: -3px; left: 0; } + +.expander::before { content: "\203A"; } + +.expander.expanded { left: 4px; top: 2px; transform: rotate(90deg); } + +.sidebar { display: flex; position: fixed; overflow-x: hidden; overflow-y: auto; } + +.sidebar ul li { line-height: 2rem; padding-left: 1em; position: relative; } + +.sidebar ul li a { color: #4a4a4a; } + +.sidebar ul li a:not(.expander):hover { text-decoration: underline; } diff --git a/ThirdParty/CsvHelper-master/docs/styles/sidebar.css b/ThirdParty/CsvHelper-master/docs/styles/sidebar.css new file mode 100644 index 0000000..716f096 --- /dev/null +++ b/ThirdParty/CsvHelper-master/docs/styles/sidebar.css @@ -0,0 +1,13 @@ +.expander { position: absolute; font-size: 1.5rem; transform: rotate(0deg); top: -3px; left: 0; } + +.expander::before { content: "\203A"; } + +.expander.expanded { left: 4px; top: 2px; transform: rotate(90deg); } + +.sidebar { display: flex; position: fixed; overflow-x: hidden; overflow-y: auto; } + +.sidebar ul li { line-height: 2rem; padding-left: 1em; position: relative; } + +.sidebar ul li a { color: #4a4a4a; } + +.sidebar ul li a:not(.expander):hover { text-decoration: underline; } -- cgit v1.1-26-g67d0