none
属性用什么介绍 RRS feed

  • 问题

  • ///<summary>Op类是用来.................</summary>
    class Op{
        ///<param name="op0"></param>
        public Equal(Op op0,Op op1);
    
    }
    那么属性是用什么关键字来介绍的呢?
    2018年8月29日 7:52

答案

  • 你好,

    你说的是对属性的注释吗? 如果是的话,可以和方法一样的,用Summary.

    Best regards,

    Zhanglong


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • 已标记为答案 czhch 2018年8月31日 0:35
    2018年8月30日 1:18
    版主

全部回复

  • 你好,

    你说的是对属性的注释吗? 如果是的话,可以和方法一样的,用Summary.

    Best regards,

    Zhanglong


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • 已标记为答案 czhch 2018年8月31日 0:35
    2018年8月30日 1:18
    版主
  • 那么value是注释什么的
    2018年8月30日 1:49
  • 你好,

    value 是上下文关键字, 是不需要注释的。 你可以要注释的方法或者属性上连续按三个/ , vs会自动生成相关的注释结构代码,你只要填相关内容就可以了。

    Best regards,

    Zhanglong


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2018年8月30日 3:34
    版主