CommonNetFuncs.Csv
3.7.16
See the version list below for details.
dotnet add package CommonNetFuncs.Csv --version 3.7.16
NuGet\Install-Package CommonNetFuncs.Csv -Version 3.7.16
<PackageReference Include="CommonNetFuncs.Csv" Version="3.7.16" />
<PackageVersion Include="CommonNetFuncs.Csv" Version="3.7.16" />
<PackageReference Include="CommonNetFuncs.Csv" />
paket add CommonNetFuncs.Csv --version 3.7.16
#r "nuget: CommonNetFuncs.Csv, 3.7.16"
#:package CommonNetFuncs.Csv@3.7.16
#addin nuget:?package=CommonNetFuncs.Csv&version=3.7.16
#tool nuget:?package=CommonNetFuncs.Csv&version=3.7.16
CommonNetFuncs.Csv
This project contains helper methods for reading and writing CSV files.
Contents
CsvExportHelpers
Helpers for exporting data to a CSV file.
CsvExportHelpers Usage Examples
<details> <summary><h3>Usage Examples</h3></summary>
ExportToCsv
Export data from an IEnumerable or DataTable
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
}
Person[] testData = [ new() { Name = "Chris", Age = 32 }, new() { Name = "Nick", Age = 43 } ];
await using MemoryStream ms = new();
await testData.ExportToCsv(ms); // ms contains CSV data for testData
</details>
CsvReadHelpers
Helpers for ingesting data from CSV files.
CsvReadHelpers Usage Examples
<details> <summary><h3>Usage Examples</h3></summary>
ReadCsv
Read CSV data directly from a physical CSV file or stream containing its data into a List. CSV data should match the type of T.
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
}
List<Person> csvPeople = CsvReadHelpers.ReadCsv(@"C:\Documents\People.csv"); // csvPeople contains list of values from People.csv
ReadCsvAsync
Asynchronously read CSV data directly from a physical CSV file or stream containing its data into a List. CSV data should match the type of T.
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
}
List<Person> csvPeople = await CsvReadHelpers.ReadCsvAsync(@"C:\Documents\People.csv"); // csvPeople contains list of values from People.csv
ReadCsvAsyncEnumerable
Asynchronously read CSV data directly from a physical CSV file or stream containing its data into an IAsyncEnumerable. CSV data should match the type of T.
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
}
List<Person> result = new();
await foreach (Person record in CsvReadHelpers.ReadCsvAsyncEnumerable<Person>(@"C:\Documents\People.csv"))
{
result.Add(record);
}
// Result contains list of all records within People.csv
ReadCsvToDataTable
Read CSV data directly from a physical CSV file or stream containing its data into a DataTable. DataTable can be constructed with a definite or indefinite type
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
}
using DataTable dataTable = CsvReadHelpers.ReadCsvToDataTable(@"C:\Documents\People.csv"); // Indeterminate type in People.csv, dataTable contains all records from People.csv with all values as strings
using DataTable dataTable = CsvReadHelpers.ReadCsvToDataTable(@"C:\Documents\People.csv", typeof(Person)); // Known type in People.csv, dataTable contains all records from People.csv with all values typed per Person class
</details>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- CommonNetFuncs.Core (>= 3.7.146)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on CommonNetFuncs.Csv:
Package | Downloads |
---|---|
CommonNetFuncs.Web.Ftp
Helpers for connecting to and working with FTP servers |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
3.7.17 | 170 | 9/11/2025 |
3.7.16 | 160 | 9/11/2025 |
3.7.13 | 165 | 9/8/2025 |
3.7.0 | 257 | 8/18/2025 |
3.6.27 | 160 | 8/18/2025 |
3.6.26 | 163 | 8/14/2025 |
3.6.25 | 174 | 8/13/2025 |
3.6.24 | 163 | 8/12/2025 |
3.6.19 | 139 | 7/28/2025 |
3.6.18 | 355 | 7/25/2025 |
3.6.16 | 478 | 7/24/2025 |
3.6.14 | 483 | 7/24/2025 |
3.6.13 | 481 | 7/24/2025 |
3.6.10 | 551 | 7/22/2025 |
3.6.6 | 497 | 7/21/2025 |
3.6.1 | 158 | 7/14/2025 |
3.6.0 | 119 | 7/11/2025 |
3.5.3 | 164 | 7/10/2025 |
3.5.0 | 176 | 7/7/2025 |
3.4.30 | 154 | 7/7/2025 |
3.4.23 | 151 | 6/26/2025 |
3.4.21 | 165 | 6/26/2025 |
3.4.20 | 181 | 6/25/2025 |
3.4.18 | 182 | 6/23/2025 |
3.4.14 | 161 | 6/17/2025 |
3.4.9 | 314 | 6/11/2025 |
3.4.8 | 314 | 6/11/2025 |
3.4.4 | 183 | 6/2/2025 |
3.4.2 | 222 | 6/2/2025 |
3.4.1 | 135 | 5/30/2025 |
3.4.0 | 121 | 5/30/2025 |
3.3.11 | 179 | 5/18/2025 |
3.3.10 | 260 | 5/13/2025 |
3.3.0 | 209 | 4/29/2025 |
3.2.13 | 171 | 2/13/2025 |
3.2.9 | 135 | 2/4/2025 |
3.2.0 | 133 | 12/19/2024 |
3.1.0 | 169 | 12/6/2024 |
3.0.0 | 139 | 12/3/2024 |
2.1.3 | 128 | 12/3/2024 |
2.1.0 | 139 | 12/2/2024 |
2.0.5 | 129 | 11/26/2024 |
2.0.2 | 141 | 11/18/2024 |
2.0.1 | 130 | 11/15/2024 |
2.0.0 | 111 | 11/14/2024 |
1.0.47 | 132 | 11/14/2024 |
1.0.42 | 169 | 11/12/2024 |
1.0.40 | 136 | 11/12/2024 |
1.0.38 | 136 | 11/7/2024 |
1.0.37 | 133 | 11/4/2024 |
1.0.31 | 136 | 10/31/2024 |
1.0.28 | 146 | 10/25/2024 |
1.0.26 | 193 | 10/18/2024 |
1.0.25 | 127 | 10/17/2024 |
1.0.24 | 122 | 10/17/2024 |
1.0.19 | 135 | 10/11/2024 |
1.0.18 | 137 | 10/11/2024 |
1.0.17 | 145 | 9/27/2024 |
1.0.16 | 127 | 9/27/2024 |
1.0.14 | 153 | 9/23/2024 |
1.0.13 | 170 | 9/18/2024 |
1.0.12 | 134 | 9/18/2024 |
1.0.11 | 136 | 9/18/2024 |
1.0.10 | 161 | 9/11/2024 |
1.0.9 | 151 | 9/11/2024 |
1.0.8 | 178 | 9/11/2024 |
1.0.7 | 154 | 9/11/2024 |
1.0.1 | 153 | 9/4/2024 |
1.0.0 | 145 | 9/2/2024 |