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

标签 c# visual-studio exception code-analysis

关于 Java 的一个好处,也是一个诅咒,就是你总是知道一个方法可以抛出什么异常。

是否有静态代码分析工具可以确定方法可以抛出哪些异常?

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/

关于c# - Visual Studio : Code analyzer to determine what exceptions a method can throw?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4359465/

相关文章:

c# - 之间的区别!和 ~ 在 C# 中

c# - 将流程标准输出连接到另一个流程标准输入

c# - 数组是否实现了 IEnumerable<T>?

c# - 如何调试我创建的 NuGet 包中的代码

visual-studio - 升级到3.4后,NuGet无法找到/下载软件包

python - 为什么在我排除之后不能调用异常?

c# - 如何生成没有头部的xml文件

visual-studio - 有什么方法可以在您关闭文档时自动折叠到定义?

c++ - boost::asio 暂停时抛出异常

python - 当 URL 存在时,与 Django 进行 NoReverseMatch