T4 Code Generation

Download c# eBook

Syntax

  • T4 Syntax
  • <#@...#> //Declaring properties including templates, assemblies and namespaces and the language the template uses
  • Plain Text //Declaring text that can be looped through for the files generated
  • <#=...#> //Declaring Scripts
  • <#+...#> //Declaring scriptlets
  • <#...#> //Declaring text blocks

Related Examples

Stats

71 Contributors: 2
Monday, August 1, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook