Пример #1
0
            public override void Remove()
            {
                int i   = random.Next((int)reference.Count);
                int key = (int)((INonInvasiveMultiRankMapInspection)reference).GetRanks()[i].key;

                actual.Remove(key);

                reference.Remove(key);
            }
Пример #2
0
        private static void UnloadTree(IRankMap <int, int> tree, int?count, int[] indices)
        {
            int i = 0;

            while ((count.HasValue && (i < count.Value)) || (!count.HasValue && (tree.Count != 0)))
            {
                int rank = indices[i];
                int key  = tree.GetKeyByRank(rank);
                tree.Remove(key);
                i++;
            }
        }