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.
(这本身不是C#,但是我还没有见过真正使用System.IO.Path.Combine()
的人。)
In fact, the whole Path class is really useful, but no one uses it! (实际上,整个Path类确实很有用,但是没有人使用它!)
I'm willing to bet that every production app has the following code, even though it shouldn't:
(我敢打赌,每个生产应用程序都具有以下代码,即使它不应该具有以下代码:)
string path = dir + "\" + fileName;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…