Converts the string to a bool equivalent.
s The string to convert.
A Boolean value, that is, true or false.
TypeReasonArgumentNullException s is a null reference.FormatException s does not represent a bool value.
Valid strings are "1" or "true" for true and "0" or "false" for false.