Escaping curly brackets inside a String.Format() C# with Example



Escaping curly brackets inside a String.Format() C# with Example

expression 
string outsidetext = "I am outside of bracket"; 
string.Format("{{I am in brackets!}} {0}", outsidetext); 
//Outputs "{I am in brackets!} I am outside of bracket" 

0 Comment's

Comment Form

Submit Comment