c92506e7 7909 2b55 0068 db3f29419191 - akesseler/Plexdata.CsvParser GitHub Wiki

CsvExporter(TInstance).Save Method (IEnumerable(TInstance), Stream, CsvSettings)

This method tries to save given values into given stream.

Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea

Syntax

C#

public static void Save(
	IEnumerable<TInstance> values,
	Stream stream,
	CsvSettings settings
)

Parameters

 

values
Type: System.Collections.Generic.IEnumerable(TInstance)
The list of values to be written into given stream.
stream
Type: System.IO.Stream
The stream to write given values into.
settings
Type: Plexdata.CsvParser.Processors.CsvSettings
The settings to be used to generate the CSV output.

Exceptions

 

Exception Condition
ArgumentException This exception is thrown either in case of given values are invalid or if given stream does not allow write access.
ArgumentNullException This exception is thrown if given stream is or if given settings are .
InvalidOperationException This exception is thrown in case of property parsing fails.
NotSupportedException This exception is thrown in case of confirming and ordering the column offsets fails.

Remarks

Please keep in mind, a textual treatment is only applicable for string data types, no matter what the actual value of the 'textual' property of given settings is. Additionally, a textual treatment is never applied to the header, in case of it is processed.

See Also

Reference

CsvExporter(TInstance) Class
Save Overload
Plexdata.CsvParser.Processors Namespace

⚠️ **GitHub.com Fallback** ⚠️