public ConfigurationCollection Get() { var collectionList = new List<ConfigurationCollection>(); foreach (var path in paths) { var reader = ReaderFactory.CreateReader(path); var config = reader.ReadConfig(); ValidateCollection(config, path); collectionList.Add(config); } var configMerger = new ConfigMerger(collectionList); var merged = configMerger.GetMerged(); ValidateCollection(merged, null); return merged; }
public ConfigurationCollection Get() { var collectionList = new List <ConfigurationCollection>(); foreach (var path in paths) { var reader = ReaderFactory.CreateReader(path); var config = reader.ReadConfig(); ValidateCollection(config, path); collectionList.Add(config); } var configMerger = new ConfigMerger(collectionList); var merged = configMerger.GetMerged(); ValidateCollection(merged, null); return(merged); }