Exemplo n.º 1
0
 public static IObservable <NotifyCollectionChangedAction> SelectActions(this INotifyCollectionChanged notifyCollectionChanged)
 {
     return(notifyCollectionChanged
            .SelectChanges()
            .Select(x => x.Action));
 }
Exemplo n.º 2
0
 public static IObservable <T> SelectOldItems <T>(this INotifyCollectionChanged notifyCollectionChanged)
 {
     return(notifyCollectionChanged
            .SelectChanges()
            .SelectMany(x => x.OldItems?.Cast <T>() ?? new T[] { }));
 }