public new void InsertRange(int index, IEnumerable <T> collection) { OnRangeBefore?.Invoke(this, new NListEventArgs <IEnumerable <T> >(collection, collection.Count())); if (_stopcapacity > 0 && Count >= _stopcapacity) { Clear(); } base.InsertRange(index, collection); OnRangeAfter?.Invoke(this, new NListEventArgs <IEnumerable <T> >(this, Count)); }
public new void AddRange(IEnumerable <T> collection) { OnRangeBefore?.Invoke(this, new NListEventArgs <IEnumerable <T> >(collection, collection.Count())); base.AddRange(collection); OnRangeAfter?.Invoke(this, new NListEventArgs <IEnumerable <T> >(this, Count)); }
public new void RemoveRange(int index, int count) { OnRangeBefore?.Invoke(this, new NListEventArgs <IEnumerable <T> >(GetRange(index, count), count)); base.RemoveRange(index, count); OnRangeAfter?.Invoke(this, new NListEventArgs <IEnumerable <T> >(default(IEnumerable <T>), Count)); }