c1d3747c 2068 d541 84dc 20ee4ad7e495 - akesseler/Plexdata.CsvParser GitHub Wiki
This method tries to save given values into given file.
Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea
C#
public static void Save(
IEnumerable<TInstance> values,
string filename
)
- values
- Type: System.Collections.Generic.IEnumerable(TInstance)
The list of values to be written to the CSV file. - filename
- Type: System.String
The fully qualified path of the output file.
Exception | Condition |
---|---|
ArgumentException | This exception is thrown in case of given filename is invalid. |
InvalidOperationException | This exception is thrown in case of given file could not be deleted. Another reason could be the case when property parsing fails. |
NotSupportedException | This exception is thrown in case of confirming and ordering the column offsets fails. |
This method performes saving of data with default settings. Using default settings means that the header is written and a possible existing file is overwritten. Further, needed header information is taken from column attributes or from property names.
CsvExporter(TInstance) Class
Save Overload
Plexdata.CsvParser.Processors Namespace