Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Is there a way to put intellisense documentaiton into home made custom classes?

 

For example, looking at myhashTable.add gives the comment "adds an element with the specefied key and value..." in addition to the function defenition. Further, and this would be a huge bonus, the ability to give parameter descriptions as the user types them in. Just like for the .Net classes, only in a custom class.

Posted

Yah! And that's the coolest part !

In C# (don't know in VB.NET) you just have to type three time "/" before a function or a method and you'll have an XML comment. Just add comments to the right place and LIFT OFF !

"If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown

"Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me

"A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend.

C# TO VB TRANSLATOR

  • Administrators
Posted

If you are using C# then you can provide XML documentation using a variant of the c-style // comment.

 

i.e.

	/// 
	/// Returns a pointless string
	/// 
	/// Parameter to personalise the rubbish returned
	/// Utter junk is returned
	private string HelloWorld(string name)
	{
	return "Hello " + name;
	}

 

also if you are building a classlibrary then rummage in the project properties - there is an optioin to generate a XML file that can then be used by the IDE to provide tool tips between projects and cal also be used with NDoc to produce help files.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

what about vb?

 

I've been doing some more searching for a possible solution in VB.net and I found a forum that mentions '@ as a way to do this xml documentation. Can anyone verify this?

 

Also, and this may be the only real solution, Microsoft has a program that will do this. I'm not sure how it works but I am investigating...

Posted

How does it work?

 

I've gotten the intelisensing to work for my dll and I have created an xml document by the same name, mylib.xml.

 

How does the IDE know where to find the xml? If I wanted to give this dll to a fellow developer, for them to have the intellesense they would need the .xml file also?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...