<?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>Dynamic in C# V: Indexers, Operators, and More!</title><link>http://blogs.msdn.com/samng/archive/2008/12/11/dynamic-in-c-v-indexers-operators-and-more.aspx</link><description>Now that we're all experts in how dynamic invocations work for regular method calls, lets extrapolate from our previous discussion about phantom methods a bit and take a look at how those basic concepts apply to other dynamic operations. Today we'll just</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Dynamic in C# V: Indexers, Operators, and More!</title><link>http://blogs.msdn.com/samng/archive/2008/12/11/dynamic-in-c-v-indexers-operators-and-more.aspx#9200979</link><pubDate>Fri, 12 Dec 2008 10:53:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9200979</guid><dc:creator>int19h</dc:creator><description>&lt;p&gt;Regarding properties and operator+= and -= - wouldn't those two also require special treatment (as operations distinct from just &amp;quot;access&amp;quot; and &amp;quot;mutate&amp;quot;) because it could be an event, not a property?&lt;/p&gt;
</description></item><item><title>re: Dynamic in C# V: Indexers, Operators, and More!</title><link>http://blogs.msdn.com/samng/archive/2008/12/11/dynamic-in-c-v-indexers-operators-and-more.aspx#9203135</link><pubDate>Fri, 12 Dec 2008 21:57:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9203135</guid><dc:creator>samng</dc:creator><description>&lt;p&gt;Yes, like I mentioned in this paragraph:&lt;/p&gt;
&lt;p&gt;&amp;quot;Lastly, note that the compiler knows that if you're doing something like d.Foo += x, and at runtime d.Foo binds to a delegate type or an event type, then the correct combine/add call will be invoked for you.&amp;quot;&lt;/p&gt;
&lt;p&gt;We'll treat these guys distinctly. Currently the architecture is such that the DLR has a special payload kind for compound operators, so we can encode the thing as one site. So for example, d.Foo += 1 would be encoded in one single site that knows the receiver is d, and that we're doing a member access for &amp;quot;Foo&amp;quot;, with the += operation and 1 as the value.&lt;/p&gt;
</description></item><item><title>DYNAMIC IN C# V: INDEXERS, OPERATORS, AND MORE!</title><link>http://blogs.msdn.com/samng/archive/2008/12/11/dynamic-in-c-v-indexers-operators-and-more.aspx#9227503</link><pubDate>Tue, 16 Dec 2008 22:03:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9227503</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
</description></item><item><title>Duck Typing with dynamic in C# 4.0</title><link>http://blogs.msdn.com/samng/archive/2008/12/11/dynamic-in-c-v-indexers-operators-and-more.aspx#9402728</link><pubDate>Fri, 06 Feb 2009 22:02:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9402728</guid><dc:creator>Bill Blogs in C#</dc:creator><description>&lt;p&gt;One of the features I find very limiting in C# (and VB.NET) generics is the way constraints work. As&lt;/p&gt;
</description></item></channel></rss>