摘要:
很多时候,大家当用到向上抛出异常的时候,常常是throw;和throw ex;随便用,从来都没有留意它们之间的区别.今天我才知道,它们之间是有区别的.原文出自:http://mattgollob.blogspot.com/2006/08/throw-vs-throw-ex-heres-difference.html. 大家先看看这个例子.classProgram{staticvoidMain(string[]args){ThrowSamplets=newThrowSample();try{ts.ThrowMethod();}catch(Exceptionex){Trace.WriteLine. 阅读全文
posted @ 2011-04-18 16:18 易风 阅读(1195) 评论(0) 推荐(1)
浙公网安备 33010602011771号