Places where String.Format is embedded in the framework

suggest change

There 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);

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents