Part 2. Techniques for generating code
The next five chapters move into different tools and approaches to facilitate metaprogramming.
You’ll focus on template-based metaprogramming using Microsoft’s Text Template Transformation Toolkit (T4) and we’ll emphasize the DRY approach. In chapter 4, attention is turned to the CodeDOM and underlying code probivers.
You’ll emit code at runtime with the Emit API (chapter 5), providing a performance boost. You’ll use expressions to create and modify existing expressions in chapter 6 and you’ll learn how to modify assemblies to inject new code in the final chapter (chapter 7) in this middle part of Metaprogramming in .NET.