title: How to use C language format specifiers in C#
body: <p>Consider this as my input:</p>
  
  <pre><code>number : 123
  pattern: %5d
  
  Output in C after string formatting : "  123"
  </code></pre>
  
  <p><strong>Note</strong>: <em>White spaces are displayed in first two positions.</em> </p>
  
  <p>To be exact, my input patterns will be in C language format and I'd like to get the functionality of those formats(result should be same as in C) in C#.</p>