public void Dispose() { _eventDispatcher.Dispose(); _eventDispatcher = null; }
public ObservableCollectionDispatcher(ObservableCollectionWrapper <T> collectionWrapper, Action <T> onItemAdded, Action <T> onItemRemoved) : base(collectionWrapper, onItemAdded, onItemRemoved) { _eventDispatcher = new NotifyCollectionEventDispatcher <T>(collectionWrapper, Adapter.OnItemAdded, Adapter.OnItemRemoved, Adapter.OnReset); }