I've noticed that while programming sometimes a tool tip window pops up beside the selected class in the drop down window while typing. This tool tip often contains a description of the class or variable that is highlighted or selected. I was wondering how to do this for my own classes, methods, and variables. Any help is genuinely thanked.

I know how to set my variables as read only, but still confused on the description part.

Recommended Answers

All 2 Replies

Put the triple slashes /// at the top of a method or class.
When you fill out the comments sections in that "structure" you will see those descriptions when you hover your items. When you hit the third slash, the structure will appear.

Here is a simple one, but on methods, they are more complex.

/// <summary>
/// 
/// </summary>
class Program
{
}

Much thanks, I've been trying to figure that out for a while. I always wondered what the summary comments were.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.