eac46af5 1453 3e9f e360 b4a113a45592 - akesseler/Plexdata.CsvParser GitHub Wiki

CsvWriter.Write Method (CsvContainer, Stream, CsvSettings)

This method tries to write given container 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 Write(
	CsvContainer container,
	Stream stream,
	CsvSettings settings
)

Parameters

 

container
Type: Plexdata.CsvParser.Processors.CsvContainer
The container to be written to the CSV file.
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 or if given container is .

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, please keep in mind that Heading treatment should be enabled if the first line actually contains a header. Otherwise Heading treatment should be disabled.

See Also

Reference

CsvWriter Class
Write Overload
Plexdata.CsvParser.Processors Namespace

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