Ejemplo n.º 1
0
 public Distinct(DistinctObservable <T> parent, IObserver <T> observer, IDisposable cancel)
     : base(observer, cancel)
 {
     hashSet = (parent.comparer == null)
               ? new HashSet <T>()
               : new HashSet <T>(parent.comparer);
 }
 public Distinct(DistinctObservable <T, TKey> parent, IObserver <T> observer, IDisposable cancel) : base(observer, cancel)
 {
     this.parent  = parent;
     this.hashSet = ((parent.comparer != null) ? new HashSet <TKey>(parent.comparer) : new HashSet <TKey>());
 }