Class CsvDataFormatOptions

Assembly: redb.Route.DataFormats.Csv.dll

Options of one instance (per node or per registration).

public sealed class CsvDataFormatOptions

Inheritance

Object→CsvDataFormatOptions

Properties

Culture

Culture for number and date conversion. Default invariant.

public CultureInfo Culture { get; set; }

Delimiter

Field delimiter. Default ,.

public string Delimiter { get; set; }

Encoding

Text encoding. Default UTF-8 without BOM.

public Encoding Encoding { get; set; }

HasHeaderRecord

Whether the first record is a header (written on marshal, read on unmarshal). Default true.

public bool HasHeaderRecord { get; set; }

NewLine

Record terminator written on marshal. Default \r\n (RFC 4180).

public string NewLine { get; set; }

Quote

Quote character. Default ".

public char Quote { get; set; }

TrimFields

Trim whitespace around fields on read. Default false.

public bool TrimFields { get; set; }