Info
Version: | 2.0.2 |
Author(s): | Erwin Bakels |
Last Update: | Saturday, March 28, 2020 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/DSharp.CsvHelper |
Install
Install-Package DSharp.CsvHelper
dotnet add package DSharp.CsvHelper
paket add DSharp.CsvHelper
DSharp.CsvHelper Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
With this package you can write attributes above your class like:
[CsvDelimiter("|")]
and above fields:
[CsvFormat("yyyyMMdd")]
[CsvLength(8)]
[CsvFormat("0.00")]
[CsvIgnore]
Afterwards you can write it:
var writer = new CsvWriter<MyObject>(@"c:\export.csv");
//writer.Definition.WriteHeader = false;
writer.Write(list);.