public EvaluationContext() { VariableMapping = new Dictionary <string, int>(); Variables = new BaseComputable[20]; ArthmeticEvaluator = new ArthmeticEvaluator(this); ProgramEvaluator = new ProgramEvaluator(this); }
internal EvaluationContext(IDictionary <string, int> variablesMapping, BaseComputable[] variables) { VariableMapping = new Dictionary <string, int>(variablesMapping); Variables = (BaseComputable[])variables.Clone(); ArthmeticEvaluator = new ArthmeticEvaluator(this); ProgramEvaluator = new ProgramEvaluator(this); }