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; } }
public SQLRow ReadRow() { SQLRow row = new SQLRow(ColumnCount); for (int index = 0; index < ColumnCount; index++) { row[index] = _cursor[index]; } return(row); }
public void Add(SQLRow row) { EnsureCapacity(_count); _rows[_count] = row; _count++; }