Archives for February, 2008

Understanding T4: Statement Blocks


Here is how T4 documentation on MSDN defines statement blocks.
You can use statement blocks in text templates to control the flow of processing in the text template. Statement blocks enable you either to structure templates to output things conditionally or to iterate over data to output things repeatedly for each item in that data.
Code statements […]

Understanding T4: Text Blocks


This post describes the purpose and implementation mechanics of the T4 text blocks.