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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.