Hidden Features of C#?

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Hidden Features of C#?

Message par Clippy »

Hidden Features of C#?
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: Hidden Features of C#?

Message par Clippy »

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;

```
Répondre

Revenir à « .NET & C# »