CSV Class
/// Root class that contains static functions for straightforward CSV parsing
///
This language is not supported or no code example is available.
This language is not supported or no code example is available.
This language is not supported or no code example is available.
This language is not supported or no code example is available.
|
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.
///
|
Top
|
Name
|
Description
|
|
VERSION
|
/// Use this to determine what version of DotNet was used to build this library
///
|
Top
.NET Framework
Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8