我几乎可以肯定这将是一个非常简单的答案,但我似乎找不到它的任何地方。我们都知道当你将鼠标悬停在某个东西上时(比如一个字符串),会弹出一个小总结(如果已启用)。对于字符串,它会显示:
class System.String
表示文本为一系列Unicode字符。
当我将鼠标悬停在我的其中一个类上时,它只是显示:
class Namespace.Widget
我已经尝试了我找到的两个明显的例子:
/// <summary>
/// This summary does not work, I know it's for html documenting tools but thought it was worth a shot.
/// </summary>
并且:
// Summary:
// This is what is in some of the base libraries, and does not work as well.
那么,我如何在鼠标悬停时添加摘要?