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
T
TResult
Methods
Parse<TRecord>(scoped ref TRecord)
Parses TResult
from the CSV record.
TResult Parse<TRecord>(scoped ref TRecord reader) where TRecord : ICsvFields<T>, allows ref struct
Parameters
reader
TRecordField reader
Returns
- TResult
Parsed value
Type Parameters
TRecord
Exceptions
- CsvFormatException
Thrown if the data is invalid (e.g., wrong number of fields)
- CsvParseException
Thrown if a value cannot be parsed