Converts this instance of a Boolean as a Double.
[Visual Basic] Overridable Public Function ToDouble() As Double [C#] public virtual double ToDouble(); [C++] public: virtual double ToDouble(); [JScript] public function ToDouble() : double;
A double as a Boolean.
Exception Type | Condition |
---|---|
InvalidCastException | If it doesn't return a double. |
The ToBoolean method returns the specified parameter as an 8-byte double precision floating-point number.
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 and ToBoolean.)
Boolean Structure | Boolean Members | System Namespace | Convert