Method | Description | |
---|---|---|
ConvertToBool ( string boolString, bool defaultOnFailure ) : bool |
Attempts to convert the given string value to a boolean. If this fails, then it return the value provided in the defaultOnFailure parameter.
|
|
ConvertToInt ( string intString, int defaultValue ) : int |
public static ConvertToBool ( string boolString, bool defaultOnFailure ) : bool | ||
boolString | string | |
defaultOnFailure | bool | |
return | bool |
public static ConvertToInt ( string intString, int defaultValue ) : int | ||
intString | string | |
defaultValue | int | |
return | int |