Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is there anything is asp.net for documenting classes like javadoc

Status
Not open for further replies.

mit99mh

Programmer
Sep 24, 2002
246
GB
I'm sorry if post like this have appeared before but I'm new to asp.net (using vb.net) and something like the above would be useful

thanks
 
I have no clue what JavaDoc is, but I'll share what we do for comments in our classes:

In .NET you can create something called a Region. In your code behind, you basically do this:

#Region "Comments

#End Region

What this does is create an expandable node within your code that can store data! We have one for comments, one for declarations, one for properties, and one for the actual class code in each class.

This way, you can put as much documentation as you want within the class file itself, but only see it when you want to.

hth

D'Arcy
 
There is such thing, but the documentation says it is only for C#...
Well, I will go on explaining it. You can place before beginning of classes, before events, properties, methods, delegates, interfaces and namespaces some special comments, prefixed with ///. You can use some tags in this comments; they are documented in MSDN (search for "Tags for documentation comments"). Then, by using the compiler option /doc:file, you can generate the XML documentation for your project (this can be done also from your project's properties).
As I said, it is unfortunate that it works only for C#, or at least MSDN says so...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top