IrcD.Server.Settings.GetBool C# (CSharp) Method

GetBool() private method

private GetBool ( string key, bool standard ) : bool
key string
standard bool
return bool
        private bool GetBool(string key, bool standard)
        {
            var match = _configFile.Descendants(key).ToList();

            if (match.Any())
            {
                bool result;
                if (bool.TryParse(match.First().Value, out result))
                {
                    return result;
                }
            }

            return standard;
        }