protected virtual void OnCollectionChanged(NotifyCollectionChangedAction action, List <T> items, int?index = null) { if (index.HasValue) { CollectionChanged(this, new NotifyCollectionChangedEventArgs(action, items, index.Value)); } else { CollectionChanged(this, new NotifyCollectionChangedEventArgs(action, items)); } OnPropertyChanged(ClrExtensions.PropertyName(() => Count)); }
public new virtual void TrimExcess() { base.TrimExcess(); OnPropertyChanged(ClrExtensions.PropertyName(() => Count)); }