How can brackets be escaped in using string.Format.
string.Format
For example:
String val = \"1,2,3\" String.Format(\" foo {{0}}\", val);
or you can use c# string interpolation like this (feature available in C# 6.0)
var value = "1, 2, 3"; var output = $" foo {{{value}}}";