/// <summary>overriden ToString method</summary> public override string ToString() { string[] s = new string[ParameterList.Length]; for (int i = 0; i < this.ParameterList.Length; i++) { RegParamPair p = this.ParameterList[i]; s[i] = p.ToString(); } string[] s2 = new string[ActionRecord.Count]; for (int i = 0; i < ActionRecord.Count; i++) { //s2[i] = String.Format("{0}",ActionRecord[i].ToString()); BaseAction a = (BaseAction)ActionRecord[i]; s2[i] = a.ToString(); } return(String.Format("\n/*function2 '{0}' ({2})({1})\n{3}\nend function {4}*/\n", Name, String.Join(",", s), flags.ToString(), String.Join("\n", s2), Name )); }
/// <summary>overriden ToString method</summary> public override string ToString() { string[] s = new string[ActionRecord.Count]; for (int i = 0; i < ActionRecord.Count; i++) { BaseAction a = (BaseAction)ActionRecord[i]; s[i] = a.ToString(); } return(String.Format("function '{0}' ({1})\n{2}\nend function {3}" , Name , String.Join(",", ParameterList) , String.Join("\n", s) , Name )); }