C# Class Mono.Csv.CsvFileWriter

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

Méthodes publiques

Méthode 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 méthode

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

CsvFileWriter() public méthode

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

CsvFileWriter() public méthode

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
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

WriteAll() public méthode

public WriteAll ( List dataGrid ) : void
dataGrid List
Résultat void

WriteAll() public static méthode

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

WriteRow() public méthode

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