|
-
May 1st, 2006, 10:51 PM
#1
Thread Starter
Arabic Poster
[RESOLVED] Tooltip description
Hey all,
I was wondering "how can I set tooltip description for my methods and vars like .NET ready classes?"
another thing, what's "3.0/LINQ"?
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
May 1st, 2006, 10:57 PM
#2
Re: Tooltip description
Use the XML comments to create tooltips for your functions and classes.
If you put /// on top of a function or class name, it should auto-generate some fields for you.
Here's an example.
Code:
/// <summary>
/// Provides the ability to seek on the internal buffer
/// as well as both the Reader and Writer.
/// </summary>
/// <param name="offset">The new position within the stream, relative to the location. This can be positive or negative</param>
/// <param name="loc">The seek reference point.</param>
public void Seek(long offset, SeekOrigin loc)
{
ms.Seek(offset, loc);
}
Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.
-
May 1st, 2006, 10:57 PM
#3
Re: Tooltip description
You need to add XML comment blocks to your property and method declarations and then enable the XML documentation file in the project properties under Build -> Output. Place your cursor before or above a declaration, type three slashes and hit enter. Voila.
C# 3.0 is the version of the C# language that will be released to coincide with version 3.0 of the .NET Framework. LINQ is what MSDN says it is. MSDN is the first place to go for any query relating to Microsoft development.
http://msdn.microsoft.com/vcsharp/future/default.aspx
-
May 1st, 2006, 11:08 PM
#4
Thread Starter
Arabic Poster
Re: Tooltip description
So, does that mean that it's not doable in VB?
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
May 1st, 2006, 11:27 PM
#5
Re: Tooltip description
In VB you use three single quotes instead of three slashes. The functionality is built into VB 2005 but VB.NET 2003 requires a plug-in. You also don't need to specify a documentation file in VB. It automatically creates MyApp.xml where MyApp.exe would be your assembly. Note that you can also use a tool like NDoc to generate MSDN-style help files for your assemblies from these XML files. You'd normally only do that for libraries though.
-
May 1st, 2006, 11:28 PM
#6
Thread Starter
Arabic Poster
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|