473,396 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

.NET[2.0] How to add comments to my own classes in my DLLS?

1
Hi all,
How can I add comments to my own classes in my DLLS?
e.g
When you are coding and use one of microsofts functions/properties in one of the .net framework classes, each param of the function has a comment tooltip in intellisense that describes it, but when you make your own class, there is no such place to do something like this.

So how to implement this in c#.net 2.0 ? please give me solution.
Thanks in advance.

Suraj
Apr 12 '08 #1
2 1155
balame2004
142 100+
Hi all,
How can I add comments to my own classes in my DLLS?
e.g
When you are coding and use one of microsofts functions/properties in one of the .net framework classes, each param of the function has a comment tooltip in intellisense that describes it, but when you make your own class, there is no such place to do something like this.

So how to implement this in c#.net 2.0 ? please give me solution.
Thanks in advance.

Suraj

Hi Suraj,

You can use Summary tag to describe your classes/class members.

Eg:

Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3. /// <summary>
  4.     /// Summary description for Class1.
  5.     /// </summary>
  6.     public class Man
  7.     {
  8.         /// <summary>
  9.         /// private variable name.
  10.         /// </summary>
  11.         private string name;
  12.  
  13.         /// <summary>
  14.         /// private variable age
  15.         /// </summary>
  16.         private int age;
  17.  
  18.         /// <summary>
  19.         /// 
  20.         /// </summary>
  21.         public Man()
  22.         {
  23.             //
  24.             // TODO: Add constructor logic here
  25.             //
  26.         }
  27.  
  28.         /// <summary>
  29.         /// Name of a man.
  30.         /// </summary>
  31.         public string Name 
  32.         {
  33.             get
  34.             {
  35.               return this.name;
  36.             }
  37.             set
  38.             {
  39.                 this.name=value;
  40.             }
  41.         }
  42.  
  43.  
  44.         /// <summary>
  45.         /// Sets age of a man.
  46.         /// </summary>
  47.         /// <param name="age">Age - Number</param>
  48.         public void SetAge(int age)
  49.         {
  50.             this.age=age;
  51.         }
  52.     }
  53.  
  54.  

Cheers,
Balaji U
Apr 14 '08 #2
Plater
7,872 Expert 4TB
If you start out on the line ABOVE the item you want to comment, and hit the "/" three times, it should attempt to auto-generate a template for adding comments to the object.

For instance if I have this:
Expand|Select|Wrap|Line Numbers
  1. protected ArrayList SearchIT(string query)
  2.  
And I hit "/" three times on the line above it, I get:
Expand|Select|Wrap|Line Numbers
  1. /// <summary>
  2. /// 
  3. /// </summary>
  4. /// <param name="query"></param>
  5. /// <returns></returns>
  6. protected ArrayList SearchIT(string query)
  7.  
Apr 14 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Jim Hubbard | last post by:
Assuming Microsoft want .Net to be the next big thing in Microsoft programming, why is the .Net Framework 1.1 an optional download on the Windows Update site? I'd think that it should be required....
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
9
by: tshad | last post by:
I have my Classes that I have built in asp.net and the Dlls go into the bin folder I need to write a service that will run on the Web service and will access Sql Server to find clients that have...
27
by: Raymond | last post by:
They say it's easier, but has anyone tried maintaining an ASP.NET site without the source code of the dlls? This was not a problem with classic ASP, all the code was almost always just in text...
4
by: Gary Bond | last post by:
Hi All, Can anybody point me to some 'how-to' documentation, tutorials, etc as to how to write a shrink/protect wrapper for .Net exes/dlls, (like the Shrinkwrap product for instance). I have...
3
by: jason | last post by:
Please pardon my completely lack of understanding on the topic. I have a website I developed with another developer. We are both far from experts in VB.NET and OOP. We developed the site WITHOUT...
98
by: tjb | last post by:
I often see code like this: /// <summary> /// Removes a node. /// </summary> /// <param name="node">The node to remove.</param> public void RemoveNode(Node node) { <...> }
12
by: Ron M. Newman | last post by:
Hi, I can load an assembly using the Assembly.Load(....) However, I'd like dynamic loading of assemblies to be identical to putting an assembly reference in your VS2005 project. and yes, I...
0
by: shamirza | last post by:
· When was .NET announced? Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.