string.format escape sequence in c#(www.dotnetjalps.com)
submitted by
jalpesh(1347) 4 months, 18 days ago
Recently I was working on something and I need to put a curly bracket on the string with a string.format function but I was not aware how to to do it. So I did some search on internet and found how to give escape sequence in string.format. Suppose You need to put curly bracket then you have write two ‘{{‘ instead of { to put ‘{‘ and same way ‘}}’ to put ‘}’
Let’s take simple example. Following is a code where I am printing simple string with string.format and Response.Write. using System;
using System....
|category: C#
|Views: 4
tags:
C# another
Everyones tags:
Your Tags: