CsvWriter ClassCleanCode C# Libraries v1.2.03 API
Writes a OnlineDataTable to a CSV file.
Inheritance Hierarchy

OnlineSystem Object
  CleanCode.CsvProcessing CsvWriter

Namespace: CleanCode.CsvProcessing
Assembly: CleanCode.CsvProcessing (in CleanCode.CsvProcessing.dll) Version: (1.2.03)

public class CsvWriter

This class follows the standard conventions for creating a CSV (comma-separated value) file, as described on OnlineWikipedia. That is, any special characters (quotes, newlines, commas) require enclosure within quotes. That capability was added to the basic code found at Online Export ASP.Net DataGrid DataSet To CSV File.

The first record of the generated file is a header row. This row consists of the names of each column from the OnlineDataTable together with their data types in the format name:type. For example, an integer column with the name "Id" will have the value Id:System.Int32.

Since CleanCode 0.9.13.

See Also