Created
September 23, 2015 21:53
-
-
Save rightfold/d8e985272b37af3e6dba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NotifyCollectionChangedEventArgs<T> | |
{ | |
private readonly NotifyCollectionChangedEventArgs _args; | |
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedEventArgs args) | |
{ | |
_args = args; | |
} | |
public IEnumerable<T> NewItems => _args.NewItems?.Cast<T>() ?? Enumerable.Empty<T>(); | |
public int NewStartingIndex => _args.NewStartingIndex; | |
public IEnumerable<T> OldItems => _args.OldItems?.Cast<T>() ?? Enumerable.Empty<T>(); | |
public int OldStartingIndex => _args.OldStartingIndex; | |
public NotifyCollectionChangedAction Action => _args.Action; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment