Esempio n. 1
0
        public void setValue(MateData k, MateData v)
        {
            Type type = k.GetType().GetInterface("Hashable");

            if (type == null)
            {
                TypeException t = new TypeException("map 的 k 不能hash化");
                throw t;
            }
            this.storage.Add(k, v);
        }
Esempio n. 2
0
 public MateData getValue(MateData k)
 {
     return(this.storage[k]);
 }
Esempio n. 3
0
 public void append(MateData item)
 {
     this.storage.Add(item);
 }