Is there a way to tell the String.Format()
function (without writing my own function) how many placeholders there are dynamically? It we be great to say 15
, and know I'd have {0}-{14}
generated for me. I'm generate text files and I often have more than 25 columns. It would greatly help.
OK,
I will rephrase my question. I wanted to know if it is at all possible to tell the String.Format
function at execution time how many place-holders I want in my format string without typing them all out by hand.
I'm guessing by the responses so far, I will just go ahead and write my own method.
Thanks!