Beispiel #1
0
 private void EnsureCapacity(int requiredCapacity)
 {
     if (_rows.Length <= requiredCapacity)
     {
         SQLRow[] newRows = new SQLRow[_rows.Length * 2];
         Array.Copy(_rows, 0, newRows, 0, _rows.Length);
         _rows = newRows;
     }
 }
Beispiel #2
0
        public SQLRow ReadRow()
        {
            SQLRow row = new SQLRow(ColumnCount);

            for (int index = 0; index < ColumnCount; index++)
            {
                row[index] = _cursor[index];
            }
            return(row);
        }
Beispiel #3
0
 public void Add(SQLRow row)
 {
     EnsureCapacity(_count);
     _rows[_count] = row;
     _count++;
 }