Visual Studio: Code analyzer to determine what exceptions a method can throw?

这一生的挚爱 提交于 2019-12-22 08:01:09

问题


One nice thing about Java, which was also a curse, is that you always knew what exceptions a method could throw.

Is there a static code analysis tool that can determine what exceptions a method can throw?

It would be great to be able to type /// and have the xml documentation declaration section fill in the <exceptions> block automatically


回答1:


If you use Resharper, you can use this plugin: http://code.google.com/p/agentjohnsonplugin/



来源:https://stackoverflow.com/questions/4359465/visual-studio-code-analyzer-to-determine-what-exceptions-a-method-can-throw

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!