SpringCard LibCs for .NET  18.10.10
A set of utilities to simplify the development of .NET application
SpringCard.LibCs.CsvFileCommon Class Reference

Manipulation of CSV files. More...

Inheritance diagram for SpringCard.LibCs.CsvFileCommon:
SpringCard.LibCs.CsvFileReader SpringCard.LibCs.CsvFileWriter

Public Types

enum  EmptyLineBehavior { EmptyLineBehavior.NoColumns, EmptyLineBehavior.EmptyColumn, EmptyLineBehavior.Ignore, EmptyLineBehavior.EndOfFile }
 Determines how empty lines are interpreted when reading CSV files. These values do not affect empty lines that occur within quoted fields or empty lines that appear at the end of the input file. More...
 

Protected Attributes

char [] SpecialChars = new char[] { ';', ',', '"', '\r', '\n' }
 These are special characters in CSV files. More...
 

Properties

char Delimiter [get, set]
 Gets/sets the character used for column delimiters.
 
char Quote [get, set]
 Gets/sets the character used for column quotes.
 

Detailed Description

Manipulation of CSV files.

Member Enumeration Documentation

◆ EmptyLineBehavior

Determines how empty lines are interpreted when reading CSV files. These values do not affect empty lines that occur within quoted fields or empty lines that appear at the end of the input file.

Enumerator
NoColumns 

Empty lines are interpreted as a line with zero columns.

EmptyColumn 

Empty lines are interpreted as a line with a single empty column.

Ignore 

Empty lines are skipped over as though they did not exist.

EndOfFile 

An empty line is interpreted as the end of the input file.

Member Data Documentation

◆ SpecialChars

char [] SpringCard.LibCs.CsvFileCommon.SpecialChars = new char[] { ';', ',', '"', '\r', '\n' }
protected

These are special characters in CSV files.

If a column contains any of these characters, the entire column is wrapped in double quotes.


The documentation for this class was generated from the following file: