In .NET I can provide both \\r or \\n string literals, but there is a way to insert something like \"new line\" special character like Enviro
\\r
\\n
Enviro
I like more the "pythonic way"
List lines = new List { "line1", "line2", String.Format("{0} - {1} | {2}", someVar, othervar, thirdVar ) }; if(foo) lines.Add("line3"); return String.Join(Environment.NewLine, lines);