Custom Configuration Sections in 3 Easy Steps
Posted by: youve been HAACKED,
on 12 Mar 2007 |
View original | Bookmarked: 0 time(s)
Are you tired of seeing your configuration settings as an endless list of key value pairs? <add key="key0" value="value0" />
<add key="key1" value="value1" />
<add key="key2" value="value2" />
...
Would you rather see something more like this?
<MySetting
fileName="c:\temp"
password="pencil"
someOtherSetting="value" />
Join the club. Not only isthe first approachprone to typos (AppSettings["tire"] or AppSettings["tier] anyone?), too many of these things all bunched...