![]() |
VOOZH | about |
dotnet add package Sylvan.Data.Csv --version 1.4.4
NuGet\Install-Package Sylvan.Data.Csv -Version 1.4.4
<PackageReference Include="Sylvan.Data.Csv" Version="1.4.4" />
<PackageVersion Include="Sylvan.Data.Csv" Version="1.4.4" />Directory.Packages.props
<PackageReference Include="Sylvan.Data.Csv" />Project file
paket add Sylvan.Data.Csv --version 1.4.4
#r "nuget: Sylvan.Data.Csv, 1.4.4"
#:package Sylvan.Data.Csv@1.4.4
#addin nuget:?package=Sylvan.Data.Csv&version=1.4.4Install as a Cake Addin
#tool nuget:?package=Sylvan.Data.Csv&version=1.4.4Install as a Cake Tool
A cross-platform .NET library for reading and writing CSV data files.
The CsvDataReader provides readonly, row by row, forward-only access to the data.
Exposes a familiar API via DbDataReader, which is ideal for accessing rectangular, tabular data sets.
Sylvan.Data.Csv is currently the fastest library for reading CSV data
in the .NET ecosystem.
DateOnly and TimeOnly on .NET 6,using Sylvan.Data.Csv;
// CsvDataReader derives from System.Data.DbDataReader
using CsvDataReader dr = CsvDataReader.Create("data.csv");
// iterate over the rows in the file.
while(dr.Read())
{
// iterate fields in row.
for(int i = 0; i < dr.FieldCount; i++)
{
var value = dr.GetString(i);
}
// Can use other strongly-typed accessors
// bool flag = edr.GetBoolean(0);
// DateTime date = edr.GetDateTime(1);
// decimal amt = edr.GetDecimal(2);
}
using Sylvan.Data;
using Sylvan.Data.Csv;
using System.Linq;
using var dr = CsvDataReader.Create("data.csv");
IEnumerable<Record> records = dr.GetRecords<Record>();
Record[] allRecords = records.ToArray();
class Record {
public int Id { get; set; }
public string Name { get; set; }
public DateTime Date { get; set; }
public decimal Amount { get; set; }
}
using Sylvan.Data;
using Sylvan.Data.Csv;
using Sylvan.Data.Excel;
using System.Data.Common;
// create reader for excel data file
ExcelDataReader edr = ExcelDataReader.Create("example.xlsx");
// (optional) create data reader which allows variable-length rows
DbDataReader reader = edr.AsVariableField(edr => edr.RowFieldCount);
// create CSV writer to standard out
var csvWriter = CsvDataWriter.Create(Console.Out);
// write excel data as csv
csvWriter.Write(reader);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Sylvan.Data.Csv:
| Package | Downloads |
|---|---|
|
GreatUtilities.Infrastructure
Essencial tools to agile development. |
|
|
LuminaSupplemental.Excel
Supplemental data for lumina and dalamud plugins. |
|
|
Verify.Sylvan.Data.Excel
Extends Verify (https://github.com/VerifyTests/Verify) to allow verification via Sylvan.Data.Excel https://github.com/MarkPflug/Sylvan.Data.Excel/ |
|
|
cai.reporting
Provides helpers to generate report using FastReport |
|
|
Sylvan.AspNetCore.Mvc.Csv
Package Description |
Showing the top 5 popular GitHub repositories that depend on Sylvan.Data.Csv:
| Repository | Stars |
|---|---|
|
LykosAI/StabilityMatrix
Multi-Platform Package Manager for Stable Diffusion
|
|
|
nietras/Sep
World's Fastest .NET CSV Parser. Modern, minimal, fast, zero allocation, reading and writing of separated values (`csv`, `tsv` etc.). Cross-platform, trimmable and AOT/NativeAOT compatible with blazing fast SIMD vectorized parsing.
|
|
|
JasonBock/Rocks
A mocking library based on the Compiler APIs (Roslyn + Mocks)
|
|
|
MarkPflug/Sylvan.Data.Excel
The fastest .NET library for reading Excel data files.
|
|
|
randomerz/Slider
A 2D Puzzle-Exploration game based on 8 puzzle
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.4 | 68,641 | 4/7/2026 |
| 1.4.3 | 246,279 | 11/6/2025 |
| 1.4.2 | 253,323 | 4/23/2025 |
| 1.4.1 | 143,052 | 2/27/2025 |
| 1.4.0 | 55,918 | 2/5/2025 |
| 1.3.9 | 388,762 | 7/2/2024 |
| 1.3.8 | 226,202 | 4/23/2024 |
| 1.3.7 | 163,724 | 2/10/2024 |
| 1.3.6 | 3,210 | 2/6/2024 |
| 1.3.6-b0001 | 193 | 2/5/2024 |
| 1.3.5 | 140,467 | 11/3/2023 |
| 1.3.4 | 2,347 | 11/2/2023 |
| 1.3.3 | 184,417 | 7/17/2023 |
| 1.3.2 | 53,760 | 6/6/2023 |
| 1.3.2-b0001 | 329 | 5/30/2023 |
| 1.3.1 | 24,115 | 5/7/2023 |
| 1.3.0 | 26,382 | 4/25/2023 |
| 1.2.7 | 240,088 | 2/15/2023 |
| 1.2.6 | 2,197 | 2/13/2023 |
| 1.2.6-b0003 | 485 | 2/10/2023 |