Method ParseIntBool
ParseIntBool(string)
Parses the specified string as an integer based boolean (1 = true, 0 = false).
public static bool ParseIntBool(this string intBoolString)
Parameters
intBoolStringstringThe integer string to parse.
Returns
ParseIntBool(string, bool)
Parses the specified string as an integer based boolean (1 = true, 0 = false).
public static bool ParseIntBool(this string intBoolString, bool defaultValue)
Parameters
intBoolStringstringThe integer string to parse.
defaultValueboolIf parsing fails, the value to return instead.