public static void FillWith(
this CsvRecord record,
IEnumerable<string?>? data,
bool resetExcess = true
)
<ExtensionAttribute>
Public Shared Sub FillWith (
record As CsvRecord,
data As IEnumerable(Of String),
Optional resetExcess As Boolean = true
)
public:
[ExtensionAttribute]
static void FillWith(
CsvRecord^ record,
IEnumerable<String^>^ data,
bool resetExcess = true
)
[<ExtensionAttribute>]
static member FillWith :
record : CsvRecord *
data : IEnumerable<string> *
?resetExcess : bool
(* Defaults:
let _resetExcess = defaultArg resetExcess true
*)
-> unit
If data has fewer items than record fields and this parameter is true, the surplus fields in record will be reset to the default value .
For performance reasons this parameter can be set to false when writing CSV because WriteRecord resets all fields in record.
ArgumentNullException | record is null. |
ArgumentOutOfRangeException | data contains more items than record. |