public static void FillWith(
this CsvRecord record,
IEnumerable<Object> data,
IFormatProvider formatProvider = null,
string format = null,
bool resetExcess = true
)
<ExtensionAttribute>
Public Shared Sub FillWith (
record As CsvRecord,
data As IEnumerable(Of Object),
Optional formatProvider As IFormatProvider = Nothing,
Optional format As String = Nothing,
Optional resetExcess As Boolean = true
)
public:
[ExtensionAttribute]
static void FillWith(
CsvRecord^ record,
IEnumerable<Object^>^ data,
IFormatProvider^ formatProvider = nullptr,
String^ format = nullptr,
bool resetExcess = true
)
[<ExtensionAttribute>]
static member FillWith :
record : CsvRecord *
data : IEnumerable<Object> *
?formatProvider : IFormatProvider *
?format : string *
?resetExcess : bool
(* Defaults:
let _formatProvider = defaultArg formatProvider null
let _format = defaultArg format null
let _resetExcess = defaultArg resetExcess true
*)
-> unit
The provider to use to format the value.
- or -
A null reference for InvariantCulture.
A format String to use for all items that implement IFormattable.
- or -
A null reference to use the default format for each item.
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. |