Is there a way for the format string used in a call to string.format to contain a { character that is not used for substring insertion?
For example how could I do th
Yup, you just need to double it:
string.Format("my format has this {{ in it {0}", abc);
See the "escaping braces" section on the MSDN page for Composite Formatting for more details.
Here's an article that explains how to escape the curly brace in string.format with a few examples and some good reading.
http://msdn.microsoft.com/en-us/netframework/aa569608#Question2
EDIT: Adding useful text to accompany link :)
Double it up to escape it. So "{{" will work properly and will output from the string.format as a single "{"
it is called escaping. mostly you do a \ in front of the odd char
Use double {{
brace in your format string.