protected override void InsertItem(int index, T item) { if (!_suspendTracking) { _trackedItems.AddLast(new LinkedListNode <TrackedItem>(TrackedItem.Insert(item, index))); } base.InsertItem(index, item); }
public void AddRange(IEnumerable <T> items) { _suspendTracking = true; _trackedItems.AddLast(new LinkedListNode <TrackedItem>(TrackedItem.Insert(items.ToArray(), Count))); foreach (var item in items) { Items.Add(item); } _suspendTracking = false; }