Skip to content
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
@stefnotch

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; }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions