public virtual Hashtable GetData() { Hashtable ht = new Hashtable(); ht.Add("type", this.type.ToString()); if(!this.stepEnabled) ht.Add("stepenabled", "false"); if(this is RandomStep) {} else { ht.Add("next", this.next.ToString()); } return ht; }