dcsimg
LinkedIn
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Quickly escape the escape characters in a string.

 


advertisement


C# provides you a way to escape the problematic characters in a string through the ???@??? symbol. Just place it before the string, and the compiler will escape those characters.For e.g. 
String filePath = @???c:\windows\system32???;
Thus you do not have to escape the slashes in the string in the above example.


Email AuthorEmail Author
Close Icon
Thanks for your registration, follow us on our social networks to keep up-to-date