예제 #1
0
 public _(ToDictionary <TSource, TKey, TElement> parent, IObserver <IDictionary <TKey, TElement> > observer)
     : base(observer)
 {
     _keySelector     = parent._keySelector;
     _elementSelector = parent._elementSelector;
     _dictionary      = new Dictionary <TKey, TElement>(parent._comparer);
 }
 public _(ToDictionary <TSource, TKey, TElement> parent, IObserver <IDictionary <TKey, TElement> > observer, IDisposable cancel)
     : base(observer, cancel)
 {
     _parent = parent;
     // call the Dictionary constructor with a IEqualityComparer parameter.
     // Initialize an empty instance of System.Collections.Generic.Dictionary, and use the specified IEqualityComparer _comparer.
     _dictionary = new Dictionary <TKey, TElement>(_parent._comparer);
 }
 public _(ToDictionary <TSource, TKey, TElement> parent, IObserver <IDictionary <TKey, TElement> > observer, IDisposable cancel)
     : base(observer, cancel)
 {
     _parent     = parent;
     _dictionary = new Dictionary <TKey, TElement>(_parent._comparer);
 }