Are there attributes in C# for affecting how Intellisense displays class members?

前端 未结 3 747
萌比男神i
萌比男神i 2021-01-14 09:16

Are there any C# attributes that I can apply to class members, to change the way they appear in the Intellisense listings? This popped into my head when I was building a cla

3条回答
  •  醉酒成梦
    2021-01-14 09:32

    I tend to think that manipulating the comments is a much better proposition.

    ///
    /// Bomb!
    ///
    ///
    /// 
    

    If you dig into the options available in the comment structure(which the intellisense and compiler understands) like ,,,, etc, you can pretty get all the functionality sans performance dip introduced by the attribute.

提交回复
热议问题