ShopToolsUtilToBool(String, Boolean) Method
Provide fail-safe conversion of string to boolean value.
Namespace: ShopToolsAssembly: ShopTools (in ShopTools.exe) Version: 25.2429.4649
public static bool ToBool(
string value,
bool defaultValue = false
)
Public Shared Function ToBool (
value As String,
Optional defaultValue As Boolean = false
) As Boolean
No code example is currently available or this language may not be supported.
- value String
-
Value to convert.
- defaultValue Boolean (Optional)
-
The default value to return if the value was not present.
Boolean
Boolean value. False if not convertible.