コード例 #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;
 }
コード例 #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);
        }