ConvertToBoolean Method (Object) |
Converts the value of a specified object to an equivalent Boolean value.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static bool ToBoolean(
Object value
)
Parameters
- value
- Type: SystemObject
An object that implements the IConvertible interface, or null.
Return Value
Type:
Booleantrue or false, which reflects the value returned by invoking the
ToBoolean(IFormatProvider) method for the underlying type of
value. If
value is null, the method returns false.
Exceptions See Also