How to use Curly braces "{" in string.format.
By samjayander thiagarajan
Using of curly braces "{" in String.format will result you in "Input string was not in correct format" error. How to avoid this error.
When using "{" in String.Format you should use like:
MessageBox.Show(string.Format("message
{{Test}} is {0}", "Hi"));
using of double brace "{{"
will get you a single brace "{" in output.
How to use Curly braces "{" in string.format. (2059 Views)