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. 😎

Profile Picture Jiří Činčura is an independent developer focusing on data and business layers, language constructs, parallelism and databases. Specifically Entity Framework, asynchronous and parallel programming, cloud and Azure. He's Microsoft Most Valuable Professional and you can read his articles, guides, tips and tricks at www.tabsoverspaces.com.