static public dynamic Parse(ParamElement e) { Type t = e.type; string s = e.input; if (t == typeof(bool)) { return(bool.Parse(s)); } else if (t == typeof(int)) { return(int.Parse(s)); } else if (t == typeof(float)) { return(float.Parse(s)); } else if (t == typeof(string)) { return(s); } Console.WriteLine("Null"); return(null); }
public void AddParam(ParamElement t) { elements.Add(t); }