Convert an object to a bool handling the case when the object is null or DBNull.
When the object is null, a numeric zero, or a string that is empty, "0",
or "false" then false, is returned.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static bool ToBool(
Object value
)
Public Shared Function ToBool (
value As Object
) As Boolean
Parameters
- value
- Type: SystemObject
The object to convert.
Return Value
Type:
Boolean
False if the object is null, a numeric zero, or a string that is empty, "0",
or "false", else returns True.
See Also