Is there any way to diaplay description of a function as tooltip for a userdefined function C#
-
I have a Class Library in which i have lot many functions to implement my service but the problem is maximum of functions are Having similar names and similar parameters etc. when i want to use any of these functions i am some what confused which one is the one which exactly i shoould use. So is there any way to "Provide the Description of the function" along with the Prototype of the function which comes as default due to intellisence of MicroSoft. I tried the [Description("xgdfgdfg")] attribute above the function defination but no use. Can any body know how to get the user defined description for a function Thanks in Advance.
-
I have a Class Library in which i have lot many functions to implement my service but the problem is maximum of functions are Having similar names and similar parameters etc. when i want to use any of these functions i am some what confused which one is the one which exactly i shoould use. So is there any way to "Provide the Description of the function" along with the Prototype of the function which comes as default due to intellisence of MicroSoft. I tried the [Description("xgdfgdfg")] attribute above the function defination but no use. Can any body know how to get the user defined description for a function Thanks in Advance.
-
Hi, just type /// before your function name , VS will then build some 'comments tags' you just have to fill. such as /// /// my summary for intellisens /// /// my param descr. for intellisens Hope it helps
-
Hi, just type /// before your function name , VS will then build some 'comments tags' you just have to fill. such as /// /// my summary for intellisens /// /// my param descr. for intellisens Hope it helps
-
I have a Class Library in which i have lot many functions to implement my service but the problem is maximum of functions are Having similar names and similar parameters etc. when i want to use any of these functions i am some what confused which one is the one which exactly i shoould use. So is there any way to "Provide the Description of the function" along with the Prototype of the function which comes as default due to intellisence of MicroSoft. I tried the [Description("xgdfgdfg")] attribute above the function defination but no use. Can any body know how to get the user defined description for a function Thanks in Advance.
What you are looking for is known as XML comments. They provide a lot of documentation possibilities for you code. You can look on MSDN or Google for "Xml comments" and find a lot of information about them. The
Description
attribute is a runtime concept and doesn't have any affect on the Visual Studio IDE.Scott.
—In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]