コード例 #1
0
 public void Initialize()
 {
     foreach (var xmlDoc in xmlDict)
     {
         var coc = new ConfigOrSettingsContent(xmlDoc.Value);
         configOrSettingsContent.Add(xmlDoc.Key, coc);
     }
 }
コード例 #2
0
        public ConfigOrSettingsContent GetConfigOrSettingsContentFromString(string selector)
        {
            ConfigOrSettingsContent res = null;

            if (!configOrSettingsContent.TryGetValue(selector, out res))
            {
                //log
            }
            return(res);
        }
コード例 #3
0
        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());
        }