Converts this instance of a Boolean to an unsigned Byte.
[Visual Basic] Overridable Public Function ToByte() As Byte [C#] public virtual byte ToByte(); [C++] public: virtual unsigned char ToByte(); [JScript] public function ToByte() : Byte;
true if it is a byte, otherwise false.
The ToByte method returns an 8-bit unsigned Byte whose value is true or false, depending on the value to be converted.
This method implements IConvertible, which replaced IValue. This method is used to obtain the type code for a specified object. (See the TypeCode enumeration for more information about type codes, Convert, and ToByte.)