예제 #1
0
        public new void RemoveAt(int index)
        {
            var item = base[index];

            OnDeleteBefore?.Invoke(this, new NListEventArgs <T>(item, index));
            base.RemoveAt(index);
            OnDeleteAfter?.Invoke(this, new NListEventArgs <T>(default(T), Count));
        }
예제 #2
0
 public new void Remove(T item)
 {
     OnDeleteBefore?.Invoke(this, new NListEventArgs <T>(item, IndexOf(item)));
     base.Remove(item);
     OnDeleteAfter?.Invoke(this, new NListEventArgs <T>(default(T), Count));
 }