O'Reilly logo

Practical Code Generation in .NET: Covering Visual Studio 2005, 2008, and 2010 by Peter Vogel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required