コード例 #1
0
 public ReadonlyObservableBag(ObservableConcurrentBag <T> originalCollection, Func <T, bool> predicate)
 {
     _originalCollection = originalCollection;
     _predicate          = predicate;
     originalCollection.CollectionChanged += OriginalCollection_CollectionChanged;
 }
コード例 #2
0
 public static ReadonlyObservableBag <T> Select <T>(this ObservableConcurrentBag <T> collection, Func <T, bool> predicate)
 {
     return(new ReadonlyObservableBag <T>(collection, predicate));
 }