Extending configuration for .Net 3.5 Applications
- by Maximiliano Rios
Due to a requirement in my current project, I have to build a configuration manager to handle configurations that merge local config info with database one.
Custom configuration doesn't fit my needs, problem is that I don't know what's the type before loading certain information, for example:
Loading database information I will able to know what's myhandler's type. Not previously. So I thought to write my own handler but I can't let set blank as type for sections, in fact .net requires to know what's the type to match myhandler nodes. I'm thinking on building a different parser to read XML nodes but I would prefer to match this structure.
I've not found any information to do that yet, is there any way? Can I extend or hook up something into the framework to be capable of loading on-the-fly types and validate nodes?
Thanks in advance.