C# 模板类、接口
作者:互联网
C#模板
C#模板类
路径C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\ItemTemplates\CSharp\Code\2052
/************************************************
*CLR Version: $clrversion$
*Author : Eddie Xu
*Create Time: $time$
*MachineName: $machinename$
*Description:
*
*Update History:
*
***********************************************/
#region Using
using System;
using System.Collections.Generic;
$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
$endif$using System.Text;
$if$ ($targetframeworkversion$ >= 4.5)using System.Threading.Tasks;
$endif$
#endregion
namespace $rootnamespace$
{
/// <summary>
///
/// </summary>
public class $safeitemrootname$
{
#region Field(字段)
#endregion Field(字段)
#region Property(属性)
#endregion Property(属性)
#region Constructor(构造函数)
public $safeitemrootname$()
{}
#endregion Constructor(构造函数)
#region Publish Method (公共方法)
#endregion Publish Method (公共方法)
#region Private Method(私有方法)
#endregion Private Method(私有方法)
}
}
C#模板接口
/************************************************
*CLR Version: $clrversion$
*Author : Eddie Xu
*Create Time: $time$
*MachineName: $machinename$
*Description:
*
*Update History:
*
***********************************************/
#region Using
using System;
using System.Collections.Generic;
$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
$endif$using System.Text;
$if$ ($targetframeworkversion$ >= 4.5)using System.Threading.Tasks;
$endif$
#endregion
namespace $rootnamespace$
{
/// <summary>
///
/// </summary>
public interface $safeitemrootname$
{
#region Property(属性)
#endregion Property(属性)
#region Publish Method (公共方法)
#endregion Publish Method (公共方法)
}
}
扩展插件
CodeMaid
GhostDoc
标签:endregion,C#,region,System,接口,using,Method,模板 来源: https://www.cnblogs.com/Nine4Cool/p/13899652.html