_serverDic
=
new
Dictionary
<
string
, List
<
string
>>
();
Configuration config = WebConfigurationManager.OpenWebConfiguration(System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath);
ConfigurationSectionGroup csg = config.GetSectionGroup( " remotingConfiguration " );
foreach (ConfigurationSection csc in csg.Sections)
... {
NameValueCollection nvc = (NameValueCollection)ConfigurationManager.GetSection(csc.SectionInformation.SectionName);
List<string> settings = new List<string>();
foreach(string key in nvc.AllKeys)
...{
settings.Add(nvc[key]);
}
_serverDic.Add(csc.SectionInformation.Name, settings);
}
Configuration config = WebConfigurationManager.OpenWebConfiguration(System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath);
ConfigurationSectionGroup csg = config.GetSectionGroup( " remotingConfiguration " );
foreach (ConfigurationSection csc in csg.Sections)
... {
NameValueCollection nvc = (NameValueCollection)ConfigurationManager.GetSection(csc.SectionInformation.SectionName);
List<string> settings = new List<string>();
foreach(string key in nvc.AllKeys)
...{
settings.Add(nvc[key]);
}
_serverDic.Add(csc.SectionInformation.Name, settings);
}