Omer van Kloeten's .NET Zen

Some Good Ol' P2P - The Projects - nGineer - CodeDOM Generator

My Links

Projects

nGineer

CodeDOM Generator

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);