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
newer .net versions allow you to use $ in front of the literal which allows you to use variables inside like follows:
var x = $"Line 1{Environment.NewLine}Line 2{Environment.NewLine}Line 3";