T4 templates have been a pretty popular topic lately. If you have no idea what they are, don?t feel bad, I didn?t either only a couple weeks ago! In a nutshell, it?s a simple template processor that?s built into VS and allows for all kind of cool code generation scenario. For a bunch of information about them, check out the following two blogs: GarethJ?s blog Oleg Sych?s blog The basic idea is that you can drop a hello.tt file into a project, and it will generate a hello.cs (or hello.anything) file via its template. The template syntax of .tt files is very similar to ASP.NET?s <% ? %> blocks, except that they use <# ? #> instead. For a cool example of what you can do with T4, check out this post from Danny Simmons, which shares out...(read more) ...
Go to the complete details ...