Introducing nGineer and its CodeDOM Generator
nGineer is a language analysis and code generation kit for .NET languages and specifically C# which is currently being developed.
Components of nGineer are released separately and more components will be released soon.
The CodeDOM Generator component of the nGineer component suite persists Code Document Object Model object grids to Code Document Object Model object grids of themselves.
This would mean that if your tool generates a grid of Code DOM objects and you would like to see what that code would look like should it have been written as code, just send it through the CreateDOM method of the nGineer.CodeDOMGenerator class and you will receive a CodeCompileUnit with the code generated for your object grid.
The code is simple. Just type:
CodeCompileUnit generatedUnit = nGineer.CodeDOMGenerator.CreateDOM(unit);
Check out the project's page for examples and downloads.