tabs ↹ over ␣ ␣ ␣ spaces

by Jiří {x2} Činčura

String.Format “args” and Console.WriteLine “arg”

20 Nov 2013 1 mins .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 .NET, C# and Firebird expert. He focuses on data and business layers, language constructs, parallelism, databases and performance. For almost two decades he contributes to open-source, i.e. FirebirdClient. He works as a senior software engineer for Microsoft. Frequent speaker and blogger at www.tabsoverspaces.com.