netcore-csv
|
write object data to csv as row autogenerating first row header using object properties as name and order. attributes CsvHeaderAttribute and CsvColumnOrderAttribute can be specified on properties to custommize header and order. More...
Public Member Functions | |
CsvWriter (string pathfilename, CsvOptions opts=null) | |
construct a csv writer to write on given filename with field and decimal separators. More... | |
CsvWriter (string pathfilename, bool append, CsvOptions opts=null) | |
construct a csv writer to write on given filename with field and decimal separators. data will appended if file exists More... | |
void | Push (T obj) |
write a csv row getting data from given object public properties More... | |
void | Dispose () |
dispose the writer closing writer stream More... | |
![]() | |
CsvFile (string pathfilename, CsvOptions options) | |
csv reader/writer base class. More... | |
CsvFile (string pathfilename, bool append, CsvOptions options) | |
csv reader/writer base class. More... | |
Additional Inherited Members | |
![]() | |
string | Pathfilename [get] |
CsvOptions | Options [get] |
char | StringDelimiter [get] |
char | FieldSeparator [get] |
char | DecimalSeparator [get] |
bool | DecimalSeparatorIsInvariant [get] |
IReadOnlyList< CsvColumn > | Columns [get] |
bool | AppendMode [get] |
if file exists with size great than 0 then header will not placed else file will overwritten with new starting header, More... | |
write object data to csv as row autogenerating first row header using object properties as name and order. attributes CsvHeaderAttribute and CsvColumnOrderAttribute can be specified on properties to custommize header and order.
T | : | class |
CsvWriter | ( | string | pathfilename, |
CsvOptions | opts = null |
||
) |
construct a csv writer to write on given filename with field and decimal separators.
CsvWriter | ( | string | pathfilename, |
bool | append, | ||
CsvOptions | opts = null |
||
) |
construct a csv writer to write on given filename with field and decimal separators.
data will appended if file exists
void Dispose | ( | ) |
dispose the writer closing writer stream
void Push | ( | T | obj | ) |
write a csv row getting data from given object public properties