Пример #1
0
 public EvalContext()
 {
     FunctionList = new Functions.FunctionList();
     VariableList = new VariableList();
     OutputText += DOT;
     sw = new Stopwatch();
 }
Пример #2
0
 internal EvalContext(EvalContext context, string[] paramNames, ExprNode[] p)
 {
     FunctionList = context.FunctionList;
     VariableList = new VariableList();
     for (int i = 0; i < p.Length; i++)
     {
         VariableList[paramNames[i]] = p[i].Evaluate(context);
     }
 }