String Literal Escape Characters : String Escape « String « C# / CSharp Tutorial






Character                Meaning in Life

\'                       Inserts a single quote.

\"                       Inserts a double quote.

\\                       Inserts a backslash into a string literal. 

\a                       Triggers a system alert (beep). 

\n                       Inserts a new line (on Win32 platforms).

\r                       Inserts a carriage return.

\t                       Inserts a horizontal tab into the string literal.








5.13.String Escape
5.13.1.String Literal Escape Characters
5.13.2.String escape: @ (AT sign)
5.13.3.String escape: \\
5.13.4.String Escape: quote
5.13.5.Escape characters.
5.13.6.Make changes to string
5.13.7.Displaying a Single Quote Using an Escape Sequence