Esempio n. 1
0
 public ReadOnlyUniqueList(UniqueListBase <T> target)
 {
     if (target is null)
     {
         throw new ArgumentNullException(nameof(target));
     }
     _target = target;
 }
 internal protected UniqueListBase(UniqueListBase <T> other)
 {
     _items  = new List <T>(other._items);
     _flags  = new List <bool>(other._flags);
     _lookup = new Dictionary <T, int>(other._lookup);
     Items   = _items.AsReadOnly();
     Lookup  = new ReadOnlyDictionary <T, int>(_lookup);
     Count   = other.Count;
 }