C# Class Mono.Csv.CsvFileWriter

Class for writing to comma-separated-value (CSV) files.
Inheritance: CsvFileCommon, IDisposable
Datei anzeigen Open project: floatinghotpot/LiteCsvParser Class Usage Examples

Public Methods

Method Description
CsvFileWriter ( Stream stream ) : System

Initializes a new instance of the CsvFileWriter class for the specified stream.

CsvFileWriter ( StreamWriter writer ) : System

Initializes a new instance of the CsvFileWriter class for the specified stream.

CsvFileWriter ( string path ) : System

Initializes a new instance of the CsvFileWriter class for the specified file path.

Dispose ( ) : void
WriteAll ( List dataGrid ) : void
WriteAll ( List dataGrid, string path, Encoding encoding ) : void
WriteRow ( List columns ) : void

Writes a row of columns to the current CSV file.

Method Details

CsvFileWriter() public method

Initializes a new instance of the CsvFileWriter class for the specified stream.
public CsvFileWriter ( Stream stream ) : System
stream Stream The stream to write to
return System

CsvFileWriter() public method

Initializes a new instance of the CsvFileWriter class for the specified stream.
public CsvFileWriter ( StreamWriter writer ) : System
writer System.IO.StreamWriter
return System

CsvFileWriter() public method

Initializes a new instance of the CsvFileWriter class for the specified file path.
public CsvFileWriter ( string path ) : System
path string The name of the CSV file to write to
return System

Dispose() public method

public Dispose ( ) : void
return void

WriteAll() public method

public WriteAll ( List dataGrid ) : void
dataGrid List
return void

WriteAll() public static method

public static WriteAll ( List dataGrid, string path, Encoding encoding ) : void
dataGrid List
path string
encoding System.Text.Encoding
return void

WriteRow() public method

Writes a row of columns to the current CSV file.
public WriteRow ( List columns ) : void
columns List The list of columns to write
return void