Click or drag to resize
Accord.NET (logo)

CsvReaderCopyCurrentRecordTo Method (String, Int32)

Copies the field array of the current record to a one-dimensional array, starting at the beginning of the target array.

Namespace:  Accord.IO
Assembly:  Accord.IO (in Accord.IO.dll) Version: 3.8.0
public void CopyCurrentRecordTo(
	string[] array,
	int index
Request Example View Source


Type: SystemString
The one-dimensional Array that is the destination of the fields of the current record.
Type: SystemInt32
The zero-based index in array at which copying begins.
ArgumentNullExceptionarray is .
ArgumentOutOfRangeExceptionindex is les than zero or is equal to or greater than the length array.
InvalidOperationException No current record.
ArgumentException The number of fields in the record is greater than the available space from index to the end of array.
See Also