ExpressionTreeToString icon indicating copy to clipboard operation
ExpressionTreeToString copied to clipboard

Dynamic LINQ writer/visitor: newlines for Queryable method calls

Open zspitz opened this issue 4 years ago • 0 comments

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], \' \')")

zspitz avatar Jul 05 '21 09:07 zspitz