CommonNetFuncs.Csv 4.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package CommonNetFuncs.Csv --version 4.0.2
                    
NuGet\Install-Package CommonNetFuncs.Csv -Version 4.0.2
                    
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="4.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommonNetFuncs.Csv" Version="4.0.2" />
                    
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 4.0.2
                    
#r "nuget: CommonNetFuncs.Csv, 4.0.2"
                    
#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@4.0.2
                    
#: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=4.0.2
                    
Install as a Cake Addin
#tool nuget:?package=CommonNetFuncs.Csv&version=4.0.2
                    
Install as a Cake Tool

CommonNetFuncs.Csv

License Build NuGet Version 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 net10.0 is compatible.  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.17 99 2/23/2026
4.0.15 105 2/8/2026
4.0.14 101 2/7/2026
4.0.12 101 2/3/2026
4.0.10 101 1/24/2026
4.0.9 105 1/12/2026
4.0.6 112 1/2/2026
4.0.3 203 12/22/2025
4.0.2 689 12/2/2025
4.0.1 202 11/27/2025
4.0.0 435 11/23/2025
3.8.42 45 3/5/2026
3.8.38 100 2/24/2026
3.8.33 113 2/2/2026
3.8.32 108 2/2/2026
3.8.28 121 1/5/2026
3.8.20 593 12/1/2025
3.8.18 442 11/20/2025
3.8.16 422 11/17/2025
3.8.13 303 11/10/2025
Loading failed