Version 0.0.3

Date 2022-08-28 (846 days ago)
Downloads 119K downloads
NuGet View on NuGet
GitHub View on GitHub
Target Frameworks .NET Standard 1.3 .NET Standard 2.0 .NET 4.5 .NET 4.6 .NET 4.7

#installation">Installation

Install the NuGet package - either via the .NET CLI:

dotnet add package Skybrud.Csv --version 0.0.3

or the NuGet package manager:

Install-Package Skybrud.Csv -Version 0.0.3

#changelog">Changelog

  • Added logic for converting to and from DataTable instances (see a3ce074)
    The System.Data namespace (which contains the DataTable class as well as related classes) is not supported in .NET Standard 1.3, so .NET Standard 2.0 has been added as an additional target framework.

  • Added logic to the CsvFile class for automatically detecting the used separator (see 7689855)
    This includes looking for an explicit separator declaration like sep=; in the beginning of CSV files, but also scanning the first row to find what's the most likely separator used.

  • Added logic to the CsvFile class for automatically detecting the used encoding (see 7689855 and e20dde9)
    When loading a CSV file, the package will now try to detect the encoding, by checking against UTF-8, Windows 1252 and ISO 8859-1. Other encoding might be added in the future, but for now, these should account for the most widely used encodings in Western countries.