Friday, December 10, 2010

Code Snippets C# - Strings

Sometimes you want to write a quote inside a string, but if you will write " " " it will not work, so the way to workaround it is writing \" .

Snippet:

String.Format("C:\\TestFiles\\\"{0}\"", fileName)

No comments:

Post a Comment