configSections in App.config confusion
I am trying to create custom sections in the App.config file and read in the values at runtime but it is really confusing me.
If i have something like....
Code:
<configSections>
<section name="connectionProfiles" type="? What Goes Here ?" />
</configSections>
<connectionProfiles>
<connectionProfile name="Profile1" value="MyValue" />
<connectionProfile name="Profile2" value="AnotherValue" />
.......
</connectionProfiles>
How do i then load those values at runtime into my application. Any help will be greatly appreciated.