示例#1
0
        public HMapInternal <K, V> Subtract(HMapInternal <K, V> rhs)
        {
            var self = this;

            foreach (var item in rhs)
            {
                self = self.Remove(item.Key);
            }
            return(self);
        }
示例#2
0
        public HMapInternal <K, V> Append(HMapInternal <K, V> rhs)
        {
            var self = this;

            foreach (var item in rhs)
            {
                if (!self.ContainsKey(item.Key))
                {
                    self = self.Add(item.Key, item.Value);
                }
            }
            return(self);
        }
示例#3
0
 HMap <K, U> Wrap <U>(HMapInternal <K, U> value) =>
 new HMap <K, U>(value);
示例#4
0
 HMap <K, V> Wrap(HMapInternal <K, V> value) =>
 new HMap <K, V>(value);
示例#5
0
 internal HMap(HMapInternal <K, V> value)
 {
     this.value = value;
 }