Read(CsvReader, int)
T Read(CsvReader reader, int index)Reads the value of field index of the current record.
Parameters
readerCsvReader- The reader, positioned on the record.
indexint- The 0-based index of the member's column.
Interface in CsvHelper
Reads and writes the field of a member of a CsvRecordAttribute type that has a CsvConverterAttribute, for types that cannot be read otherwise and for formats of your own.
public interface ICsvConverter<T>CsvHelperCsvHelper.dllA converter needs a public or internal parameterless constructor. Each mapper and record writer creates one instance and calls it for every record; the workers of CsvReader.ParallelEnumerate<T>(int) share a mapper, so a converter must be thread-safe (one without fields is).
T Read(CsvReader reader, int index)Reads the value of field index of the current record.
readerCsvReaderindexintvoid Write(CsvWriter writer, T value)Writes the value of the member as one field of the current record, with one of the writer's WriteField methods, in a form that Read reads back.
writerCsvWritervalueT