9 ms·
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 w
by torme 15y 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.directoryseparatorchar.aspx http://msdn.microsoft.com/en-us/library/system.io.path.direc...