title: Convert a byte into 8 bits with true or false flags
body: <p>I am trying to read a <code>byte</code> and convert into a <code>bit</code>. I am trying to create a flagging system.</p>
  
  <p>So byte 3 would be raise the first two flags as true. However When I try and convert it just passes the value of the <code>byte</code> as the length of the <code>BitArray</code>. Any help greatly appreciated.</p>
  
  <pre><code>BinaryReader br = new BinaryReader(filestream);
  
  Byte flag = br.ReadByte();
  
  BitArray flags = new BitArray(flag); 
  
  record.Isbool = flags[0];
  record.Isbool1 = flags[1];
  
  etc
  </code></pre>