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