I have BitArray
with differents size and i want to get the conversion in a hex string.
I have tried to convert the BitArray
to byte[]
, but it didn't give me the right format. (Converting a boolean array into a hexadecimal number)
For exemple, a BitArray
of 12, and i want the string to be A8C (3 hexa because 12 bits)
Thanks