BitArray
byte[] b = new byte[37]; for (int n = 0; n < b.Length; ++n) b[n] = (byte)n; // get bit 5 from 37th item System.Collections.BitArray ba = new System.Collections.BitArray(new byte[1]{b[36]}); Console.WriteLine("item[36][5] is {0}", ba.Get(5));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)