public static IScriptEvaluator Create(ScriptEvaluatorTypes scriptEvaluatorType = ScriptEvaluatorTypes.Basic) { IScriptEvaluator eval = null; switch (scriptEvaluatorType) { case ScriptEvaluatorTypes.Json: eval = new JsonScriptEvaluator(); break; case ScriptEvaluatorTypes.Basic: eval = new BasicScriptEvaluator(); break; } return eval; }
public static IScriptEvaluator Create(ScriptEvaluatorTypes scriptEvaluatorType = ScriptEvaluatorTypes.Basic) { IScriptEvaluator eval = null; switch (scriptEvaluatorType) { case ScriptEvaluatorTypes.Json: eval = new JsonScriptEvaluator(); break; case ScriptEvaluatorTypes.Basic: eval = new BasicScriptEvaluator(); break; } return(eval); }