public IExpr Calculate(EvalContext cal, IExpr[] exps) { /*if (QuantityNumber != -1) * { * if (exps.Length != QuantityNumber) throw new Exception("The number of quantitys is wrong. It should be " + QuantityNumber.ToString()); * }*/ return(EvaluateFunc.Invoke(exps, cal)); }
public ProxyExprEvaluator(EvaluateFunc procEvaluate) { ProcEvaluate = procEvaluate; }