Table of Contents

Class CsvWriter

Namespace
Bonsai.IO
Assembly
Bonsai.System.dll

Represents an operator that writes a delimited text representation of each element of the sequence to a text file.

[WorkflowElementCategory(ElementCategory.Sink)]
public class CsvWriter : CombinatorExpressionBuilder, IPropertyMappingBuilder, IExpressionBuilder
Inheritance
CsvWriter
Implements
Inherited Members
Extension Methods

Constructors

CsvWriter()

Initializes a new instance of the CsvWriter class.

Properties

Append

Gets or sets a value indicating whether data should be appended to the output file if it already exists.

Delimiter

Gets or sets the optional delimiter used to separate columns in the output file.

FileName

Gets or sets the name of the output CSV file.

IncludeHeader

Gets or sets a value indicating whether to include a text header with column names for multi-attribute values.

ListSeparator

Gets or sets the separator used to delimit elements in variable length rows. This argument is optional.

Overwrite

Gets or sets a value indicating whether the output file should be overwritten if it already exists.

Selector

Gets or sets the inner properties that will be selected when writing each element of the sequence.

Suffix

Gets or sets the suffix used to generate file names.

Methods

BuildCombinator(IEnumerable<Expression>)

When overridden in a derived class, generates an Expression node that will be combined with any existing property mappings to produce the final output of the expression builder.