<?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>Comments on: C# 4.0 Dynamic and No More Annoying Casts</title>
	<atom:link href="http://georgemauer.net/blog/c-4-0-dynamic-and-no-more-annoying-casts/feed/" rel="self" type="application/rss+xml" />
	<link>http://georgemauer.net/blog/c-4-0-dynamic-and-no-more-annoying-casts/</link>
	<description>George Mauer is on the net</description>
	<lastBuildDate>Sun, 16 May 2010 17:22:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: togakangaroo</title>
		<link>http://georgemauer.net/blog/c-4-0-dynamic-and-no-more-annoying-casts/comment-page-1/#comment-100</link>
		<dc:creator>togakangaroo</dc:creator>
		<pubDate>Wed, 24 Feb 2010 04:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://georgemauer.net/blog/?p=159#comment-100</guid>
		<description>@Fritz,

No, not at all.  It&#039;s a wrapper for a normal dictionary, the keys that I use are just so its easy to track through the demo.  Take my code and give it a shot.  You could just as well call

_dictionary.Add(&quot;some-key&quot;, &quot;some value&quot;); 
string someVar = _dictionary[&quot;some-key&quot;]

Heck, you could even use this as an extension method to a normal IDictionary&lt;string, object&gt;

public dynamic Get(this IDictionary&lt;string, object&gt; dictionary,  string key) {
  return dictionary[key];
}
var d = new Dictionary&lt;string, object&gt;();
d[&quot;string-key&quot;] = &quot;a string&quot;;
d[&quot;float-key&quot;] = 123.03f;
string s = d.Get(&quot;string-key&quot;);
float f = d.Get(&quot;float-key&quot;);</description>
		<content:encoded><![CDATA[<p>@Fritz,</p>
<p>No, not at all.  It&#8217;s a wrapper for a normal dictionary, the keys that I use are just so its easy to track through the demo.  Take my code and give it a shot.  You could just as well call</p>
<p>_dictionary.Add(&#8220;some-key&#8221;, &#8220;some value&#8221;);<br />
string someVar = _dictionary["some-key"]</p>
<p>Heck, you could even use this as an extension method to a normal IDictionary<string , object></p>
<p>public dynamic Get(this IDictionary</string><string , object> dictionary,  string key) {<br />
  return dictionary[key];<br />
}<br />
var d = new Dictionary</string><string , object>();<br />
d["string-key"] = &#8220;a string&#8221;;<br />
d["float-key"] = 123.03f;<br />
string s = d.Get(&#8220;string-key&#8221;);<br />
float f = d.Get(&#8220;float-key&#8221;);</string></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fritz</title>
		<link>http://georgemauer.net/blog/c-4-0-dynamic-and-no-more-annoying-casts/comment-page-1/#comment-99</link>
		<dc:creator>Fritz</dc:creator>
		<pubDate>Wed, 24 Feb 2010 03:52:34 +0000</pubDate>
		<guid isPermaLink="false">http://georgemauer.net/blog/?p=159#comment-99</guid>
		<description>So you can only store 1 value per type?  That&#039;s not very dictionary-ish of you.</description>
		<content:encoded><![CDATA[<p>So you can only store 1 value per type?  That&#8217;s not very dictionary-ish of you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
