Thursday, April 28, 2011

C# Escape Sequences

Some escape sequences commonly used:


\n Newline
\t Horizontal Tab
\v Vertical Tab
\b Backspace
\r Carriage Return
\f Form feed
\a Audible Alert (bell)
\\ Backslash
\? Question mark
\' Single quote
\" Double quote
\uxxxx - Unicode escape sequence for character with hex value xxxx
\xn[n][n][n] - Unicode escape sequence for character with hex value nnnn (variable length version of \uxxxx)
\Uxxxxxxxx - Unicode escape sequence for character with hex value xxxxxxxx (for generating surrogates)

1 comment:

  1. Thank you so much! I've been looking for this!! Great work!

    ReplyDelete

Swidget