AjScript.Tests.Expressions.ArithmeticExpressionTests.EvaluateArithmeticBinaryOperator C# (CSharp) Метод

EvaluateArithmeticBinaryOperator() приватный статический Метод

private static EvaluateArithmeticBinaryOperator ( ArithmeticOperator operation, object left, object right ) : object
operation ArithmeticOperator
left object
right object
Результат object
        private static object EvaluateArithmeticBinaryOperator(ArithmeticOperator operation, object left, object right)
        {
            IExpression expression = new ArithmeticBinaryExpression(operation, new ConstantExpression(left), new ConstantExpression(right));

            return expression.Evaluate(null);
        }