private static bool AsBool()

in src/Utils.cs [64:79]


        private static bool AsBool(this string str, bool defaultValue = false)
        {
            switch (str.ToLowerInvariant())
            {
                case "true":
                case "1":
                case "yes":
                    return true;
                case "false":
                case "0":
                case "no":
                    return false;
                default:
                    return defaultValue;
            }
        }