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