ExpressionToString
ExpressionToString copied to clipboard
Superfluous parentheses
Consider the following expression:
Expression<Func<string, bool>> func = text => text == "Hello";
var result = ExpressionStringBuilder.ToString(func);
It produces the following result:
(text) => (text == "Hello")
Notice how my original expression contains no such parentheses.
I will look into a solution if you want but I suspect this will be hard. I wonder what Mono CSharpWriter does (#4).