ExpressionTreeToString
ExpressionTreeToString copied to clipboard
Dynamic LINQ writer/visitor: newlines for Queryable method calls
Instead of this:
#EnumerableQuery<Person>.Where("Age <= 20").OrderBy("np(LastName[0], \' \')").ThenBy("np(FirstName[0], \' \')")
render this:
#EnumerableQuery<Person>
.Where("Age <= 20")
.OrderBy("np(LastName[0], \' \')")
.ThenBy("np(FirstName[0], \' \')")
Note that if the language is VB, we'd need to do this:
#EnumerableQuery(Of Person).
Where("Age <= 20").
OrderBy("np(LastName[0], \' \')").
ThenBy("np(FirstName[0], \' \')")