BitmapReader.Extensions.IDictionaryExtensions.GetBoolValueOrDefault C# (CSharp) Method

GetBoolValueOrDefault() public static method

public static GetBoolValueOrDefault ( string>.this dict, string key, bool defVal ) : bool
dict string>.this
key string
defVal bool
return bool
        public static bool GetBoolValueOrDefault(this IDictionary<string, string> dict, string key, bool defVal)
        {
            string output;
            return dict.TryGetValue(key, out output) ? output.ToBool(defVal) : defVal;
        }