Hidden Features of C#?
Hidden Features of C#?
Hidden Features of C#?
Re: Hidden Features of C#?
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;
```
I'm willing to bet that every production app has the following code, even though it shouldn't:
```
string path = dir + "\\" + fileName;
```