Click or drag to resize

CsvTableWriter Class

Used to generate a CSV table.
Inheritance Hierarchy

Namespace:  Neon.Csv
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.14.0
public class CsvTableWriter : IDisposable

The CsvTableWriter type exposes the following members.

Public propertyColumnMap
Returns the dictionary that case insensitvely maps a column name to the zero base index of the column.
Public propertyRow
Returns the current row array.
Public propertyWriter
Returns the underlying CsvWriter or null if the writer is closed.
Public methodClose
Closes the reader if it is still open.
Public methodDispose
Releases any system resources held by the instance,
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetColumnIndex
Returns the zero-based index of the specified column.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSet(String, Object)
Sets the value of a named table column in the current row.
Public methodSet(String, String)
Sets the value of a named table column in the current row.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteRow
Writes the current row of data to the output and then clears the row so the application can begin setting the next row.

This class is used to generate a CSV table with column headers with the class handling the mapping of column names to columns. The class is easy to use. Simply construct an instance, passing an array of case insensitive table column header names and then write table rows by calling Set() methods to set row cell values and then WriteRow to write each row to the output.

See Also