Пример #1
0
 public void AddRow(CsvRow csvRow)
 {
     if (!this.CheckMachKey(csvRow))
     {
         CsvGeneric.KeyNotMachingException();
         return;
     }
     this.AddRow();
     this.SetRow(this.RowLength - 1, csvRow);
 }
Пример #2
0
 public int RowIndexOf(CsvRow csvRow)
 {
     if (!this.CheckMachKey(csvRow))
     {
         CsvGeneric.KeyNotMachingException();
         return(-1);
     }
     for (int i = 0; i < this.ColumnLength; i++)
     {
         bool flag = true;
         for (int j = 0; j < this.RowLength; j++)
         {
             if (this[i, j] != csvRow[i])
             {
                 flag = false;
             }
         }
         if (flag)
         {
             return(i);
         }
     }
     return(-1);
 }