Exemplo n.º 1
0
        public static dic <TKey, TValue> operator -(dic <TKey, TValue> L, TKey R)
        {
            var dic = new dic <TKey, TValue>(L);

            dic.Remove(R);
            return(dic);
        }
Exemplo n.º 2
0
        public static dic <TKey, TValue> operator +(dic <TKey, TValue> L, dic <TKey, TValue> R)
        {
            var dic = new dic <TKey, TValue>(L);

            foreach (var item in R)
            {
                dic.Add(item.Key, item.Value);
            }
            return(dic);
        }