Ejemplo n.º 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> >());
 }
Ejemplo n.º 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);
 }