Escaping curly brackets inside a String.Format expression
suggest changestring outsidetext = "I am outside of bracket";
string.Format("{{I am in brackets!}} {0}", outsidetext);
//Outputs "{I am in brackets!} I am outside of bracket"
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents