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