How to get Intellisense to display the meaning of an enum value

Viewed 5707

I'm wanting to know to get Intellisense in Visual Studio 2005 to display the meaning of individual enum values for a VB.NET project. This already happens for enums that are a part of the .NET library.

Is this possible? If so, how would I need to comment my enums to get this to happen?

3 Answers

In case someone else finds this and has the same problem...

This doesn't work when you assing values like this, only the first summary will be shown.

''' <summary>
''' Overall description
''' </summary>
Public Enum Foo AS Integer
    ''' <summary>
    ''' Specific value description
    ''' </summary>
    First = 0
    ''' <summary>
    ''' Does not show up!
    ''' </summary>
    Second = 1
End Enum

Just add an empty row before every new summary and it works:

''' <summary>
''' Overall description
''' </summary>
Public Enum Foo AS Integer
    ''' <summary>
    ''' Specific value description
    ''' </summary>
    First = 0

    ''' <summary>
    ''' Does now show up!
    ''' </summary>
    Second = 1
End Enum
Related