How to make Xml comments in VS 2008 work with Intellisense for enumerations?

It seems that not all Xml-Commenting appears in Intellisense, but maybe I'm not doing it right? Anyway, I'm trying to make the individual members of an enumeration in an enumeration list appear in intellisense with descriptive text. For example, in the String.Split method, the third overload takes the StringSplitOptions enumeration as a parameter, as shown here:

alt text http://www.freeimagehosting.net/uploads/a138d36615.jpg

Among other things that I tried:

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

The above example works, but only for the first listing, not for others.

What am I doing wrong?

+3
1

, . , , . , .

.

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

Source: https://habr.com/ru/post/1732440/


All Articles