OptionConverterToBoolean Method Apache log4net™ SDK Documentation
Converts a string to a Boolean value.

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

public static bool ToBoolean(
	string argValue,
	bool defaultValue
)

Parameters

argValue
Type: SystemString
String to convert.
defaultValue
Type: SystemBoolean
The default value.

Return Value

Type: Boolean
The 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

Reference