CommonNetFuncs.Csv 3.7.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CommonNetFuncs.Csv --version 3.7.0
                    
NuGet\Install-Package CommonNetFuncs.Csv -Version 3.7.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CommonNetFuncs.Csv" Version="3.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommonNetFuncs.Csv" Version="3.7.0" />
                    
Directory.Packages.props
<PackageReference Include="CommonNetFuncs.Csv" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CommonNetFuncs.Csv --version 3.7.0
                    
#r "nuget: CommonNetFuncs.Csv, 3.7.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CommonNetFuncs.Csv@3.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CommonNetFuncs.Csv&version=3.7.0
                    
Install as a Cake Addin
#tool nuget:?package=CommonNetFuncs.Csv&version=3.7.0
                    
Install as a Cake Tool

CommonNetFuncs.Csv

nuget

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
4.0.2 652 12/2/2025
4.0.1 171 11/27/2025
4.0.0 161 11/23/2025
3.8.20 563 12/1/2025
3.8.18 403 11/20/2025
3.8.16 395 11/17/2025
3.8.13 270 11/10/2025
3.8.4 200 10/9/2025
3.7.17 193 9/11/2025
3.7.16 181 9/11/2025
3.7.13 188 9/8/2025
3.7.0 349 8/18/2025
3.6.27 180 8/18/2025
3.6.26 184 8/14/2025
3.6.25 200 8/13/2025
3.6.24 184 8/12/2025
3.6.19 159 7/28/2025
3.6.18 372 7/25/2025
3.6.16 499 7/24/2025
3.6.14 495 7/24/2025
3.6.13 506 7/24/2025
3.6.10 576 7/22/2025
3.6.6 518 7/21/2025
3.6.1 183 7/14/2025
3.6.0 141 7/11/2025
3.5.3 183 7/10/2025
3.5.0 198 7/7/2025
3.4.30 175 7/7/2025
3.4.23 177 6/26/2025
3.4.21 187 6/26/2025
3.4.20 211 6/25/2025
3.4.18 202 6/23/2025
3.4.14 184 6/17/2025
3.4.9 333 6/11/2025
3.4.8 335 6/11/2025
3.4.4 216 6/2/2025
3.4.2 243 6/2/2025
3.4.1 158 5/30/2025
3.4.0 139 5/30/2025
3.3.11 198 5/18/2025
3.3.10 274 5/13/2025
3.3.0 230 4/29/2025
3.2.13 189 2/13/2025
3.2.9 152 2/4/2025
3.2.0 152 12/19/2024
3.1.0 185 12/6/2024
3.0.0 157 12/3/2024
2.1.3 142 12/3/2024
2.1.0 155 12/2/2024
2.0.5 143 11/26/2024
2.0.2 157 11/18/2024
2.0.1 146 11/15/2024
2.0.0 128 11/14/2024
1.0.47 151 11/14/2024
1.0.42 185 11/12/2024
1.0.40 143 11/12/2024
1.0.38 151 11/7/2024
1.0.37 141 11/4/2024
1.0.31 152 10/31/2024
1.0.28 165 10/25/2024
1.0.26 209 10/18/2024
1.0.25 145 10/17/2024
1.0.24 138 10/17/2024
1.0.19 151 10/11/2024
1.0.18 154 10/11/2024
1.0.17 163 9/27/2024
1.0.16 145 9/27/2024
1.0.14 174 9/23/2024
1.0.13 186 9/18/2024
1.0.12 153 9/18/2024
1.0.11 151 9/18/2024
1.0.10 179 9/11/2024
1.0.9 168 9/11/2024
1.0.8 196 9/11/2024
1.0.7 172 9/11/2024
1.0.1 176 9/4/2024
1.0.0 163 9/2/2024