How to add line break in C# behind page

c#

Solution

Option A: concatenate several string literal into one:

string myText = "Looking up into the night sky is looking into infinity" +
    " - distance is incomprehensible and therefore meaningless.";

Option B: use a single multiline string literal:

string myText = @"Looking up into the night sky is looking into infinity
- distance is incomprehensible and therefore meaningless.";

With option B, the newline character(s) will be part of the string saved into variable `myText`. This might, or might not, be what you want.

Problem

I have written code in C# which is exceeding page width, so I want it to be broken into next line according to my formatting. I tried to search a lot to get that character for line break but was not able to find out. In VB.NET I use '_' for line break, same way what is used in C#? I am trying to break a string.

Original source