Places where String.Format is embedded in the framework
suggest changeThere are several places where you can use String.Format indirectly: The secret is to look for the overload with the signature string format, params object[] args, e.g.:
Console.WriteLine(String.Format("{0} - {1}", name, value));
Can be replaced with shorter version:
Console.WriteLine("{0} - {1}", name, value);
There are other methods which also use String.Format, for example:
Debug.WriteLine(format, args); // and Debug.Print
StringBuilder.AppendFormat(format, args);
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents