Ejemplo n.º 1
0
 /// <summary>
 /// Initializes an empty CSV file.
 /// </summary>
 /// <param name="encoding">The encoding to be used. If <c>null</c>, <see cref="DefaultEncoding"/> will be used instead.</param>
 public CsvFile(Encoding encoding)
 {
     Separator = DefaultSeparator;
     Encoding  = encoding ?? DefaultEncoding;
     Columns   = new CsvColumnList(this);
     Rows      = new CsvRowList(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes an empty CSV file.
 /// </summary>
 /// <param name="separator">The separator to be used.</param>
 public CsvFile(CsvSeparator separator)
 {
     Separator = separator;
     Encoding  = DefaultEncoding;
     Columns   = new CsvColumnList(this);
     Rows      = new CsvRowList(this);
 }