I just noticed that I can do the following, which came as a complete surprise to me:
Console.WriteLine("{0}:{1}:{2}", "foo", "bar", "baz");
This works for the Write
method too. What other methods have signatures supporting this, without requiring the use of String.Format
?
Debug.WriteLine
doesn't...
HttpResponse.WriteLine
doesn't...
(And on a side note, I could not find a quick way of searching for this with Reflector. What is a good way to search for specific signatures?)
Edit:
Specifically for the 3.5 framework.