Are there attributes in C # to influence how Intellisense displays class members?

Are there any C # attributes that I can apply to class members to change the way they appear in Intellisense lists? It popped into my head when I was building a class with many static constants, and I (briefly!) Wanted it to look like an Intellisense enum.

Yes, this is stupid.

But that made me wonder if some crazy programmer could make class members differently in Intellisense? Make fields look like properties, etc.

For example, there is an Obsolete attribute:

 [Obsolete("Stop using this. Really. It old.")] public int VariableThatIsReallyOld; 

What is the prefix of the word [obsolete] to describe VariableThatIsReallyOld .

+2
c # attributes intellisense
source share
3 answers

Here the DebuggerDisplay attribute is described here .

+4
source share

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

 ///<summary> /// Bomb! ///</summary> ///<example></example><value></value><![CDATA[]]><param name="ss"></param><exception cref="ss"></exception><remarks></remarks> ///<returns></returns> 

If you delve into the parameters available in the comment structure (which are understood by intellisense and the compiler), for example, <example>,<include>,<see>,<seealso>,<exception> , etc., you can get all the functional Capabilities without sacrificing performance introduced by the attribute

+3
source share

Also provides some other attributes in Custom intellisense for server management? (But the search continues!)

 [EditorBrowsable(EditorBrowsableState.Never)] 
+3
source share

All Articles