<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/hustorochi" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/hustorochi" type="application/rss+xml"></fs:self_link><lastBuildDate>Sat, 06 Jun 2009 19:26:00 GMT</lastBuildDate><title>来自 hustorochi 的技术专栏</title><description>讨论 Windows 未来技术和应用的技术博客。</description><link>http://blog.csdn.net/hustorochi/</link><item><title>给出下面代码的执行结果?</title><link>http://blog.csdn.net/hustorochi/archive/2009/06/06/4247929.aspx</link><wfw:comment>http://blog.csdn.net/hustorochi/comments/4247929.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hustorochi/comments/commentRss/4247929.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4247929</trackback:ping><description>这段代码是有关引用类型和值类型的问题，同时涉及到 Equals, ReferenceEquals 的问题。这个问题如果大家清楚的话，就不难理解我下面要说的一个事情。  如果大家仔细研究过 Dictionary，就知道 Dictionary 需要一个 KeyValuePair 作为方法 Add 的参数。那问题是：KeyValuePair 是值类型还是引用类型呢？  答案是值类型，这个设计是正确的。  在弄清楚这个问题之前，我们先看下面的代码，请大家给出这段代码在每个 Console.WriteLine() 调用时的输出结果。  using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Globalization;namespace Demo{    class Program    {        static void Main(string[] args)        {            KeyV&lt;img src =&quot;http://blog.csdn.net/hustorochi/aggbug/4247929.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/236625034/hustorochi/csdn.net/s.gif?r=http://blog.csdn.net/hustorochi/archive/2009/06/06/4247929.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/hustorochi/236625034/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/hustorochi/236625034/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 07 Jun 2009 03:26:00 +0800</pubDate><author>周融</author><comments>http://blog.csdn.net/hustorochi/archive/2009/06/06/4247929.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hustorochi/archive/2009/06/06/4247929.aspx</guid><dc:creator>周融</dc:creator><fs:srclink>http://blog.csdn.net/hustorochi/archive/2009/06/06/4247929.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/hustorochi/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/hustorochi/~1148621/236625034/1148608</fs:itemid></item><item><title>Visual Studio 2010 Beta 1 简介</title><link>http://blog.csdn.net/hustorochi/archive/2009/05/20/4204701.aspx</link><wfw:comment>http://blog.csdn.net/hustorochi/comments/4204701.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hustorochi/comments/commentRss/4204701.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4204701</trackback:ping><description>由于明天 Microsoft 就要公开发布 Visual Studio 2010 Beta 1 了，所以今天我才能把几个星期前安装的 Visual Studio 拿出来给大家做一个介绍。这不会违反 Microsoft Policy。  1、安装  安装过程我就不放图了。主要的变化就是自定义安装界面，默认有“C++ 开发”和“托管代码开发”两个选择；当然，用户也可以自定义安装，单击“自定义”按钮，会出现自定义安装的窗口。  在安装过程中会安装如下组件：     Microsoft .NET Framework 4.0 Client Profile    Microsoft .NET Framework 4.0 Extend    Visual Studio 2010 Team Suite    Visual Basic 10.0    Visual C# 4.0    Visual F# 1.0    Team Explorer 2010    Microsoft Test and Lab Manager 2010   这个是安装完后的程序列表。     另外，安装包大小 1.22 GB&lt;img src =&quot;http://blog.csdn.net/hustorochi/aggbug/4204701.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/236625035/hustorochi/csdn.net/s.gif?r=http://blog.csdn.net/hustorochi/archive/2009/05/20/4204701.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/hustorochi/236625035/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/hustorochi/236625035/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 21 May 2009 04:39:00 +0800</pubDate><author>周融</author><comments>http://blog.csdn.net/hustorochi/archive/2009/05/20/4204701.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hustorochi/archive/2009/05/20/4204701.aspx</guid><dc:creator>周融</dc:creator><fs:srclink>http://blog.csdn.net/hustorochi/archive/2009/05/20/4204701.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/hustorochi/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/hustorochi/~1148621/236625035/1148608</fs:itemid></item><item><title>C# 4.0 新特性 -- 命名参数和可选参数</title><link>http://blog.csdn.net/hustorochi/archive/2009/03/20/4007260.aspx</link><wfw:comment>http://blog.csdn.net/hustorochi/comments/4007260.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hustorochi/comments/commentRss/4007260.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4007260</trackback:ping><description>在 C# 2.0 时代，当我们希望用类似于 C++ 的可选参数为参数指定默认值时，会得到一个编译器错误，指示“不允许参数的默认值”。这个限制是因为在 C# 中，任何地方都引入面向对象思想，所以尽量使用重载而不是可选参数。但在 C# 4.0 中这一点得到了一些改变。  为什么需要开放命名参数和可选参数呢？这也是出于动态语言运行时兼容性的要求。动态语言中存在动态绑定的参数列表，有时候并不是所有的参数值都需要指定（有些语言可能没有重载决策）；另外，在一些 COM 互操作时，往往 COM Invoke 的方法参数列表非常的长（例如 ExcelApplication.Save，可能需要 12 个参数），但 COM 暴露的参数的实际值往往为 null，只有很少一部分参数需要指定植，如 ExcelApplication.Save()，可能不需要指定任何参数值，或者仅仅一个值，例如 fileType。这就需要 C# 的编译器能够实现下面两个特性以支持 COM 互操作的这个场景：     ref cmit - 不需要象 C# 2.0 那样使用 ref 进行 COM 参数传递，这样可以省略必要的参数声明。&lt;img src =&quot;http://blog.csdn.net/hustorochi/aggbug/4007260.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/hustorochi/236625036/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/hustorochi/236625036/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 20 Mar 2009 20:36:00 +0800</pubDate><author>周融</author><comments>http://blog.csdn.net/hustorochi/archive/2009/03/20/4007260.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hustorochi/archive/2009/03/20/4007260.aspx</guid><dc:creator>周融</dc:creator><fs:srclink>http://blog.csdn.net/hustorochi/archive/2009/03/20/4007260.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/hustorochi/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/hustorochi/~1148621/236625036/1148608</fs:itemid></item><item><title>正在升级 Visual Studio 2010 SKU</title><link>http://blog.csdn.net/hustorochi/archive/2009/03/19/4004149.aspx</link><wfw:comment>http://blog.csdn.net/hustorochi/comments/4004149.aspx</wfw:comment><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/hustorochi/comments/commentRss/4004149.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4004149</trackback:ping><description>昨天看到内网上的 DevDiv 主页上的 Visual Studio 2010 最近推荐的版本，忍不住下载了一个最新的。不过今天安装完成之后发现了一个问题，就是如果在 Visual Studio 2010 中打开多个文档时（特别是有设计器窗口），会出现屏幕重画功能不正确的问题，看下图。首先启动 Visual Studio 2010，然后在默认开始页打开的前提下，打开对象浏览器。然后用 Ctrl-Tab 来回切换窗口，发现屏幕一部分区域不会被重绘。           这个问题可能是我并行安装 Visual Studio 2008 和 2010 导致的。我曾经通过清理 Visual Studio 2010 的设置解决了这一问题，不过目前又出现了。  这就使得我原计划在今天写的关于 C# 4.0 命名和可选参数的例子延迟，由于这个 GUI 的问题，每当我在调试应用程序时，从调试状态返回正常状态时，总会有大部分屏幕还停留在原来的状态，导致我的代码在屏幕中无法正常显示。  我正在试图在一个全新版本的 Windows 7 Client Beta Build 7000 上安装 Visual Stu&lt;img src =&quot;http://blog.csdn.net/hustorochi/aggbug/4004149.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/hustorochi/236625037/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/hustorochi/236625037/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 19 Mar 2009 21:34:00 +0800</pubDate><author>周融</author><comments>http://blog.csdn.net/hustorochi/archive/2009/03/19/4004149.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hustorochi/archive/2009/03/19/4004149.aspx</guid><dc:creator>周融</dc:creator><fs:srclink>http://blog.csdn.net/hustorochi/archive/2009/03/19/4004149.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/hustorochi/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/hustorochi/~1148621/236625037/1148608</fs:itemid></item><item><title>C# 4.0 新特性 -- Contra-Variance</title><link>http://blog.csdn.net/hustorochi/archive/2009/03/17/3998885.aspx</link><wfw:comment>http://blog.csdn.net/hustorochi/comments/3998885.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hustorochi/comments/commentRss/3998885.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3998885</trackback:ping><description>在上面的几篇文章中，我们介绍了有关数组的 Variance、接口和委托的 Covariance 的概念和基本用法。本文介绍在 Variance 上的另外一种情况，即 Contra-variance。  Contra-variance 是一种将泛型类型从大到小转换的场景。 有些时候对于一个泛型委托，我们常常需要对其类型参数 T 进行引用转换，以便于实现 Composite 或者 Facade 模式。设 D 和 D 是两个泛型委托 D 的实例，T1 和 T2 具备继承关系，并且 T1  隐含转换为 D，则称为 D 支持 Cotra-variance。  支持 Contra-variance 的泛型类型可以表示为 X 或者 X，其中 X 是接口或者是委托。  一个简单的例子  这个实例说明如何利用委托处理根据学生对象类别来选择执行存储数据的场景。请参考下面的代码。    1: using System;
  2: using System.Collections.Generic;
  3: using System.Linq;
  4: using System.Text;
  5:&lt;img src =&quot;http://blog.csdn.net/hustorochi/aggbug/3998885.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/hustorochi/236625038/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/hustorochi/236625038/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 18 Mar 2009 01:32:00 +0800</pubDate><author>周融</author><comments>http://blog.csdn.net/hustorochi/archive/2009/03/17/3998885.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hustorochi/archive/2009/03/17/3998885.aspx</guid><dc:creator>周融</dc:creator><fs:srclink>http://blog.csdn.net/hustorochi/archive/2009/03/17/3998885.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/hustorochi/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/hustorochi/~1148621/236625038/1148608</fs:itemid></item><item><title>C# 4.0 新特性 -- Covariance 2: 接口和委托的 Covariance</title><link>http://blog.csdn.net/hustorochi/archive/2009/03/12/3985244.aspx</link><wfw:comment>http://blog.csdn.net/hustorochi/comments/3985244.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hustorochi/comments/commentRss/3985244.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3985244</trackback:ping><description>上一篇文章我们介绍了基于数组的 Covariance，数组的 Covariance 是一个隐含的类型转换，但很可惜这个隐含转换并不适用于接口以及委托。如果在接口和委托中存在类型参数，而希望从一个泛型接口转换成另外一个泛型接口，或者委托之间的转换的话，必须要引入泛型接口和委托的 Covariance。  我们说过了，Covariance 允许这样的类型转换：如果存在类 A 和 B，A 是 B 的基类（A &gt; B），那么 I 是一个泛型接口，T 约束为 A（where T : A），那么从类型 I 可以转换为类型 I。  对于委托，如果存在类 A 和 B，A 是 B 的基类（A &gt; B），那么 D() 是一个泛型委托，T 约束为 A（where T : A），那么从委托 D 可以转换为委托 D。  如何声明一个接口或者委托支持 Covariance  C# 4.0 现在提供一个新的约束性语法，在声明返型接口或委托时，可以在泛型参数前面加上 in 或者 out 来表示该接口或委托支持 Contra-variance 或 Covariance。这篇文章只涉及到 Covariance，因此我们需&lt;img src =&quot;http://blog.csdn.net/hustorochi/aggbug/3985244.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/hustorochi/236625039/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/hustorochi/236625039/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 13 Mar 2009 04:51:00 +0800</pubDate><author>周融</author><comments>http://blog.csdn.net/hustorochi/archive/2009/03/12/3985244.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hustorochi/archive/2009/03/12/3985244.aspx</guid><dc:creator>周融</dc:creator><fs:srclink>http://blog.csdn.net/hustorochi/archive/2009/03/12/3985244.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/hustorochi/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/hustorochi/~1148621/236625039/1148608</fs:itemid></item><item><title>C# 4.0 新特性 &amp;ndash; Covariance 1: 数组 Covariance</title><link>http://blog.csdn.net/hustorochi/archive/2009/03/11/3981772.aspx</link><wfw:comment>http://blog.csdn.net/hustorochi/comments/3981772.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hustorochi/comments/commentRss/3981772.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3981772</trackback:ping><description>重要更新：由于 CSDN Live Writer 发布系统存在严重缺陷，导致将泛型接口误判断为标记，因此本文有一部分内容无法显示。需要阅读本文的读者，请关于 www.markzhou.com，我们尽快为您做镜像。谢谢大家配合！  Covariance 是一种运行时类型转换。我们可能会遇到这样的事情，就是在一些使用了泛型的接口或者数组中，即使只有泛型参数的类型不同，这些类型也不能像普通类一样互相转换。例如在 C# 3.0 中，将一个 System.Int32[] 转换成 System.Object[] 是不可能的。看下面的代码。     另外一个例子关于泛型接口的。看下面的代码：     编译器给出无法转换 I 和 I 的错误。其实，B 是 A 的派生类型，也就是说理论上从 B 转换为 A 是有可能的；但将它作为泛型接口的类型参数后，则无法对接口中的泛型类型进行转换了。  那么我们怎么解决这个问题呢？我们需要一种运行时检查和转换机制，以便处理类型参数以及数组元素之间的动态类型转换问题。  什么是 Covariance  Covariance 用于数组、泛型接口和泛型委托中，如果存在泛型接&lt;img src =&quot;http://blog.csdn.net/hustorochi/aggbug/3981772.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/hustorochi/236625040/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/hustorochi/236625040/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 12 Mar 2009 04:50:00 +0800</pubDate><author>周融</author><comments>http://blog.csdn.net/hustorochi/archive/2009/03/11/3981772.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hustorochi/archive/2009/03/11/3981772.aspx</guid><dc:creator>周融</dc:creator><fs:srclink>http://blog.csdn.net/hustorochi/archive/2009/03/11/3981772.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/hustorochi/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/hustorochi/~1148621/236625040/1148608</fs:itemid></item><item><title>C# 4.0 新特性 - 动态查找 (高级)</title><link>http://blog.csdn.net/hustorochi/archive/2009/03/10/3977757.aspx</link><wfw:comment>http://blog.csdn.net/hustorochi/comments/3977757.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hustorochi/comments/commentRss/3977757.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3977757</trackback:ping><description>昨天，我们发表了关于 C# 4.0 中动态查找功能的一些介绍。今天我们来看一些比较奇怪的例子，让大家进一步了解动态查找特性。  将 null 传递给 dynamic  我们来看下面的例子。    1: using System;
  2: using System.Collections.Generic;
  3: using System.Linq;
  4: using System.Text;
  5: 
  6: namespace DynamicDemo
  7: {
  8:     class Program
  9:     {
 10:         static void Main(string[] args)
 11:         {
 12:             dynamic d = null;
 13: 
 14:             Console.WriteLine(d);
 15:             Console.ReadLine();
 16:         }
 17:     }
 18:&lt;img src =&quot;http://blog.csdn.net/hustorochi/aggbug/3977757.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/hustorochi/236625041/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/hustorochi/236625041/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 11 Mar 2009 05:26:00 +0800</pubDate><author>周融</author><comments>http://blog.csdn.net/hustorochi/archive/2009/03/10/3977757.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hustorochi/archive/2009/03/10/3977757.aspx</guid><dc:creator>周融</dc:creator><fs:srclink>http://blog.csdn.net/hustorochi/archive/2009/03/10/3977757.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/hustorochi/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/hustorochi/~1148621/236625041/1148608</fs:itemid></item><item><title>C# 4.0 新特性 – 动态查找</title><link>http://blog.csdn.net/hustorochi/archive/2009/03/09/3974641.aspx</link><wfw:comment>http://blog.csdn.net/hustorochi/comments/3974641.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hustorochi/comments/commentRss/3974641.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3974641</trackback:ping><description>Visual Studio 2010 已经离我们越来越近，关于 C# 4.0 的 Break Changes 也已经全部成型。在 C# 4.0 发布时，我们将能够看到如下的新特性：          1、动态查找            2、命名参数            3、可选参数和默认值            4、Covariance 和 Contra-variance            5、其他 .NET Framework 4.0 的更新 (DLR, No-PIA 等)      今天我们给大家介绍一下 C# 4.0 中的动态查找。  一个简单的例子  下面的代码动态的获取一个 COM 对象类型，并通过该类型创建这个 COM 对象的实例，并准备调用该实例上的一个方法实现我们需要的功能。这个例子引用了 Speech API 中的 SAPI.SpVoice 对象，并调用了其 Speak() 方法。    1: using System;
  2: 
  3: Type type = Type.GetTypeFromProgID(&quot;SAPI.SpVoice&quot;);
  4: &lt;img src =&quot;http://blog.csdn.net/hustorochi/aggbug/3974641.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/hustorochi/236625042/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/hustorochi/236625042/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 10 Mar 2009 06:16:00 +0800</pubDate><author>周融</author><comments>http://blog.csdn.net/hustorochi/archive/2009/03/09/3974641.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hustorochi/archive/2009/03/09/3974641.aspx</guid><dc:creator>周融</dc:creator><fs:srclink>http://blog.csdn.net/hustorochi/archive/2009/03/09/3974641.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/hustorochi/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/hustorochi/~1148621/236625042/1148608</fs:itemid></item><item><title>Visual Studio 2010 和 .NET Framework 4.0 专题 - 5: Visual Basic 10 的新增功能</title><link>http://blog.csdn.net/hustorochi/archive/2008/10/30/3188024.aspx</link><wfw:comment>http://blog.csdn.net/hustorochi/comments/3188024.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hustorochi/comments/commentRss/3188024.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3188024</trackback:ping><description>Microsoft 今年 10 月宣布正式命名下一代开发平台和工具为 Microsoft .NET Framework 4.0 以及 Visual Studio 2010。Visual Studio 2010 先前代号 dev10，包含 Microsoft 最新的开发平台创新和扩展。本文通过 2008 年 10 月 27 号发布的 Visual Studio 2010 CTP 版本向大家完整介绍了 Visual Basic 10（代号 VBX）在该平台上的新增功能。&lt;img src =&quot;http://blog.csdn.net/hustorochi/aggbug/3188024.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/hustorochi/236625043/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/hustorochi/236625043/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 31 Oct 2008 06:21:00 +0800</pubDate><author>周融</author><comments>http://blog.csdn.net/hustorochi/archive/2008/10/30/3188024.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/hustorochi/archive/2008/10/30/3188024.aspx</guid><dc:creator>周融</dc:creator><fs:srclink>http://blog.csdn.net/hustorochi/archive/2008/10/30/3188024.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/hustorochi/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/hustorochi/~1148621/236625043/1148608</fs:itemid></item></channel></rss>