public T GetValue(int row, int column) { DenseArray <T> array = this.GetRow(row, false); if (array != null) { return(array[column]); } return(default(T)); }
public void ClearRows(int row, int count) { for (int i = 0; i < count; i++) { DenseArray <T> array = this._table[row + i]; if (array != null) { array.Clear(); } } }
public void Clear(int row, int column, int rowCount, int columnCount) { for (int i = 0; i < rowCount; i++) { DenseArray <T> array = this.GetRow(i + row, false); if (array != null) { array.Clear(column, columnCount); } } }
DenseArray <T> GetRow(int row, bool create) { DenseArray <T> array = this._table[row]; if (create && (array == null)) { array = new DenseArray <T>(this.columnCount); this._table[row] = array; } return(array); }