Пример #1
0
        public void NodeRemoved(AListNode <K, T> child, AListInnerBase <K, T> parent)
        {
            int index = _nodes.IndexOfExact(new KeyValuePair <AListNode <K, T>, AListInnerBase <K, T> >(child, parent));

            if (index <= -1)
            {
                BadState();
            }
            _nodes.RemoveAt(index);
        }
Пример #2
0
        public void ItemRemoved(T item, AListLeaf <K, T> parent)
        {
            int index = _items.IndexOfExact(new KeyValuePair <T, AListLeaf <K, T> >(item, parent));

            if (index <= -1)
            {
                BadState();
            }
            _items.RemoveAt(index);
        }