Example #1
0
        public static Dictionary <string, string> GetStringDictionary(this YamlConfig config, string key, Dictionary <string, string> defaultValue)
        {
            var dictionary = config.GetStringDictionary(key);

            if (dictionary?.Count == 0)
            {
                return(defaultValue);
            }

            return(dictionary);
        }