Converts a string to a Boolean value.
[Visual Basic] Overridable Public Function ToBoolean() As Boolean [C#] public virtual bool ToBoolean(); [C++] public: virtual bool ToBoolean(); [JScript] public function ToBoolean() : Boolean;
false if the string is zero, otherwise true.
The ToBoolean method converts the "true" or "false" Boolean values to the Boolean values of true and false, respectively.
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.)