CsvReader(TextReader, Char, Boolean, CsvOpts) Constructor

Initializes a new CsvReader instance.

Definition

Namespace: FolkerKinzel.CsvTools
Assembly: FolkerKinzel.CsvTools (in FolkerKinzel.CsvTools.dll) Version: 2.0.1+2345335399184346d9b2cc992ed5c814406052c1
C#
public CsvReader(
	TextReader reader,
	char delimiter = ',',
	bool isHeaderPresent = true,
	CsvOpts options = CsvOpts.Default
)

Parameters

reader  TextReader
The TextReader with which the CSV data is read.
delimiter  Char  (Optional)
The field separator character.
isHeaderPresent  Boolean  (Optional)
true, to interpret the first line as a header, otherwise false.
options  CsvOpts  (Optional)
Options for reading CSV.

Exceptions

ArgumentNullExceptionreader is null.
ArgumentOutOfRangeExceptiondelimiter is either the double quotes " or a line break character ('\r' or '\n').

See Also