阅读背景:

在内存使用/性能方面,我的自定义类中是否具有System.Exception类型的属性?

来源:互联网 

in my ASP.NET application, I am creating a new class to handle errors in my application and send them to a webservice which will save it in a table.Is there anything wrong in having a Property of type System.Exception class, in my new class ? Currently i have properties like "MethodName","ClassName","InnerException","StackTrace".When an error occurs in my app,I create an object of this class and set the properties and call the save method.Now i am thinking about eliminating the 3 properties and create a property called "Exception" of type Exception.so that i can read the exception details within that classin my ASP.NET application, I am creating a new




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: