The C # string, like Char, can contain Unicode and hexadecimal number escape sequences. Because these escape sequences start with a backslash (\), you cannot use this non-escape backslash character in the string, instead, two backslash characters ("\") are required to represent them:
String filepath = "c :\\ CSharp \ One. cs ";
Even if we believe that we can remember to do this under any circumstances, writing two backslashes is confusing. Fortunately, C # provides another alternative, you can add the character "@" before the string variable. All characters after "@" are considered as their original meaning-they are not parsed as escape characters:
String <A href = "mailto: filepath = @" c: \ CSharp \ One. cs "> filepath = @" c: \ CSharp \ One. cs ";
Even strings can contain line breaks:
String text = "I just want to share some movies
Which I think is valueable and be worth to have a try, to share the deep affection .";
The text value is: I just want to share some movies
Which I think is valueable and be worth to have a try, to share the deep affection;
No: I just want to share some movies which I think is valueable and be worth to have a try, to share the deep affection;
From: happy pig Column