I know we can escape curly bracket in C# using {{ and }}. But they don't seem to work well if they are right after a format modifier (like {0:F6}).
string str;
// Prints "{3.14}" as expected
str = string.Format("{{{0}}}", 3.14);
Console.WriteLine(str);
// Expected "{3.140000}", found "{F6}"
str = string.Format("{{{0:F6}}}", 3.14);
Console.WriteLine(str);
str = "{" + string.Format("{0:F6}", 3.14) + "}";str = "{" + string.Format("{0:F6}", 3.14) + "}";Console.WriteLine(str);