1). var bitValue = (byteValue & (1 << bitNumber)) != 0;
var bitValue = (byteValue & (1 << bitNumber)) != 0;
2). using System.Collections.BitArray with a Get(int index) method
System.Collections.BitArray
Get(int index)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!