如何在winmd文件中添加注释? [英] How can I adding comments to winmd files??

查看:806
本文介绍了如何在winmd文件中添加注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我已经实现了一个winRT组件并创建了一个相关文件,但我想为winmd文件添加注释。有没有办法实现这个?

Now I have implement a winRT component and create a related file but I want to add comments to winmd files. Is any way to achieve this??

例如,下面有一个结构

我想告诉用户强度范围只有0~100,如何添加评论让用户知道这个?

I want to tell user the range of strength is only 0 ~100, how can I add comment to let users know this??

直接在变量后面添加评论不可用。

Directly adding comment behind the variable is not available.

推荐答案

嗨Kenny,

Hi Kenny,

在属性或函数上面只需添加如下摘要标记:

Above the property or function simply add the summary tag like this:

  public sealed class Class1
    {
        /// <summary>
        /// This is a cool function
        /// </summary>
        public void myCoolFunc()
        {
        }
    }

这将导致该描述显示在对象浏览器中智慧。

This will cause that description to show in the object browser and intelli-sense.

杰夫


这篇关于如何在winmd文件中添加注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆