CSV Methods

The following tables list the members exposed by the CSV type.

Methods
 
Name Description
Public method Static AppendCSVHeader<T>(this StringBuilder, CSVSettings) /// Add a CSV Header line to a StringBuilder for a specific type ///
Public method Static AppendCSVLine<T>(this StringBuilder, T, CSVSettings) /// Appends a single object to a StringBuilder in CSV format as a single line ///
Public method Static Deserialize<T>(string, CSVSettings) /// Deserialize a CSV string into a list of typed objects ///
Public method Static ParseLine(string, CSVSettings, Nullable<Boolean>) /// Parse a line from a CSV file and return an array of fields, or null if it fails ///
Public method Static ParseSepLine(string) /// Parse a separator line and determine ///
Public method Static ParseStream(StreamReader, CSVSettings) /// Parse a CSV stream into IEnumerable<string[]> , while permitting embedded newlines ///
Public method Static Serialize<T>(IEnumerable<T>, CSVSettings) /// Serialize an array of objects to CSV format ///
Public method Static Serialize<T>(IEnumerable<T>, Stream, CSVSettings) /// Serialize an array of objects to CSV format ///
Public method Static ToCSVString(this IEnumerable<Object>, CSVSettings) /// Serialize a sequence of objects into a CSV string ///
Public method Static 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

In this article

Definition