Exemple #1
0
        public override bool RemoveAt(uint index, uint count, IAListTreeObserver <int, T> tob)
        {
            Debug.Assert(!IsFrozen);
            Debug.Assert(count <= _totalCount);
            if (count == 0)
            {
                return(false);
            }
            int i1, i2;

            i1 = GetSectionRange(index, count, out i2);

            _list.RemoveRange(i1, i2 - i1);
            AdjustOffsetsStartingAt(i1, ref _list, -(int)count);
            _totalCount -= count;

            return(IsUndersized);
        }
Exemple #2
0
        public override bool RemoveAt(uint index, uint count, IAListTreeObserver <K, T> tob)
        {
            Debug.Assert(!_isFrozen);

            if (tob != null)
            {
                tob.ItemsRemoved(_list, (int)index, (int)count, this);
            }
            _list.RemoveRange((int)index, (int)count);
            return(IsUndersized);
        }