private static void SetupEntries(SharpConfig.Configuration config, IEnumerable <ConfigEntry> entries) { foreach (var cfg in entries) { if (!cfg.Exists()) { continue; } cfg.Setup(config.Get(cfg)); } }
private void LoadEntries(SharpConfig.Configuration config, IEnumerable <ConfigEntry> entries, ref bool error) { foreach (var cfg in entries) { if (!cfg.Exists()) { continue; } if (config.Exists(cfg.section, cfg.setting, loggingLevel)) { cfg.Load(config.Get(cfg)); } else { error = true; } } }