I just noticed that I could do the following, which came as a complete surprise to me:
Console.WriteLine("{0}:{1}:{2}", "foo", "bar", "baz");
This also works for the method Write. What other methods support signatures without requiring use String.Format?
Debug.WriteLineno ...
HttpResponse.WriteLineno ...
(And on the side of the note, I could not find a quick way to find this using Reflector . A way to search for specific signatures?)
Edit:
In particular, for the framework 3.5.
source
share