c# - How to write a backslash (\) in a string?
I want to write something like this
C:\Users\UserName\Documents\Tasks in a
txtPath.Text = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)+"\Tasks";
I get the error:
Unrecognized escape sequence.
How do I write a backslash in a string?
This question and all comments follow the "Attribution Required."
Leave a Reply
You must be logged in to post a answer.