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)); } }
public int RemoveRange(IEnumerable <K> e) => DictionaryExt.RemoveRange(this, e);