// Decompiled with JetBrains decompiler // Type: Puzzle.Collections.CollectionBase // Assembly: FiestaShark, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null // MVID: 12469781-3753-4869-9C1A-117F1862B52C // Assembly location: E:\Fiesta\Emus\DragonFiesta\Tools\FiestaShark-Farbod\FiestaShark.exe using System; namespace Puzzle.Collections { public abstract class CollectionBase : System.Collections.CollectionBase { public event CollectionEventHandler ItemAdded; protected virtual void OnItemAdded(int index, object item) { if (this.ItemAdded == null) return; this.ItemAdded((object) this, new CollectionEventArgs(item, index)); } public event CollectionEventHandler ItemRemoved; protected virtual void OnItemRemoved(int index, object item) { if (this.ItemRemoved == null) return; this.ItemRemoved((object) this, new CollectionEventArgs(item, index)); } public event EventHandler ItemsCleared; protected virtual void OnItemsCleared() { if (this.ItemsCleared == null) return; this.ItemsCleared((object) this, EventArgs.Empty); } protected override void OnClearComplete() { base.OnClearComplete(); this.OnItemsCleared(); } protected override void OnRemoveComplete(int index, object value) { base.OnRemoveComplete(index, value); this.OnItemRemoved(index, value); } protected override void OnInsertComplete(int index, object value) { base.OnInsertComplete(index, value); this.OnItemAdded(index, value); } } }