C# Class Azavea.Open.DAO.CSV.WriterInfo

We need the writer but we also need to know whether we should write a header to it or not.
Afficher le fichier Open project: azavea/net-dao-csv Class Usage Examples

Méthodes publiques

Свойство Type Description
NeedsHeader bool
Writer System.IO.TextWriter

Méthodes publiques

Méthode Description
WriterInfo ( TextWriter writer, bool needsHeader ) : System

Create the info and initialize the fields.

WriterInfo ( string filePath, bool append, bool namedColumns ) : System

Create the info and initialize the fields.

Method Details

WriterInfo() public méthode

Create the info and initialize the fields.
public WriterInfo ( TextWriter writer, bool needsHeader ) : System
writer System.IO.TextWriter The writer to write CSV data to.
needsHeader bool Whether we should write a header line (I.E. false if /// there is already data there or we already wrote one).
Résultat System

WriterInfo() public méthode

Create the info and initialize the fields.
public WriterInfo ( string filePath, bool append, bool namedColumns ) : System
filePath string The path to the CSV file.
append bool True to append to an existing file, false to replace it.
namedColumns bool Are we using named columns or numerical indexes.
Résultat System

Property Details

NeedsHeader public_oe property

Whether we should write a header line (I.E. false if there is already data there or we already wrote one).
public bool NeedsHeader
Résultat bool

Writer public_oe property

The writer to write CSV data to.
public TextWriter,System.IO Writer
Résultat System.IO.TextWriter