方法来自动看看哪些功能可以在C#中可能返回异常 [英] Way to automatically see which functions can potentially return exception in c#

查看:115
本文介绍了方法来自动看看哪些功能可以在C#中可能返回异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没有什么更令人沮丧的比看到在该组织exceptionned的方法调试您的code崩溃,你没有尝试/捕获它。

nothing more frustrating than to see your code crash in the debugger on a method which exceptionned and you didn't try/catch it.

有没有一种简单的方法,通过你的源代码扫描和标记所有功能,这可能会抛出异常?

Is there an easy way to scan through your sources and tag all functions which can potentially throw exceptions?

在是否视觉构建协助有一些隐藏的选项中的特定颜色上色这些功能呢?

Does the build in visual assist have some hidden option to colour these functions in a specific color?

感谢

研究

推荐答案

我觉得展鹏有一些工具对于这种异常猎人
他们试用后收费了。

I think redgate have some a tool for this "Exception Hunter" They charge for it after a trial.

http://www.red-gate.com/products/ Exception_Hunter / index.htm的

这篇关于方法来自动看看哪些功能可以在C#中可能返回异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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