<?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: Separator Delimited ToString for Array, List, Dictionary, Generic IEnumerable</title>
	<atom:link href="http://www.codemeit.com/linq/c-array-delimited-tostring.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html</link>
	<description>programming, software &#38; problem solving</description>
	<lastBuildDate>Fri, 12 Mar 2010 08:48:20 +1300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Avi</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html/comment-page-1#comment-4746</link>
		<dc:creator>Avi</dc:creator>
		<pubDate>Sun, 07 Mar 2010 23:25:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemeit.com/?p=81#comment-4746</guid>
		<description>Using the generic type &quot;System.Collections.Generic.IEnumerable requires &#039;1&#039; type arguments

I think it&#039;s something to do with using of System.Collection vs. System.Collections.Generic for IEnumerable.</description>
		<content:encoded><![CDATA[<p>Using the generic type &#8220;System.Collections.Generic.IEnumerable requires &#8216;1&#8242; type arguments</p>
<p>I think it&#8217;s something to do with using of System.Collection vs. System.Collections.Generic for IEnumerable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zohar</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html/comment-page-1#comment-4367</link>
		<dc:creator>Zohar</dc:creator>
		<pubDate>Fri, 22 Jan 2010 09:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemeit.com/?p=81#comment-4367</guid>
		<description>Can I just say few warm words ;) It&#039;s so nice here, good atmosphere, well done :)!.
I am from Sudan and too poorly know English, give please true I wrote the following sentence: &quot;Files are also alternative to stick criminal states of their second, free from any court or available psychologist that may be argued by the restrictions of their killing, criminal justice.&quot;

THX 8), Zohar.</description>
		<content:encoded><![CDATA[<p>Can I just say few warm words <img src='http://www.codemeit.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  It&#8217;s so nice here, good atmosphere, well done <img src='http://www.codemeit.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> !.<br />
I am from Sudan and too poorly know English, give please true I wrote the following sentence: &#8220;Files are also alternative to stick criminal states of their second, free from any court or available psychologist that may be argued by the restrictions of their killing, criminal justice.&#8221;</p>
<p>THX 8), Zohar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IndyCoder</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html/comment-page-1#comment-4084</link>
		<dc:creator>IndyCoder</dc:creator>
		<pubDate>Wed, 23 Dec 2009 21:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemeit.com/?p=81#comment-4084</guid>
		<description>Thank you! Solved a particular annoying issue I had to deal with. List being passed as a comma separated list to a stored procedure (which then parsed it into a single column table of uniqueidentifier).
I was looking around for ways to deal with this and had found one that was a method that had a string builder in it...but I like yours a lot better. Worked perfect for me when I just copy/pasted the code here on the page. Just had to add a Using System.Collection; to cover the second method. After that, a using that referenced the module I put this in, and I was good to go. THANKS!</description>
		<content:encoded><![CDATA[<p>Thank you! Solved a particular annoying issue I had to deal with. List being passed as a comma separated list to a stored procedure (which then parsed it into a single column table of uniqueidentifier).<br />
I was looking around for ways to deal with this and had found one that was a method that had a string builder in it&#8230;but I like yours a lot better. Worked perfect for me when I just copy/pasted the code here on the page. Just had to add a Using System.Collection; to cover the second method. After that, a using that referenced the module I put this in, and I was good to go. THANKS!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Augustandre</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html/comment-page-1#comment-3278</link>
		<dc:creator>Augustandre</dc:creator>
		<pubDate>Tue, 27 Oct 2009 16:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemeit.com/?p=81#comment-3278</guid>
		<description>Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html/comment-page-1#comment-2864</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 30 Sep 2009 01:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemeit.com/?p=81#comment-2864</guid>
		<description>@kissedsmiley
Thanks for point out the point. But one correction in your comment. ArrayList wouldn&#039;t have the ToString extension method applied because it implements IEnumerable(not generic IEnumerable).  Therefore, I&#039;ve added
&lt;code&gt;
public static string ToString(this IEnumerable source, string separator)
{...}
&lt;/code&gt; 
so 
&lt;code&gt;Console.WriteLine(arrayList .ToString(”:”));&lt;/code&gt;
will work for you now.</description>
		<content:encoded><![CDATA[<p>@kissedsmiley<br />
Thanks for point out the point. But one correction in your comment. ArrayList wouldn&#8217;t have the ToString extension method applied because it implements IEnumerable(not generic IEnumerable).  Therefore, I&#8217;ve added</p>
<div class="codesnip-container" >public static string ToString(this IEnumerable source, string separator)<br />
{&#8230;}</div>
<p>so </p>
<div class="codesnip-container" >Console.WriteLine(arrayList .ToString(”:”));</div>
<p>will work for you now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kissedsmiley</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html/comment-page-1#comment-2856</link>
		<dc:creator>kissedsmiley</dc:creator>
		<pubDate>Tue, 29 Sep 2009 15:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemeit.com/?p=81#comment-2856</guid>
		<description>thank you for this nice post. note that due to a typo, the ArrayList test is not performed:

ArrayList arrayList = new ArrayList() { 1, 2, 3 };
            Console.WriteLine(intArray.ToString(&quot;:&quot;));

If one changes the &#039;intArray&#039; to &#039;arrayList&#039;, it will fail because ArrayList has no ToString method! So the only way I know of to get around it is by writing a wrapper class  or building a custom, local handler, either of which is ugly.</description>
		<content:encoded><![CDATA[<p>thank you for this nice post. note that due to a typo, the ArrayList test is not performed:</p>
<p>ArrayList arrayList = new ArrayList() { 1, 2, 3 };<br />
            Console.WriteLine(intArray.ToString(&#8221;:&#8221;));</p>
<p>If one changes the &#8216;intArray&#8217; to &#8216;arrayList&#8217;, it will fail because ArrayList has no ToString method! So the only way I know of to get around it is by writing a wrapper class  or building a custom, local handler, either of which is ugly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html/comment-page-1#comment-1989</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 04 Jul 2009 12:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemeit.com/?p=81#comment-1989</guid>
		<description>Hi Thorsten,

I had a look at your generic ToString by using reflection, that is good.
But reflection is quite expensive operation. I don&#039;t think it fits the collection, enumerable scenario. 
string.Join for array is optimized by .net, it is very fast operation.</description>
		<content:encoded><![CDATA[<p>Hi Thorsten,</p>
<p>I had a look at your generic ToString by using reflection, that is good.<br />
But reflection is quite expensive operation. I don&#8217;t think it fits the collection, enumerable scenario.<br />
string.Join for array is optimized by .net, it is very fast operation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thorsten</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html/comment-page-1#comment-1983</link>
		<dc:creator>Thorsten</dc:creator>
		<pubDate>Fri, 03 Jul 2009 15:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemeit.com/?p=81#comment-1983</guid>
		<description>Maybe there is a way to make this work with my Generic ToString() method? So far it fails returning the contents of a list correctly, therefore I have to copy it to an array.
As far as I understand though, essentially you are also copying to an array first. Do you think there are any other solutions, since this could become a performance issue for large lists.
Maybe you can have a look and just leave a comment, to let me know what you think?

Here the link to the blog I mentioned in the previous comment: &lt;a href=&quot;http://thorstenlorenz.blogspot.com/2009/06/after-reading-this-great-blog-by-rinat.html&quot; rel=&quot;nofollow&quot;&gt;Here it is&lt;/a&gt;
</description>
		<content:encoded><![CDATA[<p>Maybe there is a way to make this work with my Generic ToString() method? So far it fails returning the contents of a list correctly, therefore I have to copy it to an array.<br />
As far as I understand though, essentially you are also copying to an array first. Do you think there are any other solutions, since this could become a performance issue for large lists.<br />
Maybe you can have a look and just leave a comment, to let me know what you think?</p>
<p>Here the link to the blog I mentioned in the previous comment: <a href="http://thorstenlorenz.blogspot.com/2009/06/after-reading-this-great-blog-by-rinat.html" rel="nofollow">Here it is</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html/comment-page-1#comment-1908</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 10 Jun 2009 09:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemeit.com/?p=81#comment-1908</guid>
		<description>Hi Zullu,
You can download the solution file by clicking the link at bottom of this post. or http://www.codemeit.com/wp-content/uploads/2008/09/tostringextensionmethod.zip</description>
		<content:encoded><![CDATA[<p>Hi Zullu,<br />
You can download the solution file by clicking the link at bottom of this post. or <a href="http://www.codemeit.com/wp-content/uploads/2008/09/tostringextensionmethod.zip" rel="nofollow">http://www.codemeit.com/wp-content/uploads/2008/09/tostringextensionmethod.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html/comment-page-1#comment-1904</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 08 Jun 2009 19:49:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemeit.com/?p=81#comment-1904</guid>
		<description>Hi,
I was trying this code but I keep getting this error:
&quot;No overload for method takes 1 argument.&quot; on all the Console.WriteLine as in this case.
Console.WriteLine(intArray.ToString(&quot;,&quot;));

Also I did not understand what do you mean by fixing the tag :
public static string ToString(this IEnumerable source, string separator) { }

Please elaborate.
Zullu</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I was trying this code but I keep getting this error:<br />
&#8220;No overload for method takes 1 argument.&#8221; on all the Console.WriteLine as in this case.<br />
Console.WriteLine(intArray.ToString(&#8221;,&#8221;));</p>
<p>Also I did not understand what do you mean by fixing the tag :<br />
public static string ToString(this IEnumerable source, string separator) { }</p>
<p>Please elaborate.<br />
Zullu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kk</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html/comment-page-1#comment-1651</link>
		<dc:creator>kk</dc:creator>
		<pubDate>Mon, 27 Apr 2009 18:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemeit.com/?p=81#comment-1651</guid>
		<description>Thanks. This was really useful. Helped me save time. However your page does not show up on a google/live search?</description>
		<content:encoded><![CDATA[<p>Thanks. This was really useful. Helped me save time. However your page does not show up on a google/live search?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html/comment-page-1#comment-90</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 03 Nov 2008 05:37:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemeit.com/?p=81#comment-90</guid>
		<description>Sometimes, the code highlighter remove tags, thanks for pointing this out, I have fixed it.</description>
		<content:encoded><![CDATA[<p>Sometimes, the code highlighter remove tags, thanks for pointing this out, I have fixed it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.codemeit.com/linq/c-array-delimited-tostring.html/comment-page-1#comment-88</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 29 Oct 2008 09:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.codemeit.com/?p=81#comment-88</guid>
		<description>Very useful, just what I was looking for actually. I had to add the  tag to make it work though:

public static string ToString(this IEnumerable source, string separator) { }</description>
		<content:encoded><![CDATA[<p>Very useful, just what I was looking for actually. I had to add the  tag to make it work though:</p>
<p>public static string ToString(this IEnumerable source, string separator) { }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
