Home
About
Authors
/
David Brown
David Brown
1 post.
Convert a BitArray to byte[] in C#
Here's an extension method that packs a C# BitArray to a byte array: public static byte\[\] ToByteArray(this BitArray bits) { int numBytes = bits.Count /…
2009-04-05