Show / Hide Table of Contents

Class CsvReaderOptions

A class that represents the CsvOptions used by a CsvDataReader

Inheritance
Object
CsvOptions
CsvReaderOptions
Inherited Members
CsvOptions.DefaultDelimiter
CsvOptions.DefaultQuote
CsvOptions.DefaultComment
CsvOptions.Comment
CsvOptions.Delimiter
CsvOptions.TextQualifier
CsvOptions.UseTextQualifier
CsvOptions.RecordDelimiter
CsvOptions.RecordDelimiterHeader
CsvOptions.AlwaysUseNewLineAfterRecordDelimiter
CsvOptions.UseCustomRecordDelimiter
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Namespace: IRM.Data
Assembly: IRM.dll
Syntax
public class CsvReaderOptions : CsvOptions

Constructors

CsvReaderOptions()

Initializes a new instance of the CsvReaderOptions class.

Declaration
public CsvReaderOptions()

Fields

DefaultEscape

Defines the default escape character letting insert quotation characters inside a quoted field.

Declaration
public const char DefaultEscape = '"'
Field Value
Char

Properties

AcceptedDateTimeFormats

Gets or sets the accepted DateTime formats used then parsings dates.

Declaration
public string[] AcceptedDateTimeFormats { get; set; }
Property Value
String[]

Escape

Gets the escape character letting insert quotation characters inside a quoted field.

Declaration
public char Escape { get; set; }
Property Value
Char

The escape character letting insert quotation characters inside a quoted field.

HasHeaders

Indicates if field names are located on the first non commented line.

Declaration
public bool HasHeaders { get; set; }
Property Value
Boolean

true if field names are located on the first non commented line, otherwise, false.

MissingFieldAction

Gets or sets the action to take when a field is missing.

Declaration
public MissingFieldAction MissingFieldAction { get; set; }
Property Value
MissingFieldAction

The action to take when a field is missing.

ParseErrorAction

Gets or sets the default action to take when a parsing error has occured.

Declaration
public ParseErrorAction ParseErrorAction { get; set; }
Property Value
ParseErrorAction

The default action to take when a parsing error has occured.

ParseToDefinedType

Indicates if column values should be parsed to the defined type.

Declaration
public bool ParseToDefinedType { get; set; }
Property Value
Boolean

true if the column values should be parsed to the defined type, otherwise false.

Remarks

If the value is false all column values are parsed as strings.

SemicolonSeperated

Gets a CsvReaderOptions with semicolon (;) as Delimiter.

Declaration
public static CsvReaderOptions SemicolonSeperated { get; }
Property Value
CsvReaderOptions

SkipEmptyLines

Gets or sets a value indicating if the reader will skip empty lines.

Declaration
public bool SkipEmptyLines { get; set; }
Property Value
Boolean

A value indicating if the reader will skip empty lines.

SupportsMultiline

Gets or sets a value indicating if the reader supports multiline fields.

Declaration
public bool SupportsMultiline { get; set; }
Property Value
Boolean

A value indicating if the reader supports multiline field.

TabSeperated

Gets a CsvReaderOptions with Tab as Delimiter.

Declaration
public static CsvReaderOptions TabSeperated { get; }
Property Value
CsvReaderOptions

TrimmingOptions

Indicates if spaces at the start and end of a field are trimmed.

Declaration
public ValueTrimmingOptions TrimmingOptions { get; set; }
Property Value
ValueTrimmingOptions

Extension Methods

ObjectExtensions.DeepClone<T>(T)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX