zoukankan      html  css  js  c++  java
  • C# 模板类、接口

    C#模板

    C#模板类
    C#模板接口
    扩展插件

    C#模板类

    路径C:Program Files (x86)Microsoft Visual Studio2019ProfessionalCommon7IDEItemTemplatesCSharpCode2052

    /************************************************
    *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

  • 相关阅读:
    iota妙用
    io
    http
    gosched
    go设置使用多少个cpu
    go协程的特点
    go条件变量同步机制
    Go奇技淫巧
    U5首次登录
    Maven安装中的问题
  • 原文地址:https://www.cnblogs.com/Nine4Cool/p/13899652.html
Copyright © 2011-2022 走看看