CSV Class

/// Root class that contains static functions for straightforward CSV parsing ///
Public Class CSV
This language is not supported or no code example is available.
public static class CSV
This language is not supported or no code example is available.
public ref class CSV 
This language is not supported or no code example is available.
public class CSV
This language is not supported or no code example is available.
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
Fields
 
Name Description
Public field 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

In this article

Definition