Tip
It's recommended to use the methods of CsvConverter to create an instance.
public CsvReader(
CsvReader reader,
CsvMapping mapping,
Func<Object, TResult> conversion,
bool cloneMapping = true
)
Public Sub New (
reader As CsvReader,
mapping As CsvMapping,
conversion As Func(Of Object, TResult),
Optional cloneMapping As Boolean = true
)
public:
CsvReader(
CsvReader^ reader,
CsvMapping^ mapping,
Func<Object^, TResult>^ conversion,
bool cloneMapping = true
)
new :
reader : CsvReader *
mapping : CsvMapping *
conversion : Func<Object, 'TResult> *
?cloneMapping : bool
(* Defaults:
let _cloneMapping = defaultArg cloneMapping true
*)
-> CsvReader
A function that converts the content of mapping to an instance of TResult.
The function is called for each row in the CSV data and gets the specified CsvMapping as argument, filled with the current CsvRecord instance. The CsvMapping is passed to the function as dynamic argument: Inside the function the registered DynamicProperty instances can be used like regular .NET properties, but without IntelliSense ("late binding").
ArgumentNullException | reader, or mapping, or conversion is null. |