public void WriteLine(CsvValues aCsv) { Debug.Assert(m_aReader == null); Debug.Assert(m_aWriter != null); Debug.Assert(aCsv.File == this); string sLine = aCsv.ToString(m_chComma, m_chQuote); m_aWriter.WriteLine(sLine); }
/// <summary> /// Writing the CSV header creates an internal hashtable that associates the column /// indices with their column names. /// </summary> public void WriteHeader(CsvValues aCsvHeader) { Debug.Assert(m_aReader == null); Debug.Assert(m_aWriter != null); Debug.Assert(aCsvHeader.File == this); _BuildHeaderHashtable(aCsvHeader); string sLine = aCsvHeader.ToString(m_chComma, m_chQuote); m_aWriter.WriteLine(sLine); }