C# Expression Tree Simple Arithmetic
- by Richard Adnams
Hello,
I've been trying to figure out how to achieve some simple maths using the Expression class.
What I'm trying to do is this
(1 + 10 * 15)
When I try to do this via Expression.Add and Expression.Constant but the result I get is this
((1 + 10) * 15)
Which is not right as it evaluates the 1 + 10 first instead of 10 * 15.
Is there a way…