I m curious why would i use string formatting while i can use concatenation such as
Console.WriteLine(\"Hello {0} !\", name);
Console.WriteLine(\"Hello \"+
You picked too simple of an example.
String formatting:
("{0} + {0} = {1}", x, 2*x)ToString on its arguments: ("{0}: {1}", someKeyObj, someValueObj)("The value will be {0:3N} (or {1:P}) on {2:MMMM yyyy gg}", x, y, theDate)(">{0,3}<", "hi"); // ">hi <"