博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页

2012年11月17日

摘要: 在上一篇文章CLR怎样实现虚方法的多态调用(1)中主要介绍了CLR怎样多态调用虚方法以及各种类型的方法在Method Table中的排布,但是没有介绍怎样调用接口方法,当某个对象向上转型为接口时进行多态调用时,CLR是怎样实现的呢?以下面这段代码为例来说明:namespace Demo{ public interface IFoo { void Foo(); } public class Base : IFoo { public void Foo() { Console.WriteLine("In b... 阅读全文

posted @ 2012-11-17 13:04 qianyz 阅读(179) 评论(0) 推荐(0) 编辑

摘要: 最近一直对.net framework中,虚方法的调用是如何实现这个问题有些疑惑,在看了Essential .Net关于Method的那一章和Artech推荐的文章Drill Into .NET Framework Internals to See How the CLR Creates Runtime Objects以后,还是一知半解,有些疑惑得不到答案。主要有这些: 父类定义的非虚方法是否在子类中有拷贝? 虚方法是如何实现多态的? 子类继承父类的虚方法实现是否和继承非虚方法机制相同? 如果子类隐藏了父类的虚方法,这又是怎样实现的? 当然问题不止这么多,关于接口方面还有很多很多疑惑,不过时间 阅读全文

posted @ 2012-11-17 13:03 qianyz 阅读(264) 评论(0) 推荐(0) 编辑

摘要: http://www.cnblogs.com/lbq1221119http://www.cnblogs.com/lbq1221119/category/117125.htmlhttp://www.cnblogs.com/knightswarrior/articles/1742172.html 阅读全文

posted @ 2012-11-17 09:56 qianyz 阅读(109) 评论(0) 推荐(0) 编辑

2012年11月8日

该文被密码保护。 阅读全文

posted @ 2012-11-08 11:08 qianyz 阅读(2) 评论(0) 推荐(0) 编辑

2012年9月18日

摘要: ChannelDispatcher 字段public class ChannelDispatcher : ChannelDispatcherBase{ // Fields private ThreadSafeMessageFilterTable<EndpointAddress> addressTable; private string bindingName; private SynchronizedCollection<IChannelInitializer> channelInitializers;//通道初始化器 private CommunicationObje 阅读全文

posted @ 2012-09-18 12:40 qianyz 阅读(149) 评论(0) 推荐(0) 编辑

2012年9月12日

该文被密码保护。 阅读全文

posted @ 2012-09-12 23:16 qianyz 阅读(1) 评论(0) 推荐(0) 编辑

2012年9月4日

该文被密码保护。 阅读全文

posted @ 2012-09-04 23:54 qianyz 阅读(20) 评论(0) 推荐(0) 编辑

2012年9月3日

该文被密码保护。 阅读全文

posted @ 2012-09-03 22:16 qianyz 阅读(4) 评论(0) 推荐(0) 编辑

摘要: Windows Communication Foundation Architecture Overview 189 out of 258 rated this helpful - Rate this topicMicrosoft CorporationMarch 2006Summary: Get a high-level view of the Windows Communication Foundation (WCF) architecture and its key concepts. Code examples demonstrate WCF contracts, endpoints, 阅读全文

posted @ 2012-09-03 21:52 qianyz 阅读(190) 评论(0) 推荐(0) 编辑

2012年9月2日

该文被密码保护。 阅读全文

posted @ 2012-09-02 15:21 qianyz 阅读(5) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页