How can I display the description of tag <Exception> in Visual Studio?

Viewed 134
 public class TestClass
        {
            /// <summary>
            /// Do my work
            /// </summary>
            /// <exception cref="ArgumentNullException">This is a Description</exception>
            public static void DoWork()
            {
                //do my work
            }
        }
TestClass.DoWork();

How do I display text "This is a description" in "Quick Info" when I hover over a method?

Test class picture

Test class call picture

1 Answers

You could try the following comment to get what you wanted.

public class TestClass
    {
        /// <summary>
        /// Do my work
        /// </summary>
        /// <exception cref="This is description"></exception> 
        public static void DoWork()
        {
            //do my work
        }
    }

Result:

enter image description here

Related