CsvReader Class |
Namespace: DataStreams.Csv
The CsvReader type exposes the following members.
Name | Description | |
---|---|---|
CsvReader(TextReader) |
Constructs a CsvReader object using
a TextReader object as the data
source. Uses a comma as the column delimiter.
| |
CsvReader(String) |
Creates a CsvReader object using a
file as the data source. Uses a comma as the column
delimiter and Default as the
encoding.
| |
CsvReader(Stream, Encoding) |
Constructs a CsvReader object using
a Stream object as the data
source. Uses a comma as the column delimiter.
| |
CsvReader(TextReader, Char) |
Constructs a CsvReader object using
a TextReader object as the data
source.
| |
CsvReader(String, Char) |
Creates a CsvReader object using a
file as the data source. Uses Default
as the encoding.
| |
CsvReader(Stream, Char, Encoding) |
Constructs a CsvReader object using
a Stream object as the data
source.
| |
CsvReader(String, Char, Encoding) |
Creates a CsvReader object using a
file as the data source.
|
Name | Description | |
---|---|---|
Close |
Closes and releases all related resources.
(Inherited from ReaderBase.) | |
Equals | (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetHeader |
Returns the column header value for a given
columnIndex.
| |
GetIndex |
Gets the corresponding column index for a given
headerName.
| |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
IsQualified |
Determines whether a specified column was qualified
or not.
| |
Parse |
Creates a CsvReader object using
a string of data as the source. Uses Default
as the encoding.
| |
ReadHeaders |
Read the first record of data as column headers.
| |
ReadRecord |
Reads another record.
(Overrides ReaderBaseReadRecord.) | |
ReadToEnd |
Reads till the end of the csv data. Reads the
first line in the data as column headers.
| |
ReadToEnd(Boolean) |
Reads till the end of the csv data.
| |
ReadToEnd(Boolean, UInt64) |
Reads till the end of the csv data.
| |
SkipLine |
Skips the next line of data using the standard
end of line characters and does not do any
column delimited parsing.
| |
SkipRecord |
Skips the next record of data by parsing each column.
Does not increment CurrentRecord.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
ColumnCount |
The count of columns found in the current record.
| |
CurrentRecord |
The index of the current record.
(Inherited from ReaderBase.) | |
HeaderCount |
The count of headers read in by a previous call to ReadHeaders.
| |
Headers |
Returns the header values as a string array.
| |
ItemInt32 |
Returns the current column value for a given column index.
(Inherited from ReaderBase.) | |
ItemString |
Returns the current column value corresponding to the
headerName.
| |
RawRecord |
Returns the text of the current record as it existed before parsing.
| |
Settings |
Has all the options that are able to be set that will affect the way
records are parsed and accessed.
| |
Values |
Returns the columns values for the current record as a string array.
(Inherited from ReaderBase.) |