public void Initialize() { foreach (var xmlDoc in xmlDict) { var coc = new ConfigOrSettingsContent(xmlDoc.Value); configOrSettingsContent.Add(xmlDoc.Key, coc); } }
public ConfigOrSettingsContent GetConfigOrSettingsContentFromString(string selector) { ConfigOrSettingsContent res = null; if (!configOrSettingsContent.TryGetValue(selector, out res)) { //log } return(res); }
public List <SubfolderDto> SearchForSubfolders(string fileName, string subfolderName) { var res = new List <SubfolderDto>(); ConfigOrSettingsContent content = null; if (!configOrSettingsContent.TryGetValue(fileName, out content)) { //Log return(res); } return(content.Subfolders.Where(x => string.Compare(x.Name, subfolderName, true) == 0).ToList()); }