Chapter 11. Case Study: Generating Data-Conversion Code

This case study looks at creating a class that parses a string of data consisting of a variable collection of items and converts that data into .NET data types. This case study uses T4 templates, but primarily you’ll see how to create a visual designer that developers use to generate the input specifications for code generation. Effectively, then, this chapter looks at one of the first steps in the code-generation process: How the developer enters the inputs to the code-generation process. At the end ...

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.