Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I was just wondering if there is a way to put information in the tool tip that appears when you are typing the param list for an overloaded method when you are the one writing the overloaded method.

 

eg.

 

       public void Move(Point pos)
       {
           iSpriteX = pos.X;
           iSpriteY = pos.Y;
       }

       public void Move()
       {
           Move(new Point(iSpriteX + iSpeedX, iSpriteY + iSpeedY));
       }

 

Is there a way to put a description of the variable at the bottom of the tooltip, as seen in most .NET overloads?

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Posted

Assuming you mean what I think this can be achieved by typing three slashes (///) before a method... this will automatically make the following appear.

/// <summary>
/// What method does
/// </summary>
/// <param name="myParam">What parameter is</param>
/// <returns>what the method returns</returns>
public string MyMethod(string myParam)
{
}

Anybody looking for a graduate programmer (Midlands, England)?
Posted
Okay, that's exactly what I was talking about. Is there a way to do this with Visual Basic?

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Posted

In VS2005 you can now use ''' the same way /// is used in C#.

 

If you're using VS2003, you need to use an external tool, either a VS add-in or VBCommentor

 

Don't forget that you can also use NDoc to createa sweet looking API for your libraries if you want to as well.

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...