In python, I take a raw string, and then pass it to os.path.normpath to make it a proper pathname. It escapes all the stuff I need escaped and I don't have to worry about it. Is there an equivalent in C#?
Here is a python snippet.
myClassProjectPath = os.path.normpath(r"C:\Users\Documents\SharpDevelop Projects\Project With Spaces\MyClass\bin\Debug")
EDIT: I am worried about slashes and spaces. Right now, I'm hardcoding the path in the code, but it will soon be a user input, so I can't control "/" vs "\"