SharpCifs.Config.GetBoolean C# (CSharp) Method

GetBoolean() public static method

Retrieve a boolean value.
Retrieve a boolean value. If the property is not found, the value of def is returned.
public static GetBoolean ( string key, bool def ) : bool
key string
def bool
return bool
        public static bool GetBoolean(string key, bool def)
        {
            string b = GetProperty(key);
            if (b != null)
            {
                def = b.ToLower().Equals("true");
            }
            return def;
        }