CommonNetFuncs.Csv
3.6.18
See the version list below for details.
dotnet add package CommonNetFuncs.Csv --version 3.6.18
NuGet\Install-Package CommonNetFuncs.Csv -Version 3.6.18
<PackageReference Include="CommonNetFuncs.Csv" Version="3.6.18" />
<PackageVersion Include="CommonNetFuncs.Csv" Version="3.6.18" />
<PackageReference Include="CommonNetFuncs.Csv" />
paket add CommonNetFuncs.Csv --version 3.6.18
#r "nuget: CommonNetFuncs.Csv, 3.6.18"
#:package CommonNetFuncs.Csv@3.6.18
#addin nuget:?package=CommonNetFuncs.Csv&version=3.6.18
#tool nuget:?package=CommonNetFuncs.Csv&version=3.6.18
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.6.18)
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.0 | 12 | 8/18/2025 |
3.6.27 | 10 | 8/18/2025 |
3.6.26 | 93 | 8/14/2025 |
3.6.25 | 96 | 8/13/2025 |
3.6.24 | 93 | 8/12/2025 |
3.6.19 | 91 | 7/28/2025 |
3.6.18 | 316 | 7/25/2025 |
3.6.16 | 434 | 7/24/2025 |
3.6.14 | 435 | 7/24/2025 |
3.6.13 | 435 | 7/24/2025 |
3.6.10 | 486 | 7/22/2025 |
3.6.6 | 437 | 7/21/2025 |
3.6.1 | 140 | 7/14/2025 |
3.6.0 | 94 | 7/11/2025 |
3.5.3 | 137 | 7/10/2025 |
3.5.0 | 151 | 7/7/2025 |
3.4.30 | 135 | 7/7/2025 |
3.4.23 | 131 | 6/26/2025 |
3.4.21 | 139 | 6/26/2025 |
3.4.20 | 151 | 6/25/2025 |
3.4.18 | 150 | 6/23/2025 |
3.4.14 | 144 | 6/17/2025 |
3.4.9 | 294 | 6/11/2025 |
3.4.8 | 290 | 6/11/2025 |
3.4.4 | 157 | 6/2/2025 |
3.4.2 | 199 | 6/2/2025 |
3.4.1 | 100 | 5/30/2025 |
3.4.0 | 102 | 5/30/2025 |
3.3.11 | 160 | 5/18/2025 |
3.3.10 | 236 | 5/13/2025 |
3.3.0 | 173 | 4/29/2025 |
3.2.13 | 155 | 2/13/2025 |
3.2.9 | 120 | 2/4/2025 |
3.2.0 | 116 | 12/19/2024 |
3.1.0 | 152 | 12/6/2024 |
3.0.0 | 122 | 12/3/2024 |
2.1.3 | 113 | 12/3/2024 |
2.1.0 | 122 | 12/2/2024 |
2.0.5 | 114 | 11/26/2024 |
2.0.2 | 123 | 11/18/2024 |
2.0.1 | 115 | 11/15/2024 |
2.0.0 | 105 | 11/14/2024 |
1.0.47 | 116 | 11/14/2024 |
1.0.42 | 153 | 11/12/2024 |
1.0.40 | 118 | 11/12/2024 |
1.0.38 | 119 | 11/7/2024 |
1.0.37 | 118 | 11/4/2024 |
1.0.31 | 120 | 10/31/2024 |
1.0.28 | 131 | 10/25/2024 |
1.0.26 | 178 | 10/18/2024 |
1.0.25 | 110 | 10/17/2024 |
1.0.24 | 106 | 10/17/2024 |
1.0.19 | 119 | 10/11/2024 |
1.0.18 | 121 | 10/11/2024 |
1.0.17 | 127 | 9/27/2024 |
1.0.16 | 111 | 9/27/2024 |
1.0.14 | 137 | 9/23/2024 |
1.0.13 | 154 | 9/18/2024 |
1.0.12 | 118 | 9/18/2024 |
1.0.11 | 120 | 9/18/2024 |
1.0.10 | 145 | 9/11/2024 |
1.0.9 | 136 | 9/11/2024 |
1.0.8 | 161 | 9/11/2024 |
1.0.7 | 137 | 9/11/2024 |
1.0.1 | 138 | 9/4/2024 |
1.0.0 | 130 | 9/2/2024 |