摘要: using System;using System.Runtime.Serialization;using System.Security.Permissions;namespace GenericException{ [Serializable] public sealed class Exception<TExceptionArgs> : Exception, ISerializa... 阅读全文
posted @ 2012-08-22 23:24 HelloWorld.Michael 阅读(228) 评论(0) 推荐(0)
摘要: 在try块中的代码(或者从try块调用的任何方法)抛出异常,CLR将搜索捕捉类型与抛出的异常相同(或是它的基类)的catch块。如果没有任何捕捉类型与抛出的异常匹配,CLR会去调用栈的更高一层搜索一个异常匹配的捕捉类型。如果到了调用栈顶部,还是没有找到具有匹配捕捉类型的一个catch块,就会发生一个未处理的异常。 一旦CLR找到一个具有匹配捕捉类型的catch块,就会执行内层所有的finally... 阅读全文
posted @ 2012-08-22 23:21 HelloWorld.Michael 阅读(112) 评论(0) 推荐(0)
摘要: [ComVisible(true)] [Serializable] public enum StringComparison { CurrentCulture, CurrentCultureIgnoreCase, InvariantCulture, InvariantCultureIgnoreCase, ... 阅读全文
posted @ 2012-08-22 21:04 HelloWorld.Michael 阅读(782) 评论(0) 推荐(0)