Syntax for adding description attributes with .NET

Status
Not open for further replies.

russ-iha

Ars Praefectus
4,407
Subscriptor
I am trying to comment my code with description attributes.... i.e. if my function is "Func1(param1 as string, param2 as integer)"

When someone types Func1( into the editor, I want it to pop up with a tooltip that doesn't just show the parameters and types, but also adds the description below it "param1 should be blah", etc.


I think this type of self-documented code is done via some sort of attribute, but I just cannot find any good information about it in the Microsoft docs.
 

Deniro

Ars Scholae Palatinae
711
Subscriptor++
I read something about this, but didn't go to deep as I wasn't doing it at the time. I'll try to look again at work tomorrow, but for now try MSDN and search on 'metadata'.
Here is a link, if it works, for one of the pages. Hopefully you can get to other pages from it, but it's a start hopefully.
MSDN Link
Here is another one.
I haven't tried these, as I don't have VS .Net here, but I'll look at them tomorrow to see if they are in the right direction.
 
Status
Not open for further replies.