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);
        }