Last post Mar 31, 2010 11:00 PM by CruzerB
Mar 31, 2010 01:29 PM|eniac0|LINK
I'm attempting to develop a generic web config analyzer. Basically it would be a class that analyzes the content of the web.config on app start and crashes if there are invalid or missing keys but also offers strongly typed values rather than strings.
I've created a specific class in the past that works well
this is the code, its rather simple.
but, what i want to do now is find a way to have a base class that provides basic functionality like key validation and finding missing keys, but i also want to be able to provide a specialized class that offers strongly typed values.
well, its like what it is now, except that currently, my base class which is a singleton, declares a type of AWIConfigValues. I need to find a way to make that declaration generic. I thought about creating an interface and have the base class declare that
except that the interface has to declare the properties to have them strongly typed.
So what im trying to do is have a generic base class, possibly a generic specialized class and a bunch of custom interfaces , then use reflection in a funky way.
But i am very new to reflection and i have no idea if what i want to do is possible. Are you guys following me in my delirium ? :)
Mar 31, 2010 11:00 PM|CruzerB|LINK
U may refer to the above link... I'm just complete my own version of similar thing.