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

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

问题描述

没有什么比看到您的代码在调试器中崩溃的方法更令人沮丧的方法异常,你没有尝试/抓住它。



有一个简单的方法扫描您的源码并标记所有可能引发异常的函数?



视觉辅助中的构建是否具有某些隐藏的选项,可以以特定的颜色对这些函数进行着色? / p>

谢谢



R

解决方案

我认为redgate有一个这个异常猎人的工具
他们在审判后为它们收费。



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


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?

thanks

R

解决方案

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天全站免登陆