I create an expression tree manually like this
var innerAddition = Expression.Add(Expression.Constant(5), Expression.Constant(9));
var mult = Expression.Multiply(innerAddition, Expression.Constant(2));
var top = Expression.Add(Expression.Constant(3), mult);
When I watch DebugView in debug mode, I see 3 + (5 + 9) * 2, which I would like to output from my program. I understand that this is using the expression tree visualizer. Is there any way to use this from my code? Thank!
source
share