Comment

Comment by torme

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...

parent torme 14 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton