Link to home
Create AccountLog in
Avatar of PoeticAudio
PoeticAudio

asked on

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.")
ASKER CERTIFIED SOLUTION
Avatar of AdGroot
AdGroot

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of SmithJW
SmithJW

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.