[Info] Escaping in C#: characters, strings, string formats, keywords, identifiers

- character literal escaping: e.g. \’, \n, \u20AC (the Euro € currency sign), \x9 (equivalent to \t))
- literal string escaping: e.g. "...\t...\u0040...\U000000041...\x9..."
- verbatim string escaping: e.g. @"...""..."
- string.Format escaping: e.g. "...{{...}}..."
- keyword escaping: e.g. @if (for if as identifier)
- identifier escaping: e.g. i\u0064 (for id)

Source:

http://www.codeproject.com/Articles/371232/Escaping-in-Csharp-characters-strings-string-forma

Attached Files
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Name
Email
Security Code Security Code
Related Articles RSS Feed
MENU