YAMP.BinaryOperator.Evaluate C# (CSharp) Method

Evaluate() public method

The implementation of the more general evaluate method.
public Evaluate ( Expression expressions, Value>.IDictionary symbols ) : Value
expressions Expression The array of expressions, binary operators require Length == 2.
symbols Value>.IDictionary The external symbols to consider.
return Value
        public override Value Evaluate(Expression[] expressions, IDictionary<String, Value> symbols)
        {
            if (expressions.Length != 2)
            {
                throw new YAMPArgumentNumberException(Op, expressions.Length, 2);
            }

            return Handle(expressions[0], expressions[1], symbols);
        }