Table of Contents

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

name string

Name of the document (optional).

comments IEnumerable<string>

Comments (optional).

Fields

CONTENT_TYPE

HTTP Content Type

public static readonly string CONTENT_TYPE

Field Value

string

FILE_EXTENSION

Default file extension.

public static readonly string FILE_EXTENSION

Field Value

string

Properties

Comments

Document comments.

public IList<string> Comments { get; }

Property Value

IList<string>

Fields

List of fields.

public IList<string> Fields { get; }

Property Value

IList<string>

Name

Document name (optional).

public string Name { get; set; }

Property Value

string

Records

List of records.

public IList<CSVDocument.ICSVRecord> Records { get; }

Property Value

IList<CSVDocument.ICSVRecord>

Methods

Parse(string, string?)

Parse CSV data.

public static CSVDocument Parse(string data, string? name = null)

Parameters

data string

CSV data to parse.

name string

Name of the document.

Returns

CSVDocument

A CSVDocument representing the data.

Parse(string[], string?)

Parse CSV data.

public static CSVDocument Parse(string[] csvData, string? name = null)

Parameters

csvData string[]

Lines of CSV data.

name string

Name of the document (OPTIONAL)

Returns

CSVDocument

A CSVDocument representing the data.

ParseFile(string)

Load and parse a file.

public static CSVDocument ParseFile(string path)

Parameters

path string

Pathname of the file.

Returns

CSVDocument

A CSVDocument representing the file.