是否可以在t4模板中定义新类?
我尝试了这个,但它给了我一个错误'包含类功能的模板必须以类功能结束'
<#+
public class AppSettingDefinition
{
private string _dataType;
public string DataType
{
get { return _dataType; }
set { _dataType = value; }
}
}
#>
Run Code Online (Sandbox Code Playgroud)