IF possible, how do you put comments on your NEW class constructors so that when you call them via code, they display info on what the constructor does
Printable View
IF possible, how do you put comments on your NEW class constructors so that when you call them via code, they display info on what the constructor does
I think you can add comments/summary fields to classes (maybe functions) like shown in the object browser, by using attributes. Im looking up how to do it myself out of interest, but my help file is playing up. If you work it out before I do please tell :).
Yes you can, they are functions just like any other elese
huh? maybe you don't understand... I am talking about this
http://www.vbforums.com/attachment.p...postid=1739913
Not natively in VB, but you can in C# and J#.
There are third party tools that can do it for you in VB, or you can create the XML file that contains the information yourself. Just make something in C# and copy it for what you need int VB. I think the XML file needs to be in the same folder as the assembly and it should work.
why would they put the functionality in C# but not in VB, that is just another reason for people to bash VB still :mad:
I dunno. I believe that it will be available in 2005.Quote:
Originally posted by kleinma
why would they put the functionality in C# but not in VB, that is just another reason for people to bash VB still :mad:
ok im quitting coding until then ;)
I would if I were you.
:)
Hi.
Look for a program called XMLComments on MSDN.
After you have compiled your DLL you can open it with this program and add all the comments. This is saved as an XML file that you need to place in the same dir as the DLL.
Note: this will, of course, only work with references DLL's and not classes from the same project.
thanks ill check it out when i resume programming in 2 years :D