We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
How to Escape Curly Braces in C#

Submitted by: Srinath M S(srinath_ms@yahoo.com)

Friday Feb 2nd 2018 by Srinath M S

Language: .NET, Level: Beginner: - Learn how to escape curly braces in C#.

To escape curly braces in c#, use double curly braces. See the example below.

var stringWithCurlyBraces = string.Format("Good {{ ???{0}??? }}","example");

//will output Good { 'example' }
Mobile Site | Full Site
Copyright 2018 © QuinStreet Inc. All Rights Reserved