I wrote this small POC, with a little help from samples around the Internet, to retrieve a custom configuration from the application config file (such as web.config)
It uses the Microsoft classes ConfigurationSection, ConfigurationElementCollection, and ConfigurationElement