static public object EvaluateToObject(string code) { UtilEvaluator eval = new UtilEvaluator(typeof(object), code, staticMethodName); return(eval.Evaluate(staticMethodName)); }
static public bool EvaluateToBool(string code) { UtilEvaluator eval = new UtilEvaluator(typeof(bool), code, staticMethodName); return((bool)eval.Evaluate(staticMethodName)); }
static public double EvaluateToDouble(string code) { UtilEvaluator eval = new UtilEvaluator(typeof(double), code, staticMethodName); return((double)eval.Evaluate(staticMethodName)); }
static public string EvaluateToString(string code) { UtilEvaluator eval = new UtilEvaluator(typeof(string), code, staticMethodName); return((string)eval.Evaluate(staticMethodName)); }
static public int EvaluateToInteger(string code) { UtilEvaluator eval = new UtilEvaluator(typeof(int), code, staticMethodName); return((int)eval.Evaluate(staticMethodName)); }