Parameter initialization using App.config and reflection

Oct 9 2009 4:39 AM
In a project I have lots of classes that need some parameters whose values I can put in the App.config. Most of them can be static readonly variables. I suppose a smart and universal way to assign them the right value form App.config is to code their class and name in App.config and then use the reflection. This kind of problem should be quite general so I'm surprised I didn't find some already developed code which implements it. Am I on the wrong way ? Do you have something to suggest ? An open source project to look at ? Thanks Filippo

Answers (4)