C# | T4 Code Generation
Runtime Code Generation
Section titled “Runtime Code Generation”<#@ template language="C#" #> //Language of your project<#@ assembly name="System.Core" #><#@ import namespace="System.Linq" #><#@ import namespace="System.Text" #><#@ import namespace="System.Collections.Generic" #>Syntax
Section titled “Syntax”- T4 Syntax
<#@...#>//Declaring properties including templates, assemblies and namespaces and the language the template usesPlain Text//Declaring text that can be looped through for the files generated<#=...#>//Declaring Scripts<#+...#>//Declaring scriptlets<#...#>//Declaring text blocks