Ejemplo 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>());
 }
Ejemplo n.º 2
0
 public Collectionary(IEqualityComparer <TValue> listComparer)
 {
     _underlyingDictionary = LazyDictionary.Create <TKey, ICollection <TValue> >(() => new HashSet <TValue>(listComparer));
 }