C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
NeedsHeader bool
Writer System.IO.TextWriter

Открытые методы

Метод Описание
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.

Описание методов

WriterInfo() публичный Метод

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).
Результат System

WriterInfo() публичный Метод

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.
Результат System

Описание свойств

NeedsHeader публичное свойство

Whether we should write a header line (I.E. false if there is already data there or we already wrote one).
public bool NeedsHeader
Результат bool

Writer публичное свойство

The writer to write CSV data to.
public TextWriter,System.IO Writer
Результат System.IO.TextWriter