d20838ae 143c f924 fcb9 f6395dc716d7 - akesseler/Plexdata.CsvParser GitHub Wiki

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

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
)

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.

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 .
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

This method performes saving of data with default settings. Using default settings means that the header is written. Further, needed header information is taken from the column attributes or from property names. Finally, a special textual treatment is not applied.

See Also

Reference

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

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