Interface IMaterializer<T, TResult>
Instance of a type that reads CSV records into objects/structs.
public interface IMaterializer<T, out TResult> where T : unmanaged, IBinaryInteger<T>
Type Parameters
TTResult
Methods
Parse(CsvRecordRef<T>)
Parses TResult from the CSV record.
TResult Parse(CsvRecordRef<T> record)
Parameters
recordCsvRecordRef<T>CSV record
Returns
- TResult
Parsed value
Exceptions
- CsvFormatException
Thrown if the data is invalid (e.g., wrong number of fields)
- CsvParseException
Thrown if a value cannot be parsed