Beispiel #1
0
 public EvaluationContext()
 {
     VariableMapping    = new Dictionary <string, int>();
     Variables          = new BaseComputable[20];
     ArthmeticEvaluator = new ArthmeticEvaluator(this);
     ProgramEvaluator   = new ProgramEvaluator(this);
 }
Beispiel #2
0
 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);
 }