كيفية جعل تعليقات XML في VS 2008 العمل مع Intellisense للحصول على تعدادات؟

StackOverflow https://stackoverflow.com/questions/2248301

سؤال

يبدو أنه ليس كل تعليق XML يظهر في Intellisense، ولكن ربما لا أفعل ذلك بشكل صحيح؟ على أي حال، أحاول أن أحصل عليه حتى تظهر أعضاء التعداد الفردي في قائمة التعداد الاحتياجات الخاصة بالصفة الوصفية. على سبيل المثال، في طريقة السلسلة.Split، يأخذ التحميل الزائد الثالث تعداد Stringsplittions كمعلمة، كما هو موضح هنا:

نص Alt 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
...

المثال أعلاه يعمل، ولكن فقط للتعداد الأول، وليس أي آخرين.

ما أقوم به خطأ؟

هل كانت مفيدة؟

المحلول

لديك الفكرة الصحيحة، لكن وضع الفاصلة الخاص بك هو شدها. للحصول على عرض للعودة الفردية، ضعها بعد الفواصل، وليس من قبل. قد ترغب في وضع فواصل في نهاية كل سطر بدلا من البداية في هذه الحالات.

على سبيل المثال

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 
... 
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top