<?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: Reverse an Array</title>
	<atom:link href="http://www.csharp411.com/reverse-an-array/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharp411.com/reverse-an-array/</link>
	<description>C# Information, Code, Tips and News</description>
	<lastBuildDate>Sat, 24 Jul 2010 01:26:51 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dimi</title>
		<link>http://www.csharp411.com/reverse-an-array/comment-page-1/#comment-1217</link>
		<dc:creator>Dimi</dc:creator>
		<pubDate>Tue, 27 May 2008 08:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/reverse-an-array/#comment-1217</guid>
		<description>Why would anybody want to allocate extra object to reverse an array? Despite of the fact, that Array.Reverse already exists I don&#039;t see the point in implementing it that way. 
And even than why not use Array.Copy for the copy operation?

It would also be nice to use Unit Tests for the test code.</description>
		<content:encoded><![CDATA[<p>Why would anybody want to allocate extra object to reverse an array? Despite of the fact, that Array.Reverse already exists I don't see the point in implementing it that way.<br />
And even than why not use Array.Copy for the copy operation?</p>
<p>It would also be nice to use Unit Tests for the test code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timm</title>
		<link>http://www.csharp411.com/reverse-an-array/comment-page-1/#comment-314</link>
		<dc:creator>timm</dc:creator>
		<pubDate>Tue, 22 Apr 2008 13:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/reverse-an-array/#comment-314</guid>
		<description>Hi Hades, Google &quot;.NET interview questions&quot; to find many sites with questions and study guides .NET programming interviews.</description>
		<content:encoded><![CDATA[<p>Hi Hades, Google ".NET interview questions" to find many sites with questions and study guides .NET programming interviews.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hades</title>
		<link>http://www.csharp411.com/reverse-an-array/comment-page-1/#comment-312</link>
		<dc:creator>Hades</dc:creator>
		<pubDate>Tue, 22 Apr 2008 06:43:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/reverse-an-array/#comment-312</guid>
		<description>Referring to Idan why is it that whenever you go to an interview you get questions like this. Is it like to test your logic?
I remember I was asked to to convert a string to an integer atoi and of course I started using the int32.tryparse method and the interviewers immediately said &quot;you don&#039;t get to do that&quot;
is there a site with these kinda problems where we can go and study?</description>
		<content:encoded><![CDATA[<p>Referring to Idan why is it that whenever you go to an interview you get questions like this. Is it like to test your logic?<br />
I remember I was asked to to convert a string to an integer atoi and of course I started using the int32.tryparse method and the interviewers immediately said "you don't get to do that"<br />
is there a site with these kinda problems where we can go and study?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald</title>
		<link>http://www.csharp411.com/reverse-an-array/comment-page-1/#comment-104</link>
		<dc:creator>Ronald</dc:creator>
		<pubDate>Wed, 19 Mar 2008 08:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/reverse-an-array/#comment-104</guid>
		<description>If you wish to reverse the contents of a string, there is a very simple method using LINQ:

string ReverseSentence(string sentence)
{
  string[] words = sentence.Split(&#039; &#039;);
  return words.Aggregate((a, b) =&gt; b + &quot; &quot; + a);
}

Of course, this would only work on strings :)

http://blogs.msdn.com/charlie/archive/2008/02/06/linq-farm-seed-02-aggregate-operator-part-ii.aspx</description>
		<content:encoded><![CDATA[<p>If you wish to reverse the contents of a string, there is a very simple method using LINQ:</p>
<p>string ReverseSentence(string sentence)<br />
{<br />
  string[] words = sentence.Split(' ');<br />
  return words.Aggregate((a, b) =&gt; b + " " + a);<br />
}</p>
<p>Of course, this would only work on strings <img src='http://www.csharp411.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://blogs.msdn.com/charlie/archive/2008/02/06/linq-farm-seed-02-aggregate-operator-part-ii.aspx" rel="nofollow">http://blogs.msdn.com/charlie/archive/2008/02/06/linq-farm-seed-02-aggregate-operator-part-ii.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timm</title>
		<link>http://www.csharp411.com/reverse-an-array/comment-page-1/#comment-103</link>
		<dc:creator>timm</dc:creator>
		<pubDate>Tue, 18 Mar 2008 15:58:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/reverse-an-array/#comment-103</guid>
		<description>Hi Idan, you are correct.  If you want to reverse the array in place, you should use Array.Reverse().  The generic method in this post is to reverse the array into a new array.  I updated my post to make that more clear.  Thank you for your comment.</description>
		<content:encoded><![CDATA[<p>Hi Idan, you are correct.  If you want to reverse the array in place, you should use Array.Reverse().  The generic method in this post is to reverse the array into a new array.  I updated my post to make that more clear.  Thank you for your comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: idan</title>
		<link>http://www.csharp411.com/reverse-an-array/comment-page-1/#comment-102</link>
		<dc:creator>idan</dc:creator>
		<pubDate>Tue, 18 Mar 2008 15:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/reverse-an-array/#comment-102</guid>
		<description>why no just use the tool .NET gave us like:

int[] arrInt = new int[] { 1, 2, 3 };
Array.Reverse(arrInt);

it&#039;s a bit shorter and easier i think ..</description>
		<content:encoded><![CDATA[<p>why no just use the tool .NET gave us like:</p>
<p>int[] arrInt = new int[] { 1, 2, 3 };<br />
Array.Reverse(arrInt);</p>
<p>it's a bit shorter and easier i think ..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
