How do I show a description of my method in intellisense?

I am trying to show a description of a method in intellisense, but it's not working for me. I am trying:

using System.EnterpriseServices;

.
.
.

[Description("Description for method")]
public void Method()
{
    ...etc
}


I don't have any errors or anything, but no description comes up when I access this method via intellisense (like if you do MessageBox.Show you see a description that says "Displays a message box in front of the specified object and with the specified text.")
LVL 6
PoeticAudioAsked:
Who is Participating?
 
AdGrootCommented:
try this

    /// <summary>
    /// This is the class Test
    /// </summary>
    class Test
    {
        /// <summary>
        /// Use Foo with param bar
        /// </summary>
        /// <param name="bar">bsr is of type string</param>
        static public void Foo(string bar)
        {
        }
    }

Ad
0
 
SmithJWCommented:
the [Description] style tag you where using originally, appears to be of the format used for specifying properties on a custom Control.
For example, you can use
[System.ComponentModel.Browsable(false)]
to specify that a property will be invisible to the properties viewer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.