Skip to content
This repository was archived by the owner on Aug 22, 2018. It is now read-only.
This repository was archived by the owner on Aug 22, 2018. It is now read-only.

TrackingCollectionChangedEventArgs Generics #664

@stefnotch

Description

@stefnotch

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions