| SNO | EscapeSequence | Usage |
| 1 | \a | Bell (alert) |
| 2 | \b | Backspace |
| 3 | \f | Form Feed |
| 4 | \n | New line |
| 5 | \r | Carriage return |
| 6 | \t | Horizontal tab |
| 7 | \v | Vertical tab |
| 8 | \' | Single quotation mark |
| 9 | \ " | Double quotation mark |
| 10 | \\ | Backslash |
| 11 | \? | Literal question mark |
| 12 | \ ooo | ASCII character in octal notation |
| 13 | \x hh | ASCII character in hexadecimal notation |
| 14 | \x hhhh |
Unicode character in hexadecimal notation if this escape sequence is used in a wide-character constant or a Unicode string literal.
For example, WCHAR f = L'\x4e00' or WCHAR b[] = L"The Chinese character for one is \x4e00".
|
Thursday, 31 July 2014
Escape Sequences in C#.Net
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment