Exemplo n.º 1
0
 public CsvRow(CsvRow csvRow)
 {
     this._key    = new string[csvRow.Length];
     this._column = new List <CsvValue>();
     for (int i = 0; i < this._key.Length; i++)
     {
         this._key[i] = csvRow.GetKey(i);
         this._column.Add(new CsvValue());
     }
 }
Exemplo n.º 2
0
 public void InsertRaw(int rowIndex, CsvRow csvRow)
 {
     if (this.RowLength < rowIndex || rowIndex < 0)
     {
         CsvGeneric.IndexOutOfException(rowIndex, true);
         return;
     }
     if (rowIndex == this.RowLength)
     {
         this.AddRow(csvRow);
         return;
     }
     for (int i = 0; i < this.ColumnLength; i++)
     {
         this._value[i].value.Insert(rowIndex, new CsvValue());
         this[csvRow.GetKey(i), rowIndex] = csvRow[i];
     }
 }