internal KeyValuePair <int, SparseCell> Pop() { var top = new KeyValuePair <int, SparseCell>(IndexKeys[0], Cells[0]); IndexKeys.RemoveAt(0); Cells.RemoveAt(0); Count--; if (Count > 0) { FirstIndex = IndexKeys[0]; } return(top); }
internal KeyValuePair <int, SparseCell> Pop() { var top = new KeyValuePair <int, SparseCell>(IndexKeys[0], Cells[0]); IndexKeys.RemoveAt(0); Cells.RemoveAt(0); Count--; if (Count > 0) { FirstIndex = IndexKeys[0]; } return(top); }