CachedCsvReader Members

The CachedCsvReader type exposes the following members.

Constructors


  Name Description
Public method CachedCsvReader(TextReader, Boolean)
Initializes a new instance of the CsvReader class.
Public method CachedCsvReader(TextReader, Boolean, Int32)
Initializes a new instance of the CsvReader class.
Public method CachedCsvReader(TextReader, Boolean, Char)
Initializes a new instance of the CsvReader class.
Public method CachedCsvReader(TextReader, Boolean, Char, Int32)
Initializes a new instance of the CsvReader class.
Public method CachedCsvReader(TextReader, Boolean, Char, Char, Char, Char, ValueTrimmingOptions)
Initializes a new instance of the CsvReader class.
Public method CachedCsvReader(TextReader, Boolean, Char, Char, Char, Char, ValueTrimmingOptions, Int32)
Initializes a new instance of the CsvReader class.

Methods


  Name Description
Protected method CheckDisposed (Inherited from CsvReader.)
Public method CopyCurrentRecordTo(array<String>[]()[][])
Copies the field array of the current record to a one-dimensional array, starting at the beginning of the target array.
(Inherited from CsvReader.)
Public method CopyCurrentRecordTo(array<String>[]()[][], Int32)
Copies the field array of the current record to a one-dimensional array, starting at the beginning of the target array.
(Inherited from CsvReader.)
Public method Dispose()()()()
Releases all resources used by the instance.
(Inherited from CsvReader.)
Protected method Dispose(Boolean) (Inherited from CsvReader.)
Public method Equals(System.Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetCurrentRawData
Gets the current raw CSV data.
(Inherited from CsvReader.)
Public method GetEnumerator
Returns an RecordEnumerator that can iterate through CSV records.
(Inherited from CsvReader.)
Public method GetFieldHeaders
Gets the field headers.
(Inherited from CsvReader.)
Public method GetFieldIndex
Gets the field index for the provided header.
(Inherited from CsvReader.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method MoveTo
Moves to the specified record index.
Public method MoveToLastCachedRecord
Moves to the last record read so far.
Public method MoveToStart
Moves before the first record.
Protected method OnDisposed (Inherited from CsvReader.)
Protected method OnParseError (Inherited from CsvReader.)
Public method ReadNextRecord
Reads the next record.
(Inherited from CsvReader.)
Public method ReadToEnd
Reads the CSV stream from the current position to the end of the stream.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties


  Name Description
Public property BufferSize
Gets the buffer size.
(Inherited from CsvReader.)
Public property Comment
Gets the comment character indicating that a line is commented out.
(Inherited from CsvReader.)
Public property CurrentRecordIndex
Gets the current record index in the CSV file.
Public property DefaultHeaderName
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.
(Inherited from CsvReader.)
Public property DefaultParseErrorAction
Gets or sets the default action to take when a parsing error has occured.
(Inherited from CsvReader.)
Public property Delimiter
Gets the delimiter character separating each field.
(Inherited from CsvReader.)
Public property EndOfStream
Gets a value that indicates whether the current stream position is at the end of the stream.
Public property Escape
Gets the escape character letting insert quotation characters inside a quoted field.
(Inherited from CsvReader.)
Public property FieldCount
Gets the maximum number of fields to retrieve for each record.
(Inherited from CsvReader.)
Public property HasHeaders
Indicates if field names are located on the first non commented line.
(Inherited from CsvReader.)
Public property IsDisposed
Gets a value indicating whether the instance has been disposed of.
(Inherited from CsvReader.)
Public property Item[([( Int32])])
Gets the field at the specified index.
Public property Item[([( Int32, String])])
Gets the field with the specified name and record position. [M:hasHeaders] must be trueTruetruetrue (True in Visual Basic).
(Inherited from CsvReader.)
Public property Item[([( Int32, Int32])])
Gets the field at the specified index and record position.
(Inherited from CsvReader.)
Public property Item[([( String])])
Gets the field with the specified name. [M:hasHeaders] must be trueTruetruetrue (True in Visual Basic).
(Inherited from CsvReader.)
Public property MissingFieldAction
Gets or sets the action to take when a field is missing.
(Inherited from CsvReader.)
Public property MissingFieldFlag
Indicates if one or more field are missing for the current record. Resets after each successful record read.
(Inherited from CsvReader.)
Public property ParseErrorFlag
Indicates if a parse error occured for the current record. Resets after each successful record read.
(Inherited from CsvReader.)
Public property Quote
Gets the quotation character wrapping every field.
(Inherited from CsvReader.)
Public property SkipEmptyLines
Gets or sets a value indicating if the reader will skip empty lines.
(Inherited from CsvReader.)
Public property SupportsMultiline
Gets or sets a value indicating if the reader supports multiline fields.
(Inherited from CsvReader.)
Public property TrimmingOption
Indicates if spaces at the start and end of a field are trimmed.
(Inherited from CsvReader.)

Events


  Name Description
Public event Disposed
Occurs when the instance is disposed of.
(Inherited from CsvReader.)
Public event ParseError
Occurs when there is an error while parsing the CSV stream.
(Inherited from CsvReader.)