AjScript.Tests.Expressions.ArithmeticExpressionTests.EvaluateArithmeticUnaryOperator C# (CSharp) Méthode

EvaluateArithmeticUnaryOperator() private static méthode

private static EvaluateArithmeticUnaryOperator ( ArithmeticOperator operation, object value ) : object
operation ArithmeticOperator
value object
Résultat object
        private static object EvaluateArithmeticUnaryOperator(ArithmeticOperator operation, object value)
        {
            IExpression expression = new ArithmeticUnaryExpression(operation, new ConstantExpression(value));

            return expression.Evaluate(null);
        }