Name | Description | |
---|---|---|
CsvWriter Constructor | Overloaded. |
The following tables list the members exposed by CsvWriter.
Name | Description | |
---|---|---|
CsvWriter Constructor | Overloaded. |
Name | Description | |
---|---|---|
CustomColumnNames | List with custom column names. Defines order and names of columns | |
DateTimeFormat | Property which controls date format. Default is "g". See https://msdn.microsoft.com/en-us/library/8kb3ddd4%28v=vs.110%29.aspx | |
DefaultEncoding | Override the default encoding. The default is Encoding.Default | |
InsertHeaderSpaces | If true, Pascal Cased Header Names will be split into words. Default is true | |
OutputHeader | If true, a default header will be output. Default is true | |
QuoteCharacter | The quote character. Defaults to double quote | |
QuoteEachField | If true, each field will be surrounded with quote (double quote by default). Default is false | |
Seperator | The seperator for the columns. Default is a comma. This can be changed to a pipe or tab etc. |
Name | Description | |
---|---|---|
AppendToCsvFile | Overloaded. Append to a CSV file. For the first item passed it will create the header if OutputHeader is true. | |
AppendToCsvString | Overloaded. Write the properties of a class list to a CSV string and append to existing string | |
AppendToCsvWriter | Overloaded. Append an object to a CSV writer | |
ClassListToCsvFile | Overloaded. Create a CSV file from a list of objects. It will output all public properties of the class as columns. | |
ClassListToCsvString | Overloaded. Create a CSV string from a list of objects. It will output all public properties of the class as columns. | |
ClassListToCsvWriter<T> | Write the properties of a class list into a TextWriter | |
DataTableToCsvFile | Overloaded. Create a CSV File from a data table | |
DataTableToCsvString | Overloaded. Create a CSV String from a data table | |
DataTableToCsvWriter | Overloaded. Output the rows of a data table to a text writer |