XML Comments - Exceptions Not Displayed in Intellisense

I have a method that throws an exception in the namespace: MyApp.Domain. I have some of my custom namespace exceptions: MyApp.Domain.Exceptions. So, I have the following:

using MyApp.Domain.Exceptions
using System;

namespace MyApp.Domain
{
    public class SomeClass
    {
        ///<summary>This method does some stuff</summary>
        ///<exception cref="MyCustomExeption">MyCustomException if x</exception>
        ///<exception cref="Exception">GenericException if y</exception>
        public void DoStuff(){

            //Does stuff

        }
    }
}

I get my resume with intellisense, but not an exception. Should I use include and create an external xml comment file as they are under different namespaces? None of the exceptions appear in intellisense, mycustomexception, or system.exception.

Thanks.

+4
source share
1 answer

Exception , , .

, u , , <para>

     /// <summary>
    /// this is my method for date convert        
    /// <para>Exception:</para>
    /// Exception - this will appear as soon as you started typing the method name and method over.
    /// </summary>
    /// <exception cref="Exception"></exception> 

, , .

, , . .

+4

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


All Articles