dcsimg
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

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning




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.


Thanks for your registration, follow us on our social networks to keep up-to-date