Converts a string to a Boolean value.
Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
Parameters
- argValue
- Type: SystemString
String to convert. - defaultValue
- Type: SystemBoolean
The default value.
Return Value
Type: BooleanThe Boolean value of argValue.
Remarks
If argValue is "true", then true is returned. If argValue is "false", then false is returned. Otherwise, defaultValue is returned.
See Also