Class CsvOptions
Base options for CsvDataReader and CsvWriter.
Inherited Members
Namespace: IRM.Data
Assembly: IRM.dll
Syntax
public abstract class CsvOptions
Constructors
CsvOptions()
Fields
DefaultComment
Defines the default comment character indicating that a line is commented out.
Declaration
public const char DefaultComment = '#'
Field Value
Char
|
DefaultDelimiter
Defines the default delimiter character separating each field.
Declaration
public const char DefaultDelimiter = ','
Field Value
Char
|
DefaultQuote
Defines the default quote character wrapping every field.
Declaration
public const char DefaultQuote = '"'
Field Value
Char
|
Properties
AlwaysUseNewLineAfterRecordDelimiter
Gets or sets if System.Environment.NewLine always should be used, even if a custom RecordDelimiter is set. The default is true.
Declaration
public bool AlwaysUseNewLineAfterRecordDelimiter { get; set; }
Property Value
Boolean
|
Comment
The character to use as a comment signal. Default is pound, '#'.
Declaration
public char Comment { get; set; }
Property Value
Char
|
Delimiter
The character to use as the column delimiter. Default is comma, ','.
Declaration
public char Delimiter { get; set; }
Property Value
Char
|
RecordDelimiter
The character to use as the record delimiter. Default uses the system default end of line marker.
Declaration
public char RecordDelimiter { get; set; }
Property Value
Char
|
RecordDelimiterHeader
Gets or sets the text used in the header for the Record Delimiter. The default is an empty string.
Declaration
public string RecordDelimiterHeader { get; set; }
Property Value
String
|
TextQualifier
The character to use as a text qualifier in the data. Default is quote, '"'.
Declaration
public char TextQualifier { get; set; }
Property Value
Char
|
UseCustomRecordDelimiter
Gets a value indicating if a CsvDataReader or CsvWriter is using a custom record delimiter.
Declaration
public bool UseCustomRecordDelimiter { get; }
Property Value
Boolean
|
UseTextQualifier
Whether to qualify columns of data with the TextQualifier if the data requires it. Default is true.
Declaration
public bool UseTextQualifier { get; set; }
Property Value
Boolean
|