Property | Type | Description | |
---|---|---|---|
QuoteLimit | int |
Method | Description | |
---|---|---|
CsvWriter ( |
Construct a new to output CSV data to the stream provided.
|
|
WriteAll ( string records ) : void |
Write all records to the output CSV stream.
|
|
WriteField ( string field ) : void |
Write a single field to the output stream appending a separator if it is not the first field on the line.
|
|
WriteRecord ( string record ) : void |
Writes a single record to the output stream appending a new line to the end of the previous line if this is not the first record.
|
Method | Description | |
---|---|---|
WriteFieldEscaped ( string field ) : void |
This is the worker method that writes fields to the file and quotes them if necessary. If the field is null or an empty string, nothing is written (not even quoted).
|
public CsvWriter ( |
||
stream | CSV data will be written to this stream. | |
return | System.IO |
public WriteAll ( string records ) : void | ||
records | string | an array of string arrays containing the /// records to be written. Each string becomes a single comma separated /// field, each array of strings becomes a record. |
return | void |
public WriteRecord ( string record ) : void | ||
record | string | The record to be written - an array of string fields. |
return | void |