With the Format() method of String in C#, you use numbered braces to denote replacement positions. If you want to display braces in your formatted text you need to escape them by entering the brace twice:
String.Format("{{ Go to {0} for help}}", "http://www.google.com");
1 comments:
Thanks for sharing this ! Very informative.
Post a Comment