首页 > 其他分享 >visual studio 中为命名空间添加xml注释

visual studio 中为命名空间添加xml注释

时间:2024-05-30 16:34:14浏览次数:19  
标签:xml Product NamespaceDoc NamespaceGroupDoc namespace comments visual studio clas

Using NamespaceDoc and NamespaceGroupDoc Classes (ewsoftware.github.io)

 

Using NamespaceDoc and NamespaceGroupDoc Classes

If your build tool supports it, namespace comments can also be specified and maintained in your source code by adding an empty NamespaceDoc class to each namespace. When comments for this class are found in the XML comments files they will be used as the namespace comments.

To keep the NamespaceDoc class from appearing in the help file, leave off the public keyword and mark it with a CompilerGenerated attribute. This will cause the class to be automatically ignored when reflection information is generated for the assembly. The following is an example:

namespace Company.Product.Widgets
{
    /// <summary>
    /// These are the namespace comments for <c>Company.Product.Widgets</c>.
    /// </summary>
    [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    class NamespaceDoc
    {
    }
}

If the project has namespace grouping enabled, you can also maintain the namespace group comments using a NamespaceGroupDoc class in a similar fashion. The following is an example:

namespace Company.Product
{
    /// <summary>
    /// These are the group comments for namespaces in <c>Company.Product</c>.
    /// </summary>
    [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    class NamespaceGroupDoc
    {
    }
}

 

标签:xml,Product,NamespaceDoc,NamespaceGroupDoc,namespace,comments,visual,studio,clas
From: https://www.cnblogs.com/myzw/p/18222627

相关文章

  • CATIA二次开发VBA入门(4)——进程外开发环境搭建,vb.net在Visual Studio中开发,创建圆柱曲
    目录引出vb.net和vb6.0进程外开发环境搭建vb.net开发环境搭建《CATIA二次开发技术基础》模板添加宏库引用vs开发环境初步vs中的立即窗口对象浏览器建立模板案例:创建一堆圆柱曲面第一步:录制宏第二步:代码精简第三步:for循环改造第四步:人机交互改造窗口模态设置导出窗口......
  • 【译】使用 .NET Aspire 和 Visual Studio 开发云原生应用
    我们很高兴地向大家介绍.NETAspire,它旨在简化.NET云原生应用程序的构建和管理方式。.NETAspire为像您这样的开发人员提供了一个改进的、有主见的框架,用于构建分布式应用程序,确保无缝和一致的开发体验。这个新的技术栈汇集了一系列工具、模式和特殊的NuGet包,这些......
  • flstudio21中文破解版下载 FL Studio免费编曲软件汉化版资源 crack激活文件
    FLstudio21中文别名水果编曲软件,是一款全能的音乐制作软件,包括编曲、录音、剪辑和混音等诸多功能,让你的电脑编程一个全能的录音室,它为您提供了一个集成的开发环境,使用起来非常简单有效,您的工作会变得更有条理。(如下载后显示20版,请留意私发的文件,这样做是为了避免被厂商清理。......
  • 面向 C# 开发人员的 Visual Studio 工作效率指南
    VisualStudio常用快捷方式如下: 快速导航到文件或类型VisualStudio有一项称为“全部转到”的功能,可用于快速跳转到任何文件、类型、成员或符号声明。若要从菜单栏中打开它,请选择“编辑”>“转到全部”>。也可使用Ctrl+T键盘快捷方式打开它。代码编辑器的右上方会显......
  • FL Studio21.2.8最新水果软件汉化中文版本功能有多强大
    在音乐制作的世界里,有一款软件以其强大的功能和易用性赢得了无数音乐制作人的喜爱,那就是FLStudio。而今天,我们要介绍的是FLStudio21最新水果软件的汉化中文版本,这是一款专为中国用户打造的神器,让你的音乐创作如虎添翼!我们来看看FLStudio21最新水果软件汉化中文版本的功能......
  • 解决使用XDocument操作FlowDocument时XML被格式化的问题
    最近需要对WPF中的FlowDocument进行解析编辑操作,理想的办法是解析成FlowDocument对象,但是有些操作不是很方便。 FlowDocument实际上还是XML,我直接使用XDocument去进行解析操作更方便。如下就是一个FlowDocument的一个段落1<Sectionxmlns="http://schemas.microsoft.com/wi......
  • Learning Transferable Visual Models From Natural Language Supervision
    郑重声明:原文参见标题,如有侵权,请联系作者,将会撤销发布!Proceedingsofthe38thInternationalConferenceonMachineLearning,PMLR139,2021.  Abstract 1.IntroductionandMotivatingWork 2.Approach 2.1.CreatingaSufficientlyLargeDataset ......
  • maven中排除依赖传递可以在pom.xml文件中使用exclusions标签
    在项目A中引入项目B的依赖,通过依赖传递,会把项目B中的jar都引进来,如果在项目A中不想使用项目B中的某些jar包,可以使用exclusions标签进行排除,具体该标签的用法:<!--mybatis-spring依赖--><dependency><groupId>org.mybatis</groupId>......
  • Mybatis的Xml映射文件
    XML映射文件1.首先xml文件要与mapper接口进行同包同名2.xml映射文件的命名空间namespace=“com.itheima.mapper.EmpMapper”3.xml文件中的sql语句的id要与mapper中的方法名保持一致如果是查询操作,那么要resultmap的类型与Emp保持一致那么我们就先根据这三点......
  • 解决Android studio导出apk安装包问题
    当我们做好项目,在模拟器上运行调试好,或许也想把做好的APP放到自己手机上运行一下。这时候我们就需要导出apk文件,也就是安装包,然后在自己手机的直接安装就行了。下面教大家如何导出apk文件首先打开你的项目,选择Build=>BuildBundle(s)andAPK(s)=>BuildAPK(S)......