A very simple CSV-export tool for C#, code ispired by a thread at Stackoverflow, (C) Chris Hulbert

This was previously published as a “Gist” but I moved it here, for easier forking/contributing.


  1. Excel-compatible export (separator detected automatically, friendly-trimming rows and values for compatibility)
  2. Escapes commas, quotes, multiline text
  3. Exports dates in timezone-proof format
  4. Extremely easy to use

Usage example:

Simply include one C# file into your project. Then:

(NEW!) Nuget

I’ve published this to Nuget.

Install-Package CsvExport

This will simply add the cs-file to the root of your project.


Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir