<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：C#和CLR的15个细节</title>
	<atom:link href="http://www.zhaoxiangpeng.com/2009/02/c%e5%92%8cclr%e7%9a%8415%e4%b8%aa%e7%bb%86%e8%8a%82/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zhaoxiangpeng.com/2009/02/c%e5%92%8cclr%e7%9a%8415%e4%b8%aa%e7%bb%86%e8%8a%82/</link>
	<description>Xiangpeng&#039;s Thinkpad</description>
	<lastBuildDate>Mon, 30 Jan 2012 04:47:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>由：草羹</title>
		<link>http://www.zhaoxiangpeng.com/2009/02/c%e5%92%8cclr%e7%9a%8415%e4%b8%aa%e7%bb%86%e8%8a%82/comment-page-1/#comment-78</link>
		<dc:creator>草羹</dc:creator>
		<pubDate>Sun, 28 Jun 2009 06:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhaoxiangpeng.com/articles/c%e5%92%8cclr%e7%9a%8415%e4%b8%aa%e7%bb%86%e8%8a%82.html#comment-78</guid>
		<description>感谢分享！</description>
		<content:encoded><![CDATA[<p>感谢分享！</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：Xiang</title>
		<link>http://www.zhaoxiangpeng.com/2009/02/c%e5%92%8cclr%e7%9a%8415%e4%b8%aa%e7%bb%86%e8%8a%82/comment-page-1/#comment-77</link>
		<dc:creator>Xiang</dc:creator>
		<pubDate>Tue, 24 Mar 2009 12:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhaoxiangpeng.com/articles/c%e5%92%8cclr%e7%9a%8415%e4%b8%aa%e7%bb%86%e8%8a%82.html#comment-77</guid>
		<description>重载某个类型C的binary operator时，要求operand至少有一个类型是C。

所以，可以写static public bool operator ==(C c, Object o);
也可以写static public bool operator ==(Object o, C c)
但这两个函数不能同时使用，
否则会编译错误：The call is ambiguous between the following methods or properties

一般而言，binary operator的重载都是用在同一类型之间，比如Matrix x, y; if (x==y)...。</description>
		<content:encoded><![CDATA[<p>重载某个类型C的binary operator时，要求operand至少有一个类型是C。</p>
<p>所以，可以写static public bool operator ==(C c, Object o);<br />
也可以写static public bool operator ==(Object o, C c)<br />
但这两个函数不能同时使用，<br />
否则会编译错误：The call is ambiguous between the following methods or properties</p>
<p>一般而言，binary operator的重载都是用在同一类型之间，比如Matrix x, y; if (x==y)&#8230;。</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：acel</title>
		<link>http://www.zhaoxiangpeng.com/2009/02/c%e5%92%8cclr%e7%9a%8415%e4%b8%aa%e7%bb%86%e8%8a%82/comment-page-1/#comment-76</link>
		<dc:creator>acel</dc:creator>
		<pubDate>Tue, 24 Mar 2009 05:53:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhaoxiangpeng.com/articles/c%e5%92%8cclr%e7%9a%8415%e4%b8%aa%e7%bb%86%e8%8a%82.html#comment-76</guid>
		<description>我在想,第10条为什么不是对装有Nullable的Object重载==,而一定要修改clr呢.

void M(Object o) {
  if (o=null) {Bar();}
}
void F() {
  int? x = null;
  M(x);
}</description>
		<content:encoded><![CDATA[<p>我在想,第10条为什么不是对装有Nullable的Object重载==,而一定要修改clr呢.</p>
<p>void M(Object o) {<br />
  if (o=null) {Bar();}<br />
}<br />
void F() {<br />
  int? x = null;<br />
  M(x);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：Xiang</title>
		<link>http://www.zhaoxiangpeng.com/2009/02/c%e5%92%8cclr%e7%9a%8415%e4%b8%aa%e7%bb%86%e8%8a%82/comment-page-1/#comment-75</link>
		<dc:creator>Xiang</dc:creator>
		<pubDate>Sun, 22 Feb 2009 06:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhaoxiangpeng.com/articles/c%e5%92%8cclr%e7%9a%8415%e4%b8%aa%e7%bb%86%e8%8a%82.html#comment-75</guid>
		<description>@季庄新闻

Jeffrey同学每年都来一次，他现在是专职咨询培训。：）</description>
		<content:encoded><![CDATA[<p>@季庄新闻</p>
<p>Jeffrey同学每年都来一次，他现在是专职咨询培训。：）</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：季庄新闻</title>
		<link>http://www.zhaoxiangpeng.com/2009/02/c%e5%92%8cclr%e7%9a%8415%e4%b8%aa%e7%bb%86%e8%8a%82/comment-page-1/#comment-74</link>
		<dc:creator>季庄新闻</dc:creator>
		<pubDate>Sun, 22 Feb 2009 03:49:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhaoxiangpeng.com/articles/c%e5%92%8cclr%e7%9a%8415%e4%b8%aa%e7%bb%86%e8%8a%82.html#comment-74</guid>
		<description>好啊。虽然现在不太做C#的东西，但再用时会记着来到这儿找一些指点和窍门:)

是看Jeffrey Richter的视频还是他亲自到北京授课？Windows开发的大牛人啊。</description>
		<content:encoded><![CDATA[<p>好啊。虽然现在不太做C#的东西，但再用时会记着来到这儿找一些指点和窍门:)</p>
<p>是看Jeffrey Richter的视频还是他亲自到北京授课？Windows开发的大牛人啊。</p>
]]></content:encoded>
	</item>
</channel>
</rss>

