I want Convert Byte to fixed size (size = 8) bit array
Want Behavior:
var bits = GetBits(0x00); // returned [0,0,0,0,0,0,0,0]
bits = GetBits(0x01); // returned [1,0,0,0,0,0,0,0]
bits = GetBits(0x0A); // returned [0,1,0,1,0,0,0,0]
I used below code but it didn't return what I want.
BitArray bits = new BitArray(byte);

BitArray' constructor takes a length not a byte to convert.