ShopToolsUtilToBool(String, Boolean) Method

Provide fail-safe conversion of string to boolean value.

Definition

Namespace: ShopTools
Assembly: ShopTools (in ShopTools.exe) Version: 25.2429.4649
C#
public static bool ToBool(
	string value,
	bool defaultValue = false
)

Parameters

value  String
Value to convert.
defaultValue  Boolean  (Optional)
The default value to return if the value was not present.

Return Value

Boolean
Boolean value. False if not convertible.

See Also