Say I've got a String.Format("{0} {1} at {2} for {3}-{4} ... and finally {7}", var1, var2, ...)
now I have to add an extra variable at the beginning of the String.Format and for maintenance and readability reasons I want to avoid String.Format("{8} {0} {1} at {2} ...", ...)
.
Basically I want to avoid that I end up with String.Formats that look like String.Format("{5} {3} {0} {7} {1} {4} {2}", var1, var2, ...
. Something you could end up with after 6 change requests, something where you have to look very carefully where every variable is going to be substituted.
Is there something out there that can reorder the replacements for me automatically?