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.5+a1df9eb1ff3c1305310d778343390475b5f50c0f
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