C# LanguageT4 Code Generation

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