This repository has been archived by the owner on Aug 22, 2018. It is now read-only.
This repository has been archived by the owner on Aug 22, 2018. It is now read-only.
TrackingCollectionChangedEventArgs Generics #664
Open
Description
Is there a reason why TrackingCollectionChangedEventArgs
isn't a generic class? TrackingHashSet<T>
and other classes are generic, so, it seems like it would make sense to make the events generic as well.
As in:
public class TrackingCollectionChangedEventArgs<T> : EventArgs
{
public TrackingCollectionChangedEventArgs(NotifyCollectionChangedAction action, T item, T oldItem, int index, bool collectionChanged);
public TrackingCollectionChangedEventArgs(NotifyCollectionChangedAction action, object key, T item, T oldItem, bool collectionChanged);
public NotifyCollectionChangedAction Action { get; }
public T Item { get; }
public T OldItem { get; }
public object Key { get; }
public int Index { get; }
public bool CollectionChanged { get; }
}
Metadata
Assignees
Labels
No labels
Activity