问题描述
我刚刚升级到 VS 2015 企业版,正在使用 C#.
I just upgraded to VS 2015 Enterprise Edition and am working with C#.
在 VS 2013 中,我能够将 XML 异常标记添加到我的方法中,并且在尝试使用该方法时,我会看到可以抛出哪些异常的预览.
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.
但是,在 VS 2015 中,当我将鼠标悬停在方法调用上或尝试进行调用时,我无法预览可以抛出哪些异常.
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.
如何让 VS 2015 显示方法可以抛出哪些异常?
How can I make VS 2015 show what exceptions can be thrown by methods?
下面是我的测试课.
谢谢.
VS 2013
VS 2015
推荐答案
此问题已在 Visual Studio 2015 Update 1 中解决.
This issue has been resolved in Visual Studio 2015 Update 1.
你可以下载它这里.
这篇关于VS 2015 IntelliSense:未预览抛出的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!