ae8de5c7 1d34 0a3a 79d6 645123475491 - akesseler/Plexdata.CsvParser GitHub Wiki
This method tries to write given values into given stream.
Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea
C#
public static void Write(
IEnumerable<IEnumerable<Object>> content,
Stream stream,
CsvSettings settings
)
- content
- Type: System.Collections.Generic.IEnumerable(IEnumerable(Object))
The content array 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.
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 . |
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.
CsvWriter Class
Write Overload
Plexdata.CsvParser.Processors Namespace