Skip to content

IsBool Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.Primitives.dll

Overloads ​

NameDescription
bool IsBool(string input)Returns if the input value can be successfully parsed as a boolean. See IsBool for accepted tokens.
bool IsBool(string input, out bool value)Returns true if the input value can be successfully parsed as a boolean value. Recognized (case-insensitive, trimmed): true/yes/1 and false/no/0.

bool IsBool(string input) ​

csharp
bool IsBool(string input)

Returns if the input value can be successfully parsed as a boolean. See IsBool for accepted tokens.

bool IsBool(string input, out bool value) ​

csharp
bool IsBool(string input, out bool value)

Returns true if the input value can be successfully parsed as a boolean value. Recognized (case-insensitive, trimmed): true/yes/1 and false/no/0.