似乎并非所有 Xml 注释都显示在 Intellisense 中,但也许我做得不对?无论如何,我正在努力使枚举列表中的各个枚举成员以智能感知方式显示并带有描述性文本。例如,在 String.Split 方法中,第三个重载将 StringSplitOptions 枚举作为参数,如下所示:
替代文字 http://www.freeimagehosting.net/uploads/a138d36615.jpg
在我尝试过的其他事情中:
public enum ErrorTypeEnum
{
/// <summary>The process could not identify an agency </summary>
BatchAgencyIdentification // Couldn't identify agency
/// <summary>The batch document category was invalid.</summary>
, BatchInvalidBatDocCatCode // Anything other than "C"
/// <summary>The batch has no documents.</summary>
, BatchHasNoDocuments // No document nodes
...
上面的示例确实有效,但仅适用于第一个枚举,而不适用于其他任何枚举。
我做错了什么?