Click or drag to resize
Accord.NET (logo)

CsvReader Properties

The CsvReader type exposes the following members.

Properties
  NameDescription
Public propertyBufferSize
Gets the buffer size.
Public propertyComment
Gets the comment character indicating that a line is commented out. Default is '#'.
Public propertyCurrentRecordIndex
Gets the current record index in the CSV file.
Public propertyDefaultHeaderName
Gets or sets the default header name when it is an empty string or only whitespaces. The header index will be appended to the specified name. Default is "Column".
Public propertyDefaultParseErrorAction
Gets or sets the default action to take when a parsing error has occured.
Public propertyDelimiter
Gets the delimiter character separating each field. If set to zero ('\0') the reader will try to guess the delimiter character automatically from the first line of the file.
Public propertyEndOfStream
Gets a value that indicates whether the current stream position is at the end of the stream.
Public propertyEscape
Gets the escape character letting insert quotation characters inside a quoted field. Default is '"'.
Public propertyFieldCount
Gets the maximum number of fields to retrieve for each record.
Public propertyHasHeaders
Indicates if field names are located on the first non commented line.
Public propertyIsDisposed
Gets a value indicating whether the instance has been disposed of.
Public propertyItemInt32
Gets the field at the specified index.
Public propertyItemString
Gets the field with the specified name. [M:hasHeaders] must be .
Public propertyItemInt32, Int32
Gets the field at the specified index and record position.
Public propertyItemInt32, String
Gets the field with the specified name and record position. [M:hasHeaders] must be .
Public propertyMissingFieldAction
Gets or sets the action to take when a field is missing.
Public propertyMissingFieldFlag
Indicates if one or more field are missing for the current record. Resets after each successful record read.
Public propertyParseErrorFlag
Indicates if a parse error occurred for the current record. Resets after each successful record read.
Public propertyQuote
Gets the quotation character wrapping every field. Default is '"'.
Public propertySkipEmptyLines
Gets or sets a value indicating if the reader will skip empty lines.
Public propertySupportsMultiline
Gets or sets a value indicating if the reader supports multiline fields.
Public propertyTrimmingOption
Indicates if spaces at the start and end of a field are trimmed. Default is to trim unquoted fields only.
Top
See Also