Monday, December 18, 2006
How come the System.IO.Path.Combine() method takes only two parameters?

Doesn't it makes a lot more sense to take (params string[] paths) instead of (string path1, string path2)? So that instead of

Path.Combine(Path.Combine(rootPath, subFolder), "filename.txt")


it's just

Path.Combine(rootPath, subFolder, "filename.txt")
.

Seems so obvious, I can't believe they made it like that for no reason. So what's the reason?
posted on 12/18/2006 2:42:56 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0]

Related Posts:
Windows Forms UserControls in IE
Taming the Tab key's little brother
Refactorings
Debugger.Launch()
Microformats
Projector trouble