public Hashtable GetData(Hashtable ht) { if(this.isMoney) ht.Add("ismoney", "true"); else { ht.Add("type", this.type.ToString()); ht.Add("itemid", this.id.ToString()); } ht.Add("quantity", this.quantity.ToString()); return ht; }