Class CsvReader
Represents an operator that generates a sequence of values for every line in a text file.
[WorkflowElementCategory(ElementCategory.Source)]
public class CsvReader : CombinatorExpressionBuilder, IPropertyMappingBuilder, IExpressionBuilder
- Inheritance
-
CsvReader
- Implements
- Inherited Members
- Extension Methods
Constructors
CsvReader()
Initializes a new instance of the CsvReader class.
public CsvReader()
Properties
FileName
Gets or sets the name of the CSV file.
[FileNameFilter("CSV (Comma delimited)|*.csv|All Files|*.*")]
public string FileName { get; set; }
Property Value
ListSeparator
Gets or sets the separator used to delimit elements in variable length rows. This argument is optional.
public string ListSeparator { get; set; }
Property Value
ScanPattern
Gets or sets the optional parse pattern for scanning individual lines. In case of variable length rows, the pattern will be applied to each individual element.
[TypeConverter("Bonsai.Expressions.ParseBuilder+PatternConverter, Bonsai.Core")]
public string ScanPattern { get; set; }
Property Value
SkipRows
Gets or sets the number of lines to skip at the start of the file.
public int SkipRows { get; set; }
Property Value
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.
protected override Expression BuildCombinator(IEnumerable<Expression> arguments)
Parameters
arguments
IEnumerable<Expression>A collection of Expression nodes that represents the input arguments.
Returns
- Expression
An Expression tree node that represents the combinator output.