How split statements to new lines #75451
-
I have that code for generating method IsEmpty:
I'm using my local helper classes, but I think the logic of this method is very clear.
The problem I'm trying to solve is how to format the return string so that each expression starts with a new line so that it is more readable for a human.
I tried, and result still the same one long row, and no new lines:
In my previous question I got obvious answer, but I can't figure it out how it should work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I would highly suggest using a syntax visualizer, and something like https://roslynquoter.azurewebsites.net/, to look at examples of how syntax trees are constructed. That should help you figure out the answers to these types of questions. |
Beta Was this translation helpful? Give feedback.
I would highly suggest using a syntax visualizer, and something like https://roslynquoter.azurewebsites.net/, to look at examples of how syntax trees are constructed. That should help you figure out the answers to these types of questions.