Escape characters in C#
// ' or \' for a single quote.
char c = '\'';
// \" for a double quote.
c = '\"';
// \\ for a backslash.
c = '\\';
// \0 for a null character.
c = '\0';
// \a for an alert character.
c = '\a';
// \b for a backspace.
c = '\b';
// \n for a new line.
c = '\n';
// \r for a carriage return.
c = '\r';
// \t for a horizontal tab.
c = '\t';
// \v for a vertical tab.
c = '\v';
// \x for a unicode character hex value.
c = '\xA9'; //Copyright Symbol
- Log in to post comments