title: Equivalent of sprintf in C#?
body: <p>Is there something similar to <code>sprintf()</code> in C#?</p>
  
  <p>I would for instance like to convert an integer to a 2-byte byte-array.</p>
  
  <p>Something like:</p>
  
  <pre><code>int number = 17;
  byte[] s = sprintf("%2c", number);
  </code></pre>