<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Extension Methods (part 2)</title><link>http://blogs.msdn.com/vbteam/archive/2007/01/11/extension-methods-part-2.aspx</link><description>In my previous post I gave a high level overview of some of the benefits of using Extension Methods in VB 9.0. Today I'm going to delve into some of the details about how to define extension methods and then use them in your programs. Defining Extension</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Extension Methods (part 2)</title><link>http://blogs.msdn.com/vbteam/archive/2007/01/11/extension-methods-part-2.aspx#1456869</link><pubDate>Fri, 12 Jan 2007 21:36:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1456869</guid><dc:creator>Keith Matzen</dc:creator><description>&lt;p&gt;Will we have the ability to add an Interface to a type?&lt;/p&gt;
&lt;p&gt;Would we be able to add a virtual Interface to a type for use with Generics?&lt;/p&gt;
&lt;p&gt;One of the problems with Generics is that existing Interfaces don't tell you enough about the types capabilities. &amp;nbsp;For example, it would be nice to be able to distinguish between Numeric and Non-numeric or Integer and Floating Point types.&lt;/p&gt;
</description></item><item><title>re: Extension Methods (part 2)</title><link>http://blogs.msdn.com/vbteam/archive/2007/01/11/extension-methods-part-2.aspx#1458124</link><pubDate>Sat, 13 Jan 2007 06:01:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1458124</guid><dc:creator>VBTeam</dc:creator><description>&lt;p&gt;Hi Keith,&lt;/p&gt;
&lt;p&gt;No, you will not be able to add an Interface to a type without directly modifying its definition. We did have some plans to implement &amp;quot;Dynamic Interfaces&amp;quot; in order to enable type safe duck typing, which would enable the scenarios you descrube. but this feature was cut from Orcas because of scheduling constraints. However, I will forward your request over to the language design team and let them know that you are interested in this feature so that they can consider it for inclusion in a later version of the product.&lt;/p&gt;
&lt;p&gt;-Scott&lt;/p&gt;
</description></item><item><title>re: Extension Methods (part 2)</title><link>http://blogs.msdn.com/vbteam/archive/2007/01/11/extension-methods-part-2.aspx#1459652</link><pubDate>Sat, 13 Jan 2007 09:42:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1459652</guid><dc:creator>Anthony D. Green, MCPD</dc:creator><description>&lt;p&gt;Those scheduling constraints that seem to continually screw over the language until the next version are starting to become bothersome.&lt;/p&gt;
&lt;p&gt;If the CLR isn't changing then VB could theoretically have shorter development cycles with smaller features sets all emitting backwards compatable IL. At least then &amp;quot;until a future version&amp;quot; wouldn't feel like &amp;quot;We're going to leave you disappointed and bitter for another two years&amp;quot;. VB 2003 to 2005 and now 2005 to 2007.&lt;/p&gt;
&lt;p&gt;That all said this looks good and I'm happy to see the flexibility you have with this as far as ByVal and ByRef, etc. Thanks for saving the occassional useful feature for this version.&lt;/p&gt;
&lt;p&gt;I disagree with the Modules only rule for one reason only - that I disagree with the auto-hoisting requirement on Modules. I love the auto-shared quality of modules and don't mind that I can't nest them, though often I'd like to. What I would like though is to turn off the auto-static import of a module (with an attribute or something) otherwise I have to make all my utility classes non-module classes so that their members don't clutter my intellisense. I'm sure you might get to this issue 4 versions from now but I thought I'd throw my name into the feature hat now.&lt;/p&gt;
&lt;p&gt;Still, great job- - I look forward to this next version daily (though I'll miss Dynamic Interfaces soo much).&lt;/p&gt;
&lt;p&gt;-Anthony D. Green, MCPD&lt;/p&gt;
&lt;p&gt;P.S. &amp;quot;One big problem was the fact that it was different than C#&amp;quot; is the worst possible way to start out a justification for a VB language design decision. I can infer that you meant it different but still it stings a little to hear it.&lt;/p&gt;
</description></item><item><title>Articles about Extension Methods</title><link>http://blogs.msdn.com/vbteam/archive/2007/01/11/extension-methods-part-2.aspx#1523203</link><pubDate>Wed, 24 Jan 2007 22:11:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1523203</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;Here is a list of links to posts on this blog that talk about extension methods: Extension Methods Part&lt;/p&gt;
</description></item><item><title>Extension Methods Best Practices (Extension Methods Part 6)</title><link>http://blogs.msdn.com/vbteam/archive/2007/01/11/extension-methods-part-2.aspx#1855915</link><pubDate>Sun, 11 Mar 2007 02:40:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1855915</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;This is the sixth installment in my series of posts about extension methods. You can find links to the&lt;/p&gt;
</description></item><item><title>Extension methods missing from System.String in the .NET Framework 3.5 (Beta 1)</title><link>http://blogs.msdn.com/vbteam/archive/2007/01/11/extension-methods-part-2.aspx#2605255</link><pubDate>Sun, 13 May 2007 21:41:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2605255</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;Extension methods are a feature of the new C# language specification (also available in Visual Basic&lt;/p&gt;
</description></item><item><title>Extension methods missing from System.Array in the .NET Framework 3.5 (Beta 1)</title><link>http://blogs.msdn.com/vbteam/archive/2007/01/11/extension-methods-part-2.aspx#2605443</link><pubDate>Sun, 13 May 2007 21:51:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2605443</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;Extension methods are a feature of the new C# language specification (also available in Visual Basic&lt;/p&gt;
</description></item><item><title>Métdos de extensão em falta na classe System.String da plataforma .NET 3.5 (Beta 1)</title><link>http://blogs.msdn.com/vbteam/archive/2007/01/11/extension-methods-part-2.aspx#2605558</link><pubDate>Sun, 13 May 2007 21:58:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2605558</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;M&amp;#233;todos de extens&amp;#227;o s&amp;#227;o uma nova funcionalidade da especifica&amp;#231;&amp;#227;o da linguagem C# (tamb&amp;#233;m dispon&amp;#237;vel no&lt;/p&gt;
</description></item><item><title>Métdos de extensão em falta na classe System.Array da plataforma .NET 3.5 (Beta 1)</title><link>http://blogs.msdn.com/vbteam/archive/2007/01/11/extension-methods-part-2.aspx#2605638</link><pubDate>Sun, 13 May 2007 22:04:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2605638</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;M&amp;#233;todos de extens&amp;#227;o s&amp;#227;o uma nova funcionalidade da especifica&amp;#231;&amp;#227;o da linguagem C# (tamb&amp;#233;m dispon&amp;#237;vel no&lt;/p&gt;
</description></item><item><title>re: Extension Methods (part 2)</title><link>http://blogs.msdn.com/vbteam/archive/2007/01/11/extension-methods-part-2.aspx#9904756</link><pubDate>Thu, 08 Oct 2009 10:02:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9904756</guid><dc:creator>mekuto s</dc:creator><description>&lt;p&gt;can you write this extension methods in a report form&lt;/p&gt;
</description></item></channel></rss>