<?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 a String in C#</title>
	<atom:link href="http://www.thejackol.com/2005/07/12/reverse-a-string-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thejackol.com/2005/07/12/reverse-a-string-in-c/</link>
	<description>01100010 01101100 01100101 01101000</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:48:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Vyas Bharghava</title>
		<link>http://www.thejackol.com/2005/07/12/reverse-a-string-in-c/comment-page-1/#comment-73915</link>
		<dc:creator>Vyas Bharghava</dc:creator>
		<pubDate>Fri, 24 Aug 2007 11:23:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=159#comment-73915</guid>
		<description>public static string Reverse(string str)
        {
            char[] chars = str.ToCharArray();
            Array.Reverse(chars);
            return new string(chars);
        }</description>
		<content:encoded><![CDATA[<p>public static string Reverse(string str)<br />
        {<br />
            char[] chars = str.ToCharArray();<br />
            Array.Reverse(chars);<br />
            return new string(chars);<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://www.thejackol.com/2005/07/12/reverse-a-string-in-c/comment-page-1/#comment-49258</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Fri, 02 Mar 2007 11:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=159#comment-49258</guid>
		<description>public static string ReverseString(string input)
        {
            char[] forward = input.ToCharArray();
            StringBuilder reverse = new StringBuilder(input.Length);

            for (int i = input.Length - 1; i &gt;= 0; i--)
                reverse.Append(forward[i]);

            return reverse.ToString();
        }</description>
		<content:encoded><![CDATA[<p>public static string ReverseString(string input)<br />
        {<br />
            char[] forward = input.ToCharArray();<br />
            StringBuilder reverse = new StringBuilder(input.Length);</p>
<p>            for (int i = input.Length &#8211; 1; i &gt;= 0; i&#8212;)<br />
                reverse.Append(forward[i]);</p>
<p>            return reverse.ToString();<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikhail Esteves</title>
		<link>http://www.thejackol.com/2005/07/12/reverse-a-string-in-c/comment-page-1/#comment-30794</link>
		<dc:creator>Mikhail Esteves</dc:creator>
		<pubDate>Thu, 31 Aug 2006 17:30:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=159#comment-30794</guid>
		<description>Ishita: There&#039;s a solution here - http://www.csharphelp.com/archives/archive12.html

You could also try something like this (not tested).

public bool isPalindrome (string str)
{
  int length = str.Length;
  if (length &lt;= 1) return true;
  if (str [0] == str [length-1])
  {
    length = length - 2;
    return isPalindrome (str+1);
  }
  else
    return false;
}</description>
		<content:encoded><![CDATA[<p>Ishita: There&#8217;s a solution here &#8211; <a href="http://www.csharphelp.com/archives/archive12.html" rel="nofollow">http://www.csharphelp.com/archives/archive12.html</a></p>
<p>You could also try something like this (not tested).</p>
<p>public bool isPalindrome (string str)<br />
{<br />
  int length = str.Length;<br />
  if (length < = 1) return true;<br />
  if (str [0] == str [length-1])<br />
  {<br />
    length = length &#8211; 2;<br />
    return isPalindrome (str+1);<br />
  }<br />
  else<br />
    return false;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ishita</title>
		<link>http://www.thejackol.com/2005/07/12/reverse-a-string-in-c/comment-page-1/#comment-30778</link>
		<dc:creator>Ishita</dc:creator>
		<pubDate>Thu, 31 Aug 2006 12:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=159#comment-30778</guid>
		<description>Short and too the point. Nice post. Do you know how to write a string palendrome program in C# ?</description>
		<content:encoded><![CDATA[<p>Short and too the point. Nice post. Do you know how to write a string palendrome program in C# ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.thejackol.com/2005/07/12/reverse-a-string-in-c/comment-page-1/#comment-22900</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 07 May 2006 00:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=159#comment-22900</guid>
		<description>Detailed discussions; do not miss the link in the end to the unmanaged reversal discussion.</description>
		<content:encoded><![CDATA[<p>Detailed discussions; do not miss the link in the end to the unmanaged reversal discussion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.thejackol.com/2005/07/12/reverse-a-string-in-c/comment-page-1/#comment-13367</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 05 Sep 2005 15:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=159#comment-13367</guid>
		<description>http://www.livejournal.com/users/his_insignifica/10122.html</description>
		<content:encoded><![CDATA[<p><a href="http://www.livejournal.com/users/his_insignifica/10122.html" rel="nofollow">http://www.livejournal.com/users/his_insignifica/10122.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.thejackol.com/2005/07/12/reverse-a-string-in-c/comment-page-1/#comment-12273</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 19 Jul 2005 15:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.thejackol.com/?p=159#comment-12273</guid>
		<description>umm.....  Chars.Reverse()</description>
		<content:encoded><![CDATA[<p>umm&#8230;..  Chars.Reverse()</p>
]]></content:encoded>
	</item>
</channel>
</rss>
