Class ParseUtils.Bool
Utility class for parsing boolean values
Inherited Members
Namespace: Serenity.Shared.Utils
Assembly: Serenity.Shared.dll
Syntax
public static class ParseUtils.Bool
Methods
Parse(string)
Parse a string value into a boolean
Declaration
public static bool Parse(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The string value to parse |
Returns
| Type | Description |
|---|---|
| bool | The parsed boolean value |
ToString(bool, BoolStringsTypes)
Convert a boolean value to its string representation based on the specified type
Declaration
public static string ToString(bool value, ParseUtils.Bool.BoolStringsTypes type = BoolStringsTypes.Bool)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | The boolean value to convert |
| ParseUtils.Bool.BoolStringsTypes | type | The type of string representation to use (default is Bool) |
Returns
| Type | Description |
|---|---|
| string | The string representation of the boolean value |