public override double CalculateValue(Context context, FunctionArguments args) { Context fnContext = Context.GetChild(context); int index = 0; foreach (string argName in Arguments.Names) { fnContext[argName] = args[index++]; } return(Expression.GetValue(fnContext)); }
public abstract double CalculateValue(Context context, FunctionArguments args);
public override double CalculateValue(Context context, FunctionArguments args) { return(Inner(context, args)); }