Converts a Boolean to a UInt16.
[Visual Basic] Overloads Public Shared Function ToUInt16( _ ByVal value As Boolean _ ) As UInt16 [C#] public static ushort ToUInt16( bool value ); [C++] public: static unsigned short ToUInt16( bool value ); [JScript] public static function ToUInt16( value : Boolean ) : UInt16;
The number 1 if value is true; otherwise, 0.
Convert Class | Convert Members | System Namespace | Convert.ToUInt16 Overload List