예제 #1
0
파일: MMap.cs 프로젝트: dadhi/ecsharp
 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));
     }
 }
예제 #2
0
 public int RemoveRange(IEnumerable <K> e)
 => DictionaryExt.RemoveRange(this, e);