摘要: Q-->question A-->answer M-->mention The Chapter 10th Event M:定义一个事件成员意味着=> 1.类型的静态方法或者对象的实例方法可以订阅类型事件 2.类型的静态方法或者对象的实例方法可以注销类型事件 3.事件发生时通知已订阅事件的方法 CLR的事件模型建立在委托(delegate)之一机制之上... 阅读全文
posted @ 2007-06-08 16:17 晓木 阅读(150) 评论(0) 推荐(0) 编辑
摘要: What's the weather like? When is the most convenient time for you? Whatever you think is fine with me. 阅读全文
posted @ 2007-06-08 16:14 晓木 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Q-->question A-->answer M-->mention The Chapter 9 Property M:===>属性分两种,无参属性和有参属性(索引器),私有字段通常也是后备字段. Q:定义属性时,编译器将生成以下三项:A:1.表示get访问器的方法. 2.表示set访问器的方法. 3.位于托管程序集... 阅读全文
posted @ 2007-06-07 17:55 晓木 阅读(150) 评论(0) 推荐(0) 编辑
摘要: What's the deadline? What makes you say so? What's the purpose of your visit? 阅读全文
posted @ 2007-06-07 17:53 晓木 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Q-->question A-->answer M-->mention The Chapter 8th MethodM:内联代码的优点==> 其可以使JIT编译器优化代码,移除额外的方法调用,从而提高代码运行时的性能. M:类型转换==>若需要转换为基元类型时,编译器知道如何生成转换对象的代码. M:CRL支持仅返回值不同而其他全一样的方法签名,如... 阅读全文
posted @ 2007-06-06 09:03 晓木 阅读(221) 评论(0) 推荐(0) 编辑