Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ObservableHashedCollection{TKey, TValue}"/> class.
 /// </summary>
 public ObservableHashedCollection()
 {
     _context          = SynchronizationContext.Current;
     _hashedCollection = new HashedCollection <TKey, TValue>(new List <KeyValuePair <TKey, TValue> >());
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ObservableHashedCollection{TKey, TValue}"/> class.
 /// </summary>
 /// <param name="collection">The initial items in the collection.</param>
 public ObservableHashedCollection(ICollection <KeyValuePair <TKey, TValue> > collection)
 {
     _context          = SynchronizationContext.Current;
     _hashedCollection = new HashedCollection <TKey, TValue>(collection);
 }