YAMP.UnaryOperator.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, unary operators require Length == 1.
symbols Value>.IDictionary The external symbols to consider.
return Value
        public override Value Evaluate(Expression[] expressions, IDictionary<String, Value> symbols)
        {
            if (expressions.Length != 1)
                throw new YAMPArgumentNumberException(Op, expressions.Length, 1);

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