Exemplo n.º 1
0
 public Collectionary(bool unique = false)
 {
     _underlyingDictionary = unique ? LazyDictionary.Create <TKey, ICollection <TValue> >(() => new HashSet <TValue>()) :  LazyDictionary.Create <TKey, ICollection <TValue> >(() => new List <TValue>());
 }
Exemplo n.º 2
0
 public Collectionary(IEqualityComparer <TValue> listComparer)
 {
     _underlyingDictionary = LazyDictionary.Create <TKey, ICollection <TValue> >(() => new HashSet <TValue>(listComparer));
 }