Beispiel #1
0
 public int AddRange(IEnumerable <KeyValuePair <K, V> > data, DictEditMode mode)
 {
     if ((mode & DictEditMode.AddIfNotPresent) != 0)
     {
         int added = _set.UnionWith(data, Comparer, (mode & DictEditMode.ReplaceIfPresent) != 0);
         _count += added;
         return(added);
     }
     else
     {
         return(DictionaryExt.AddRange(this, data, mode));
     }
 }
Beispiel #2
0
 public int RemoveRange(IEnumerable <K> e)
 => DictionaryExt.RemoveRange(this, e);