コード例 #1
0
        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);
        }