title: Is there a way to specify multiple formats in C# for a decimal string like in VB?
body: <p>I am translating some code from VB to C# and came across this:</p>
  
  <pre><code>Format(seg.R, " 00.00000;-00.00000") // &lt;-- There is a leading space in the first format string
  </code></pre>
  
  <p>...which prints...</p>
  
  <pre><code> 00.00000 //or...
  -00.00000
  </code></pre>
  
  <p>...depending on whether the decimal is positive or negative. Is there an easy way to do this with the C# <code>string.Format</code> or <code>myObj.ToString("[format here]")</code> functions?
  <br/><br/><br/>
  <b>EDIT:</b> Notice the extra space in the format string. This makes the strings the same length by adding a leading space when there is no negative sign.</p>