title: C#: ASCII to Hex: Output hex as "01" instead of "1"
body: <p>I am in the process of writing an ASCII to Hex conversion program. When I put spaces into the program it outputs them as "1"; I would prefer that it output as "01".</p>
  
  <p>How would I go about forcing the "0" to display?</p>
  
  <p>part of the static Dictionary used in the code:</p>
  
  <pre><code>static Dictionary&lt;char, int&gt; cyper = new Dictionary&lt;char, int&gt;
  {
  {' ', 01},
  };
  </code></pre>
  
  <p>Many thanks</p>