Click to See Complete Forum and Search --> : tooltip description for functions?
MrPolite
Feb 8th, 2004, 12:44 AM
umm I dont do C# often (or dont know much C# to be more correct:D )... I'm wondering what these comments mean:
/// <summary>
/// Summary description for Effects.
/// </summary>
are they used only for making documentations and such? how would I show tooltip descriptions for my function and its variables?
axion_sa
Feb 8th, 2004, 03:48 AM
Exactly like that :) Adding <param name="blah">[Description</param> elements will add the description of your parameters in the tooltip
MrPolite
Feb 8th, 2004, 11:45 AM
hmm... I'm writnig this in C# and then using it in vb. but apparently none of the comments that I write this way show in the tooltips:confused:
hellswraith
Feb 8th, 2004, 02:18 PM
They should. First, create your method. Then, right above the method, type ///
This will automatically create the xml for you to fill in.
Then, it should show up just fine in the IDE intellisense.
MrPolite
Feb 8th, 2004, 02:23 PM
/// <summary>
/// something here
/// </summary>
public static void foo()
{}
I don't know what I'm doing wrong. I have a C# project ,and in the same solution another project in VB. I'm referencing the C# project correctly too. :confused: shows any changes that I make to the C# project, but wont show any of the xml text. It only shows the function signature in the tooltip. If I type the function name in the C# project however, it shows the tooltip correctly with all the xml info that I typed. But it isnt working in VB :confused:
hellswraith
Feb 8th, 2004, 05:10 PM
Try compiling the C# project with the comments in it.
Then, go into the vb project and try again. I wonder if the IDE will only pick them up from a compiled DLL when in VB mode?...
MrPolite
Feb 8th, 2004, 05:13 PM
hmm not working:( I even tried adding the dll to another project:confused:
hellswraith
Feb 8th, 2004, 05:18 PM
I can't get it to work either right now. I didn't try all the variations though, and I know there is a way to get the to show in VB, I thought I have done it before. Maybe I was mistaken.
MrPolite
Feb 8th, 2004, 05:19 PM
Originally posted by hellswraith
I can't get it to work either right now. I didn't try all the variations though, and I know there is a way to get the to show in VB, I thought I have done it before. Maybe I was mistaken. err I dotn understand why MS wont make C# and VB like each other:D
anyways, vs.net 2004 will have this feature for visual basic as well, right? :rolleyes:
Pirate
Feb 8th, 2004, 09:39 PM
Originally posted by MrPolite
anyways, vs.net 2004 will have this feature for visual basic as well, right? :rolleyes:
Yes .
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.