﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-在路上的牛-随笔分类-C#语言</title><link>http://www.cnblogs.com/liaofan/category/128067.html</link><description>永远在路上......</description><language>zh-cn</language><lastBuildDate>Mon, 24 Mar 2008 12:25:52 GMT</lastBuildDate><pubDate>Mon, 24 Mar 2008 12:25:52 GMT</pubDate><ttl>60</ttl><item><title>C#3.0中的“多重继承”</title><link>http://www.cnblogs.com/liaofan/archive/2008/03/24/1120130.html</link><dc:creator>在路上的牛</dc:creator><author>在路上的牛</author><pubDate>Mon, 24 Mar 2008 11:48:00 GMT</pubDate><guid>http://www.cnblogs.com/liaofan/archive/2008/03/24/1120130.html</guid><wfw:comment>http://www.cnblogs.com/liaofan/comments/1120130.html</wfw:comment><comments>http://www.cnblogs.com/liaofan/archive/2008/03/24/1120130.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/liaofan/comments/commentRss/1120130.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/liaofan/services/trackbacks/1120130.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要:     C#不支持多继承，只支持多接口实现，这在某些情况下带来了一些不便。现在在C#3.0中，我们可以利用C#3.0的扩展方法来实现一个“受限的多继承”。<br>   C#3.0中引入了扩展方法，可以利用一个静态类的静态方法为一个类或者接口添加方法，关键是：添加的方法是包含实现的，由此我们可以在C#3.0中为接口提供一个带实现的方法声明，而无需额外的实现类。如果一个类实现了多个这样的接口，就可以达到类似多继承的效果。<br>&nbsp;&nbsp;<a href='http://www.cnblogs.com/liaofan/archive/2008/03/24/1120130.html'>阅读全文</a><img src ="http://www.cnblogs.com/liaofan/aggbug/1120130.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://liaofan.cnblogs.com/" target="_blank">在路上的牛</a> 2008-03-24 19:48 <a href="http://www.cnblogs.com/liaofan/archive/2008/03/24/1120130.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>