tabs ↹ over ␣ ␣ ␣ spaces

by Jiří {x2} Činčura

String.Format "args" and Console.WriteLine "arg"

20 Nov 2013 .NET

I never noticed it, but as I was today rewriting some Console.WriteLine’s behavior I saw it clear. The Console.WriteLine (in linked overload) takes params named arg. But the String.Format takes params named args, as you would probably expect.

Wondering how that happened. :) Sure, it has almost zero impact on the code itself and changing it would be a breaking change (now with named parameters it’s little bigger break), but we has bigger changes in even behavior during the years. Or maybe it’s just to cosmetical. 8-)