Exemplo n.º 1
0
 public static IObservable <Unit> AnyDictionaryChangeAsObservable <TKey, TValue>(this IReadOnlyReactiveDictionary <TKey, TValue> reactiveDictionary)
 {
     return(Observable.Merge(
                reactiveDictionary.ObserveReset().AsUnitObservable(),
                reactiveDictionary.ObserveAdd().AsUnitObservable(),
                reactiveDictionary.ObserveRemove().AsUnitObservable(),
                reactiveDictionary.ObserveReplace().AsUnitObservable(),
                reactiveDictionary.ObserveCountChanged().AsUnitObservable()));
 }
Exemplo n.º 2
0
 public IObservable <int> ObserveCountChanged(bool notifyCurrentCount = false)
 {
     return(_inner.ObserveCountChanged(notifyCurrentCount));
 }