C# Escape Characters - Listing of escape characters and their use
Escape characters for C#... for some reason, I always forget these and find myself searching the
internet for them! Well, instead of searching I now have a handy-dandy place to look them up here on
Drop-in Code.
C# Escape Characters
\' Inserts a single quote into a string literal.
\" Inserts a double quote into a string literal.
\\ Inserts a backslash into a string literal. This can be quite helpful when defining file paths.
\a Triggers a system alert (beep). For console applications, this can be an audio clue to the user.
\n Inserts a new line (on Win32 platforms).
\r Inserts a carriage return.
\t Inserts a horizontal tab into the string literal.
So, there you have them! Some C# escape characters that are sure to make your life easier.
More information
Drop-In Code