Example #1
0
 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;
 }
Example #2
0
        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);
        }