What is fastest way to convert bool to byte?
I want this mapping: False=0, True=1
Note: I don\'t want to use any if statements or other conditio
if
Convert.ToByte(myBool)
will give you 0 if myBool is False or 1 if it is True.