<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - How do you output the contents of a Dictionary class?</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - How do you output the contents of a Dictionary class?</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Wed, 22 May 2013 00:45:08 GMT</pubDate>
	<lastBuildDate>Wed, 22 May 2013 00:45:08 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>5</c9:totalResults>
	<c9:pageCount>-5</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - How do you output the contents of a Dictionary class?</title>
		<description><![CDATA[<p>This is kind of a follow up to this post:</p><p><a href="http://channel9.msdn.com/Forums/TechOff/How-To-Modify-An-Element-in-the-Dictionary-Class">http://channel9.msdn.com/Forums/TechOff/How-To-Modify-An-Element-in-the-Dictionary-Class</a></p><p>Once I have the data nice and sorted like I want it, how do I spew it back out in the nice and ordered fashion?</p><p>In C#, how do you output the contents of a Dictionary class?</p><p>Once you have loaded a Dictionary class with keys and values, how do I cycle through them and output the individual values in a foreach loop?</p><p>&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-do-you-output-the-contents-of-a-Dictionary-class/cb963fc782c14f4db135a0b6001c9628#cb963fc782c14f4db135a0b6001c9628</link>
		<pubDate>Thu, 23 Aug 2012 01:44:04 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-do-you-output-the-contents-of-a-Dictionary-class/cb963fc782c14f4db135a0b6001c9628#cb963fc782c14f4db135a0b6001c9628</guid>
		<dc:creator>complete</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/complete/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How do you output the contents of a Dictionary class?</title>
		<description><![CDATA[<p>Something like</p><p>&nbsp;</p><p><pre class="brush: csharp">foreach (var key in dictionary.Keys)
{
    var value = dictionary[key];
    // Output value however you want
}</pre></p><p>&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-do-you-output-the-contents-of-a-Dictionary-class/82947fc4870243968113a0b600256c8b#82947fc4870243968113a0b600256c8b</link>
		<pubDate>Thu, 23 Aug 2012 02:16:15 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-do-you-output-the-contents-of-a-Dictionary-class/82947fc4870243968113a0b600256c8b#82947fc4870243968113a0b600256c8b</guid>
		<dc:creator>blowdart</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/blowdart/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How do you output the contents of a Dictionary class?</title>
		<description><![CDATA[<p>what's so difficult about foreach ?</p><p><pre class="brush: csharp">            foreach (var i in dict) {
                var key = i.Key;
                var val = i.Value;
            }
</pre></p><p>wait a minute, you want to sort a dictionary ?? are you sure dictionary is the data structure you want ?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-do-you-output-the-contents-of-a-Dictionary-class/18f17ea165c644c0980ca0b6002c1678#18f17ea165c644c0980ca0b6002c1678</link>
		<pubDate>Thu, 23 Aug 2012 02:40:31 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-do-you-output-the-contents-of-a-Dictionary-class/18f17ea165c644c0980ca0b6002c1678#18f17ea165c644c0980ca0b6002c1678</guid>
		<dc:creator>felix9</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/felix9/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How do you output the contents of a Dictionary class?</title>
		<description><![CDATA[<p>If you want to sort it, that's easy too</p><p>foreach(var key in dictionary.Keys.SortBy( ... ) )<br>{<br>&nbsp; var value = dictionary[key];<br>&nbsp; // output value however you want.<br>}</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-do-you-output-the-contents-of-a-Dictionary-class/a8fb135035aa411a8617a0b600ca4517#a8fb135035aa411a8617a0b600ca4517</link>
		<pubDate>Thu, 23 Aug 2012 12:16:26 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-do-you-output-the-contents-of-a-Dictionary-class/a8fb135035aa411a8617a0b600ca4517#a8fb135035aa411a8617a0b600ca4517</guid>
		<dc:creator>evildictaitor</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/evildictaitor/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How do you output the contents of a Dictionary class?</title>
		<description><![CDATA[<p>There's a SortedDictionary that is implemented using a tree so that the dictionary is sorted by the key. There's tradeoffs between using trees and hashtables, so be sure which data structure you really want before blindly switching. With a SortedDictionary you'd just use foreach to iterate over the KeyValuePair items in the dictionary, or use the Keys or Values properties to iterate over just the key or just the value.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-do-you-output-the-contents-of-a-Dictionary-class/2d6e3fe9a3e742e2b02ea0b600d30545#2d6e3fe9a3e742e2b02ea0b600d30545</link>
		<pubDate>Thu, 23 Aug 2012 12:48:18 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-do-you-output-the-contents-of-a-Dictionary-class/2d6e3fe9a3e742e2b02ea0b600d30545#2d6e3fe9a3e742e2b02ea0b600d30545</guid>
		<dc:creator>William Kempf</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/wkempf/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>