import namespace="System.Linq" #> <#@ import namespace="System.Text" #> <#@ import namespace="System.Collections.Generic" #> public class HelloT4 { <# foreach(int num in Enumerable.Range(0, 3)) { #> public const int Num<#= num #> = <#= num #>; <# } #> }
= "Person", Propeties = new [] { new { Type = typeof(string), Name = "FirstName" }, new { Type = typeof(string), Name = "LastName" }, new { Type = typeof(int), Name = "Age" }, new { Type = typeof(int), Name = "Sex" }, } }, new { ClassName = "PlayLog", Propeties = new [] { new { Type = typeof(int), Name = "StageId" }, new { Type = typeof(int), Name = "Score" }, new { Type = typeof(DateTime), Name = "PlayedAt" }, } }, };