CsvReader Constructor (TextReader, Boolean)

Initializes a new instance of the CsvReader class.

Namespace:  LumenWorks.Framework.IO.Csv
Assembly:  LumenWorks.Framework.IO (in LumenWorks.Framework.IO.dll)

Syntax


public CsvReader(
	TextReader reader,
	bool hasHeaders
)
Public Sub New ( _
	reader As TextReader, _
	hasHeaders As Boolean _
)
public:
CsvReader(
	TextReader^ reader, 
	bool^ hasHeaders
)

Parameters

reader
Type: TextReader
A TextReader pointing to the CSV file.
hasHeaders
Type: Boolean
trueTruetruetrue (True in Visual Basic) if field names are located on the first non commented line, otherwise, falseFalsefalsefalse (False in Visual Basic).

Exceptions


ExceptionCondition
ArgumentNullExceptionreader is a nullNothingnullptra null reference (Nothing in Visual Basic).
ArgumentException Cannot read from reader.