Re:Be wary of functions which take several parameters of the...
by gnud on Friday September 27, 2019 @08:27AM
(#21091112)
Ah, the reason is simple: C# allows named parameters, but do not enforce them. You can call File.Copy both as
File.Copy(a,b)
and File.Copy(sourceFileName: a, destFileName: b)
And confusingly, also as File.Copy(destFileName: b, sourceFileName: a)
I'd definitely agree with you that the not having named arguments is worse than your method chained example.
To me named parameters seem to be on a par with the chained OO api.