Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2015 IntelliSense: Exceptions Thrown not Previewed

I just upgraded to VS 2015 Enterprise Edition and am working with C#.

In VS 2013 I was able to add XML Exception tags to my methods and when trying to use that method I would see a preview of what Exceptions could be thrown.

However, in VS 2015 when I hover over my method call, or try to make the call I get no preview of what Exceptions can be thrown.

How can I make VS 2015 show what exceptions can be thrown by methods?

Below is my test class.

Thank you.

VS 2013

enter image description here

VS 2015

enter image description here

like image 936
Michael A. Avatar asked Aug 03 '15 16:08

Michael A.


2 Answers

You could use this kind of summary instead

    /// <summary>
    /// throws <exception cref="MyException">MyException</exception>
    /// </summary>
like image 124
Boris Sokolov Avatar answered Oct 14 '22 18:10

Boris Sokolov


This issue has been resolved in Visual Studio 2015 Update 1.

You can download it here.

like image 30
Michael A. Avatar answered Oct 14 '22 19:10

Michael A.