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.
Exibir arquivo Open project: azavea/net-dao-csv Class Usage Examples

Public Properties

Property Type Description
NeedsHeader bool
Writer System.IO.TextWriter

Public Methods

Method 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 method

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).
return System

WriterInfo() public method

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.
return 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
return bool

Writer public_oe property

The writer to write CSV data to.
public TextWriter,System.IO Writer
return System.IO.TextWriter