BCR.GlobalSettings.GetBoolean C# (CSharp) Method

GetBoolean() public method

public GetBoolean ( string key, bool defaultValue ) : bool
key string
defaultValue bool
return bool
        public bool GetBoolean(string key, bool defaultValue)
        {
            string s;
              if (mSettings.TryGetValue(key, out s))
              {
            return Convert.ToBoolean(s);
              }

              Set(key, defaultValue.ToString());
              return defaultValue;
        }