title: String.Format with curly braces
body: <p>Our low level logging library has to cope with all sorts of log messages sent to it.</p>
  
  <p>Some of these messages include curly braces (as part of the text), and some contain parameters to be formatted as part of the string using String.Format</p>
  
  <p>For example, this string could be an input to the Logger class:</p>
  
  <p>"Parameter: {Hostname} Value: {0}" 
  With the correct variable sent to use for the formatter.</p>
  
  <p>In order to properly do it, i must escape the curly braces that are not part of the formatting (by doubling them up).</p>
  
  <p>I thought of doing it using Regex, however this is not as simple as it may seem, since i have no idea how to match these strings inside a curly braces (ones that are NOT used by String.Format for formatting purposes).</p>
  
  <p>Another issue is that the Logger class should be as performance efficient as possible, starting to handle regular expressions as part of its operation may hinder performance.</p>
  
  <p>Is there any proper and known best practice for this?</p>