Chapter 7. Generating Code from Templates with T4

If you’ve looked at the two case studies in this book, you may well be concerned about the complexity of a typical code-generation solution (especially if you’ve looked at the CodeDom solution in Chapter 10, “Case Study: Generating Validation Code”). The main thing that you should be worried about is maintenance: Most shops spend 75 percent of their time extending, modifying, and (occasionally) fixing existing code. As a result, developers prefer solutions that are easy to maintain. You may be concerned that, because of the complexity ...

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.