Formatting my string
.net, asp.net, c#, string-formatting
Solution
Use string.Format method such as in:
string X = string.Format("'{0}','{1}','{2}'", foo, bar, baz);
Problem
How can I format a string like this: ``` string X = "'{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}','{8}','{9}','{10}','{11}','{12}','{13}'",???? ``` I remember I used to be able to put a comma at the end and specify the actual data to assign to {0},{1}, etc. Any help?