Question

I'm looking for a tool to generate strongly-typed classes from XML. I would like to define XML configuration (section, ConfigurationElements etc.) and then generate classes that could handle my configuration through ConfigurationManager.

Was it helpful?

Solution

Take a look at .NET Configuration Code Generator. It uses a sample of the desired XML to infer the configuration structure and types and generate the code.

OTHER TIPS

Another alternative is Configuration Section Designer

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top