title: how to add { in String Format c#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/91362/how-to-escape-brackets-in-a-format-string-in-net">How to escape brackets in a format string in .Net</a><br>
    <a href="https://stackoverflow.com/questions/8402488/string-format-format-string-containing">string.format format string containing {</a>  </p>
  </blockquote>
  
  
  
  <p>I was trying to format string like this,
  {Enum.Enum1,"Enum1String"}
  I tried this code</p>
  
  <pre><code>foreach (KeyValuePair&lt;int, string&gt; p in Helper.Dict)
              {
                 // file.WriteLine(string.Format("{0} | {1}",p.Key,p.Value));
                 file.WriteLine(string.Format("{Enum.{0},\"{1}\"}", p.Value,p.Value));
  
              }
  </code></pre>
  
  <p>but it doesn not work. How to add { in string format.
  I am thinking to use stringbuilder.</p>