public override ConfigItem TryGetConfigItem(string key) { key = key.ToLowerInvariant(); var data = configItemsFunc(); if (data.ContainsKey(key)) { return(data[key]); } return(ConfigItemCollection?.TryGetConfigItem(key)); }