There doesn\'t seem to be a way to use C#\'s ternary operator on two bytes like so:
byte someByte = someBoolean ? 0 : 1;
That code currentl
You could always do:
var myByte = Convert.ToByte(myBool);
This will yield myByte == 0 for false and myByte == 1 for true.