<?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>Power11: Extension properties</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/11/power11-extension-properties.aspx</link><description>[This post is part of a series, " wish-list for future versions of VB "] 
 
 IDEA: Extension properties. We should add extension properties, just like we have extension methods. 
 
 SCENARIO: In Javascript and a host of web-related DSLs, there are</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Power11: Extension properties</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/11/power11-extension-properties.aspx#10114559</link><pubDate>Wed, 12 Jan 2011 08:36:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10114559</guid><dc:creator>Shimmy Weitzhandler</dc:creator><description>&lt;p&gt;This is sumething that should have been released along with ex. methods.&lt;/p&gt;
&lt;p&gt;BTW, why would u wanna name a property (or method) name as lower camel case&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10114559" width="1" height="1"&gt;</description></item><item><title>re: Power11: Extension properties</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/11/power11-extension-properties.aspx#9964006</link><pubDate>Tue, 16 Feb 2010 03:13:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9964006</guid><dc:creator>Kevin Ryall</dc:creator><description>&lt;p&gt;This is an obvious addition that would the language just that little bit more flexible. Any syntactic sugar you can add that makes properties real first class members instead of thinly disguised wrappers around accessor / mutator methods is all to the good.&lt;/p&gt;
&lt;p&gt;This is a lack I have felt recently when using extension methods with interfaces to make implementation less onerous (pseudo-mixins I guess), but being able to use extension properties would have made this much ‘cleaner’ – I don’t like to use accessor / mutator methods just because there are no extension properties.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9964006" width="1" height="1"&gt;</description></item><item><title>re: Power11: Extension properties</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/11/power11-extension-properties.aspx#9963596</link><pubDate>Mon, 15 Feb 2010 15:26:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9963596</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;There is one senario where extension properties would be helpful for me. &amp;nbsp;Currently; I have extensions for IEnumerable because I have to use IEnumerable object to use Covariance and Contravariance easily. &amp;nbsp;Would be nice to Extend it for the Index (since List has that). &amp;nbsp;Would be something like this&lt;/p&gt;
&lt;p&gt;&amp;lt;RunTime.CompilerServices.Extension()&lt;/p&gt;
&lt;p&gt;Property Item(Of T)(ByRef ThisList as IEnumerable(Of T), ByVal Index as Integer) As T&lt;/p&gt;
&lt;p&gt;Get&lt;/p&gt;
&lt;p&gt;Dim TempList=ThisList.ToList&lt;/p&gt;
&lt;p&gt;return TempList.Item(Index)&lt;/p&gt;
&lt;p&gt;End Get&lt;/p&gt;
&lt;p&gt;Set(ByVal ThisItem as T)&lt;/p&gt;
&lt;p&gt;dim TempList=ThisList.ToList&lt;/p&gt;
&lt;p&gt;TempList.Item(Index)=ThisItem&lt;/p&gt;
&lt;p&gt;ThisList=TempList.AsEnumerable&lt;/p&gt;
&lt;p&gt;End Set&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9963596" width="1" height="1"&gt;</description></item></channel></rss>