Escape sequences
Escape sequence | Description |
---|---|
\” | double quote |
\n | new line |
Example
string strInQuotes = "\"I am in quotes.\"";
string twoLineMessage = "This string consists\nof two lines.";
string combination = "This is a\nnewline\n and \"double quote\" escape combination.";