CSV Methods
The following tables list the members exposed by the CSV type.
| Name | Description | |
|---|---|---|
|
AppendCSVHeader<T>(this StringBuilder, CSVSettings) | /// Add a CSV Header line to a StringBuilder for a specific type /// |
|
AppendCSVLine<T>(this StringBuilder, T, CSVSettings) | /// Appends a single object to a StringBuilder in CSV format as a single line /// |
|
Deserialize<T>(string, CSVSettings) | /// Deserialize a CSV string into a list of typed objects /// |
|
ParseLine(string, CSVSettings, Nullable<Boolean>) | /// Parse a line from a CSV file and return an array of fields, or null if it fails /// |
|
ParseSepLine(string) | /// Parse a separator line and determine /// |
|
ParseStream(StreamReader, CSVSettings) | /// Parse a CSV stream into IEnumerable<string[]> , while permitting embedded newlines /// |
|
Serialize<T>(IEnumerable<T>, CSVSettings) | /// Serialize an array of objects to CSV format /// |
|
Serialize<T>(IEnumerable<T>, Stream, CSVSettings) | /// Serialize an array of objects to CSV format /// |
|
ToCSVString(this IEnumerable<Object>, CSVSettings) | /// Serialize a sequence of objects into a CSV string /// |
|
TryParseLine(string, out string[], CSVSettings) | /// Try to parse a line of CSV data. Can only return false if an unterminated text qualifier is encountered. /// /// This function cannot recognize 'sep=' lines because it does not know whether it is parsing the first line /// in the overall CSV stream. /// |