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
);
}