title: BitArray alternative for the .NET Micro Framework
body: <p>Is there a BitArray alternative for the .NET Micro Framework?
  I was thinking about simply using a bool[], but how can you convert it back
  into a byte[] ?</p>
  
  <p>In the full framework, considering "bits" is a BitArray, the following works:</p>
  
  <pre><code>byte[] data = new byte[dimensions / 8];
  bits.CopyTo(data, 0);
  </code></pre>
  
  <p>But I cannot seem to find the BitArray class in the micro framework</p>