创建异常处理的通用方法 [英] Create Generic method for exception handling
本文介绍了创建异常处理的通用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我需要为异常处理创建泛型方法,这个方法可以用于多个文件处理异常,
i need to create generic method for exception handling, this method can be use to multiple files for handling the exceptions,
可以帮助我。
谢谢,
Jyotsna
推荐答案
https://msdn.microsoft.com/en-us/library/system.exception.getbaseexception(v = vs.110)的.aspx
创建一个基本抽象类并从中派生一个类......
Make a base abstract class and derive a class from it...
这篇关于创建异常处理的通用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文