Hidden Features of C#? [closed]

This isn’t C# per se, but I haven’t seen anyone who really uses System.IO.Path.Combine() to the extent that they should. In fact, the whole Path class is really useful, but no one uses it!

I’m willing to bet that every production app has the following code, even though it shouldn’t:

string path = dir + "\\" + fileName;

Leave a Comment