ttajic
9/24/2015 - 3:28 PM

From http://stackoverflow.com/questions/2718095/custom-app-config-section-with-a-simple-list-of-add-elements

var config = ConfigurationManager.GetSection("registerCompanies") 
                 as MyConfigSection;

Console.WriteLine(config["Tata Motors"].Code);
foreach (var e in config.Instances) { 
   Console.WriteLine("Name: {0}, Code: {1}", e.Name, e.Code); 
}