StringHelpers.ParseBoolean method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Strings |
---|---|
Assembly | Skybrud.Essentials.dll |
ParseBoolean(string)
Static
Parses the specified str
into an instance of bool . The string is
considered true
if it matches either 1
, t
or true
(case insensitive).
public static bool ParseBoolean(string str)
Parameters
str
String
The string to be parsed.
Returns
true
if str
matches either true
, 1
or t
(case insensitive).
ParseBoolean(object)
Static
Parses the specified value
into an instance of bool . The value is
considered true
if it matches either 1
, t
or true
(case insensitive).
public static bool ParseBoolean(object value)
Parameters
value
Object
The value to be parsed.
Returns
true
if value
matches either true
, 1
or t
(case insensitive).