CommonNetFuncs.Csv 3.6.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package CommonNetFuncs.Csv --version 3.6.6
                    
NuGet\Install-Package CommonNetFuncs.Csv -Version 3.6.6
                    
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.6.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommonNetFuncs.Csv" Version="3.6.6" />
                    
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.6.6
                    
#r "nuget: CommonNetFuncs.Csv, 3.6.6"
                    
#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.6.6
                    
#: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.6.6
                    
Install as a Cake Addin
#tool nuget:?package=CommonNetFuncs.Csv&version=3.6.6
                    
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
3.7.0 123 8/18/2025
3.6.27 114 8/18/2025
3.6.26 128 8/14/2025
3.6.25 132 8/13/2025
3.6.24 134 8/12/2025
3.6.19 99 7/28/2025
3.6.18 322 7/25/2025
3.6.16 438 7/24/2025
3.6.14 439 7/24/2025
3.6.13 446 7/24/2025
3.6.10 490 7/22/2025
3.6.6 441 7/21/2025
3.6.1 144 7/14/2025
3.6.0 104 7/11/2025
3.5.3 142 7/10/2025
3.5.0 156 7/7/2025
3.4.30 140 7/7/2025
3.4.23 135 6/26/2025
3.4.21 144 6/26/2025
3.4.20 156 6/25/2025
3.4.18 156 6/23/2025
3.4.14 148 6/17/2025
3.4.9 299 6/11/2025
3.4.8 294 6/11/2025
3.4.4 162 6/2/2025
3.4.2 203 6/2/2025
3.4.1 106 5/30/2025
3.4.0 106 5/30/2025
3.3.11 164 5/18/2025
3.3.10 242 5/13/2025
3.3.0 178 4/29/2025
3.2.13 159 2/13/2025
3.2.9 124 2/4/2025
3.2.0 121 12/19/2024
3.1.0 157 12/6/2024
3.0.0 127 12/3/2024
2.1.3 117 12/3/2024
2.1.0 127 12/2/2024
2.0.5 118 11/26/2024
2.0.2 128 11/18/2024
2.0.1 119 11/15/2024
2.0.0 110 11/14/2024
1.0.47 120 11/14/2024
1.0.42 158 11/12/2024
1.0.40 123 11/12/2024
1.0.38 124 11/7/2024
1.0.37 122 11/4/2024
1.0.31 125 10/31/2024
1.0.28 135 10/25/2024
1.0.26 182 10/18/2024
1.0.25 115 10/17/2024
1.0.24 110 10/17/2024
1.0.19 124 10/11/2024
1.0.18 126 10/11/2024
1.0.17 132 9/27/2024
1.0.16 116 9/27/2024
1.0.14 141 9/23/2024
1.0.13 159 9/18/2024
1.0.12 123 9/18/2024
1.0.11 124 9/18/2024
1.0.10 149 9/11/2024
1.0.9 140 9/11/2024
1.0.8 166 9/11/2024
1.0.7 142 9/11/2024
1.0.1 142 9/4/2024
1.0.0 134 9/2/2024