Class CsvConfiguration
CSV configuration Set the delimiter or other options All properties offer defaults, creating new() is fine
Inheritance
Namespace: FluentCsvMachine
Assembly: library.dll
Syntax
public class CsvConfiguration : object
Constructors
| Improve this Doc View SourceCsvConfiguration()
CSV default configuration
Declaration
public CsvConfiguration()
CsvConfiguration(Char)
CSV default configuration with a custom delimiter
Declaration
public CsvConfiguration(char delimiter)
Parameters
Type | Name | Description |
---|---|---|
System.Char | delimiter |
CsvConfiguration(Char, Encoding)
CSV default configuration with a custom delimiter and file encoding
Declaration
public CsvConfiguration(char delimiter, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System.Char | delimiter | |
Encoding | encoding |
Properties
| Improve this Doc View SourceBufferSize
File read buffer size https://referencesource.microsoft.com/#mscorlib/system/io/stream.cs,2a0f078c2e0c0aa8,references
Declaration
public int BufferSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Comment
Comment character, not defined in RFC 4180
Declaration
public char? Comment { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Char> |
DecimalPoint
Char to separate number and fraction e.g. 3.33
Declaration
public char DecimalPoint { get; set; }
Property Value
Type | Description |
---|---|
System.Char |
Delimiter
Delimiter separating columns
Declaration
public char Delimiter { get; set; }
Property Value
Type | Description |
---|---|
System.Char |
Encoding
Encoding of the file
Declaration
public Encoding Encoding { get; set; }
Property Value
Type | Description |
---|---|
Encoding |
EntityQueueSize
Queue between FileParser and Entity factory Probably no change is necessary Shared between the number of threads, a small queue causes too many thread context changes
Declaration
public int EntityQueueSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
HeaderSearchLimit
Header needs to be defined in the first x lines
Declaration
public int HeaderSearchLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MaxNumberOfColumns
Maximum number of columns Value is used for performance optimizations
Declaration
public int MaxNumberOfColumns { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NewLine
New line character
Declaration
public char NewLine { get; set; }
Property Value
Type | Description |
---|---|
System.Char |
Quote
Quote character, RFC 4180 only allows "
Declaration
public char Quote { get; set; }
Property Value
Type | Description |
---|---|
System.Char |
QuoteEscape
Quote escape character
Declaration
public char QuoteEscape { get; set; }
Property Value
Type | Description |
---|---|
System.Char |
ThousandsChar
Char to separate thousands Set by DecimalPoint;
Declaration
public char ThousandsChar { get; }
Property Value
Type | Description |
---|---|
System.Char |