Is it possible to define a new class in the t4 template?

Is it possible to define a new class in the t4 template?

I tried this, but it gave me an error "The template containing the class function should end with the class function

<#+ public class AppSettingDefinition { private string _dataType; public string DataType { get { return _dataType; } set { _dataType = value; } } } #> 
+6
source share
1 answer

Yes, it is possible, I got an error because I had text after closing the tag class #>

+7
source

All Articles