Hacker News new | ask | show | jobs
by torme 5205 days ago
So I'm sort of nitpicking your comment here, but the purpose of @"" for verbatim strings wasn't created just to deal with directory slashes, it's just a handy way of writing string without the need for escaping in general.

Also, if you really want to make portable C# code, you should use Path.DirectorySeparatorChar, as it's not platform specific at all.

http://msdn.microsoft.com/en-us/library/system.io.path.direc...