<%-- 基本设置 --%>
<%@ Template Language="C#" TargetLanguage="Text" %>
<%-- 变量 --%>
<%@ Property Name="NameSpace" Type="System.String" Description="命名空间" %>
<%@ Property Name="ClassName" Type="System.String" Description="类" %>
<%@ Property Name="ClassDescription" Type="System.String" Description="类描述信息" %>
<%@ Property Name="Author" Type="System.String" Default="Jun" Description="作者" %>
<%-- 模板内容 --%>
/****************************************
** 文件名: <%=ClassName %>.cs
** 作者: <%=Author %>
** 创建时间: <%= DateTime.Now.ToLocalTime() %>
****************************************/
using System;
namespace <%=NameSpace %>
{
/// <summary>
/// Summary <%=ClassDescription %>.
/// </summary>
public class <%=ClassName %>
{
public <%=ClassName %>()
{
//
// TODO: Add constructor logic here
//
}
}
}
CodeSmith----01.基本模板
最新推荐文章于 2021-06-23 20:07:47 发布