In C#
BitArray ba = new BitArray((byte)70);
I expect that ba
should be equal to {0,1,1,1,0,0,0,0}
.
Instead I get a bunch of zero, (sorry did not count them I will post back if I need to).
I have searched a lot and I am frustrated. This should be an easy answer but I cannot seem to get a sensible easy answer. Many examples going the other way. What is the simplest way to get from (byte)70
to bits {01110000}
.
Thank you.