Extending configuration for .Net 3.5 Applications
Posted
by Maximiliano Rios
on Stack Overflow
See other posts from Stack Overflow
or by Maximiliano Rios
Published on 2009-12-18T18:28:42Z
Indexed on
2010/06/17
12:03 UTC
Read the original article
Hit count: 334
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.
© Stack Overflow or respective owner