Class CsvWriter
Writes lines of CSV encoded columns to a file or TextWriter.
Namespace: Neon.Csv
Assembly: Neon.Common.dll
Syntax
public sealed class CsvWriter
Constructors
CsvWriter(Stream, Encoding)
Constructs a writer to a stream.
Declaration
public CsvWriter(Stream stream, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The output stream. |
Encoding | encoding | The stream's character Encoding. |
CsvWriter(TextWriter)
Constructs a writer to a TextWriter.
Declaration
public CsvWriter(TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
TextWriter | writer | The TextWriter. |
Methods
Close()
Closes the writer if it is still open.
Declaration
public void Close()
Dispose()
Releases any resources associated with the reader.
Declaration
public void Dispose()
WriteLine(params object[])
Writes the arguments passed to the output, separating each argument with a comma and adding escape characters as necessary.
Declaration
public void WriteLine(params object[] args)
Parameters
Type | Name | Description |
---|---|---|
object[] | args | The arguments. |