Ideally I’d be using files of the same basic structure as an app.config and pulling settings buy so long as I can get any sort of “pathed” XML storage for settings I’d be okay.
Ideally given something like :
<Root>
<ApplicationSettings>
<Setting key="SomeKey", value="SomeValue"/>
</ApplicationSettings>
</Root>
I’d call something like:
Settings.Get("ApplicationSettings.SomeKey");
and get “SomeValue” as an lresult.
Anyone know of any easy standard commonly in place way to do this?
Yes.
A long time ago, Craig Andera has described the last configuration handler you’ll ever need. It uses app.config to provide the configuration. You could modify it to get the config from somewhere else.
EDIT
It appears as though the above link has been moved
http://sites.google.com/site/craigandera/craigs-stuff/clr-workings/the-last-configuration-section-handler-i-ll-ever-need