Visual Studio:代码分析器,以确定方法可以引发哪些异常? [英] Visual Studio: Code analyzer to determine what exceptions a method can throw?

查看:91
本文介绍了Visual Studio:代码分析器,以确定方法可以引发哪些异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于Java的一件好事,也是一个诅咒,是您总是知道方法可能会抛出什么异常。

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?


能够键入 /// 并让xml文档声明部分自动填写< exceptions>

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


推荐答案

如果您使用Resharper,则可以使用以下插件:
http://code.google.com/p/agentjohnsonplugin/

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

这篇关于Visual Studio:代码分析器,以确定方法可以引发哪些异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆