Class CSVDocument
- Namespace
- Tudormobile.QIFLibrary
- Assembly
- Tudormobile.QIFLibrary.dll
Comma Separated Values (CSV) document.
public class CSVDocument
- Inheritance
-
CSVDocument
- Inherited Members
Constructors
CSVDocument(string?, IEnumerable<string>?)
Creates a new CSV document.
public CSVDocument(string? name = null, IEnumerable<string>? comments = null)
Parameters
namestringName of the document (optional).
commentsIEnumerable<string>Comments (optional).
Fields
CONTENT_TYPE
HTTP Content Type
public static readonly string CONTENT_TYPE
Field Value
FILE_EXTENSION
Default file extension.
public static readonly string FILE_EXTENSION
Field Value
Properties
Comments
Document comments.
public IList<string> Comments { get; }
Property Value
Fields
List of fields.
public IList<string> Fields { get; }
Property Value
Name
Document name (optional).
public string Name { get; set; }
Property Value
Records
List of records.
public IList<CSVDocument.ICSVRecord> Records { get; }
Property Value
Methods
Parse(string, string?)
Parse CSV data.
public static CSVDocument Parse(string data, string? name = null)
Parameters
Returns
- CSVDocument
A CSVDocument representing the data.
Parse(string[], string?)
Parse CSV data.
public static CSVDocument Parse(string[] csvData, string? name = null)
Parameters
Returns
- CSVDocument
A CSVDocument representing the data.
ParseFile(string)
Load and parse a file.
public static CSVDocument ParseFile(string path)
Parameters
pathstringPathname of the file.
Returns
- CSVDocument
A CSVDocument representing the file.