We help IT Professionals succeed at work.

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

PoeticAudio
PoeticAudio asked
on
Medium Priority
240 Views
Last Modified: 2010-04-16
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.")
Comment
Watch Question

Commented:
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Commented:
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.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.