<?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: Create a delimited list of SortedList Keys in C#</title>
	<atom:link href="http://ericfickes.com/2009/02/create-a-delimited-list-of-sortedlist-keys-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://ericfickes.com/2009/02/create-a-delimited-list-of-sortedlist-keys-in-c/</link>
	<description>Design minded Internet Programmer</description>
	<lastBuildDate>Sun, 05 Feb 2012 06:54:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Eric</title>
		<link>http://ericfickes.com/2009/02/create-a-delimited-list-of-sortedlist-keys-in-c/comment-page-1/#comment-80</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Mon, 23 Feb 2009 20:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://ericfickes.com/?p=486#comment-80</guid>
		<description>That one is great for a SortedList with keys that are strings.  You&#039;d have to manage casting if you have a SortedList with anything but string keys.

Thanks Pete!</description>
		<content:encoded><![CDATA[<p>That one is great for a SortedList with keys that are strings.  You&#8217;d have to manage casting if you have a SortedList with anything but string keys.</p>
<p>Thanks Pete!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://ericfickes.com/2009/02/create-a-delimited-list-of-sortedlist-keys-in-c/comment-page-1/#comment-79</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Mon, 23 Feb 2009 20:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://ericfickes.com/?p=486#comment-79</guid>
		<description>Last one, promise! :)

How about this in SortedListKeysToDelimList?

string[] sa = new string[sl.Keys.Count];
sl.Keys.CopyTo(sa, 0);
return string.Join(delim, sa);</description>
		<content:encoded><![CDATA[<p>Last one, promise! <img src='http://ericfickes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>How about this in SortedListKeysToDelimList?</p>
<p>string[] sa = new string[sl.Keys.Count];<br />
sl.Keys.CopyTo(sa, 0);<br />
return string.Join(delim, sa);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://ericfickes.com/2009/02/create-a-delimited-list-of-sortedlist-keys-in-c/comment-page-1/#comment-76</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Mon, 23 Feb 2009 17:11:23 +0000</pubDate>
		<guid isPermaLink="false">http://ericfickes.com/?p=486#comment-76</guid>
		<description>Not a bad idea, but I&#039;d still say use a StringBuilder since you might not know the size of your incoming SortedList.</description>
		<content:encoded><![CDATA[<p>Not a bad idea, but I&#8217;d still say use a StringBuilder since you might not know the size of your incoming SortedList.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://ericfickes.com/2009/02/create-a-delimited-list-of-sortedlist-keys-in-c/comment-page-1/#comment-75</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Mon, 23 Feb 2009 16:41:17 +0000</pubDate>
		<guid isPermaLink="false">http://ericfickes.com/?p=486#comment-75</guid>
		<description>How&#039;s about different?

SortedList sl = new SortedList();
sl.Add(1, &quot;hi&quot;);
sl.Add(2, &quot;there&quot;);
sl.Add(3, &quot;everyone&quot;);

IList il = sl.GetKeyList();
string str = string.Empty;

for (int i = 0; i &lt; il.Count; i++)
{
     str += i == 0 ? il[i].ToString() : string.Format(&quot;,{0}&quot;, il[i].ToString());
}</description>
		<content:encoded><![CDATA[<p>How&#8217;s about different?</p>
<p>SortedList sl = new SortedList();<br />
sl.Add(1, &#8220;hi&#8221;);<br />
sl.Add(2, &#8220;there&#8221;);<br />
sl.Add(3, &#8220;everyone&#8221;);</p>
<p>IList il = sl.GetKeyList();<br />
string str = string.Empty;</p>
<p>for (int i = 0; i &lt; il.Count; i++)<br />
{<br />
     str += i == 0 ? il[i].ToString() : string.Format(&#8220;,{0}&#8221;, il[i].ToString());<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

