OptionConverter.ToBoolean Method 
      
     
    
       Converts a string to a Boolean value. 
      
        [Visual Basic]
        Public Shared Function ToBoolean( _
   ByVal 
argValue As 
String, _
   ByVal 
defaultValue As 
Boolean _
) As 
Boolean 
      
        [C#]
        public static 
bool ToBoolean(   
string argValue,   
bool defaultValue);
 
      Parameters
      
        - 
          argValue
        
- String to convert.
- 
          defaultValue
        
- The default value.
Return Value
      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
OptionConverter Class | log4net.Util Namespace