www.csvreader.com

CsvWriter overview

Public Instance Constructors

CsvWriterOverloaded. Initializes a new instance of the CsvWriter class.

Public Instance Properties

Comment The character to use as a comment signal. Default is pound, '#'.
Delimiter The character to use as the column delimiter. Default is comma, ','.
EscapeMode Specifies how to escape an occurance of system characters, like the TextQualifier and Delimiter, inside field values when required. Default is Doubled.
ForceQualifier Use this to force all fields to be surrounded by the text qualifier even if the qualifier is not necessarily needed to escape this field. Default is false.
RecordDelimiter The character to use as the record delimiter. Default uses the system default end of line marker.
TextQualifier The character to use as a text qualifier in the data. Default is quote, '"'.
UseTextQualifier Whether to qualify columns of data with the TextQualifier if the data requires it. Default is true.

Public Instance Methods

Close Closes and releases all related resources.
EndRecord Ends the current record by sending the record delimiter.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
Flush Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.
WriteOverloaded. Writes another column of data to this record.
WriteAllOverloaded. Writes all data from the DataTable.
WriteComment Writes comment text out to the file using the Comment character.
WriteRecordOverloaded. Writes a new record using the passed in array of values.

Explicit Interface Implementations

IDisposable.Dispose Closes and releases all related resources.

See Also

CsvWriter Class | Csv Namespace