title: Convert int to a bit array in .NET
body: <p>How can I convert an int to a bit array?</p>
  
  <p>If I e.g. have an int with the value 3 I want an array, that has the length 8 and that looks like this:</p>
  
  <pre><code>0 0 0 0 0 0 1 1
  </code></pre>
  
  <p>Each of these numbers are in a separate slot in the array that have the size 8.</p>