OptionsCollection.TryParseBoolean Method
Tries to parse a setting of type
Boolean from a string.
Namespace: SMath.ManagerAssembly: SMath.Manager (in SMath.Manager.dll) Version: 1.73.9126.0
protected static bool TryParseBoolean(
string name,
bool defaultValue = false
)
Protected Shared Function TryParseBoolean (
name As String,
Optional defaultValue As Boolean = false
) As Boolean
protected:
static bool TryParseBoolean(
String^ name,
bool defaultValue = false
)
static member TryParseBoolean :
name : string *
?defaultValue : bool
-> bool
- name String
- Input string to parse.
- defaultValue Boolean (Optional)
- Default value to use if the format of input is not recognized.
BooleanEither the parsed
Boolean value or
defaultValue if the input is not recognized.