by PaulHoule · 14y ago · 0 comments
Back when I was a Windows dev I drove the guys I worked with nuts because I used "/" instead of "\", figuring it would be more portable and I wouldn't have to write "\\" all the time. Of course, C# has @"" just to deal with that latter problem.
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...