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

  • 相关阅读:
    bzoj 4260REBXOR
    bzoj 1009GT考试
    cf 621E. Wet Shark and Blocks
    cf 507E. Breaking Good
    cf 766#
    bzoj 3732Network
    bzoj 4300绝世好题
    bzoj 4345[POI2016]Korale
    bzoj 4236JOIOJI
    bzoj 4237稻草人
  • 原文地址:https://www.cnblogs.com/Nine4Cool/p/13899652.html
Copyright © 2011-2022 走看看