Chapter 6. Generating Language-Neutral Code

If you need to produce code in multiple languages, the CodeDom is the tool you need. The CodeDom lets you build a description of procedural code (a CodeCompileUnit) using a set of objects and then attach that set of objects to a code provider that will convert those objects into procedural code in a specific language. In theory, you can produce code in any language that a CodeDom provider exists for. The code provider also includes support for compiling the resulting ...

Get Practical Code Generation in .NET: Covering Visual Studio 2005, 2008, and 2010 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.