Exemplo 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);
        }
Exemplo n.º 2
0
 public MateData getValue(MateData k)
 {
     return(this.storage[k]);
 }
Exemplo n.º 3
0
 public void append(MateData item)
 {
     this.storage.Add(item);
 }