[Share] Character Escape Sequences

08/30/2009 21:09 Zion~#1
Use/Purpose:

Some characters aren't printable, but you still need to use them in strings. Therefore, C# has a special syntax where characters can be escaped to represent non-printable characters. For example, it is common to use newlines in text, which is represented by the '\n' char. The backslash, '\', represents the escape. When preceded by the escape character, the 'n' is no longer interpreted as an alphabetical character, but now represents a newline.

Code:
[B]Escape Sequence  	           Meaning[/B]
\'  	                         Single Quote
\"  	                         Double Quote
\\  	                         Backslash
\0  	                         Null, not the same as the C# null value
\a  	                         Bell
\b  	                         Backspace
\f  	                         form Feed
\n  	                         Newline
\r  	                         Carriage Return
\t  	                         Horizontal Tab
\v  	                         Vertical Tab
Note : I didn't post this up here for the people that just care about having 2nd reborn and lucky time in there source.
08/30/2009 21:51 Singah#2
This is pretty useful,

P.S I like the Rastafarian style.

Glad I helped.
08/31/2009 03:38 Zion~#3
Yeah bless man,
most of these sequences can be used when coding NPCs.