<?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: Find the Root of a C# Hierarchy</title>
	<atom:link href="http://www.csharp411.com/find-the-root-of-a-c-hierarchy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharp411.com/find-the-root-of-a-c-hierarchy/</link>
	<description>C# Development</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:14:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: timm</title>
		<link>http://www.csharp411.com/find-the-root-of-a-c-hierarchy/#comment-828</link>
		<dc:creator>timm</dc:creator>
		<pubDate>Mon, 27 Oct 2008 14:33:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/find-the-root-of-a-c-hierarchy/#comment-828</guid>
		<description>Hey Mikey, I like it! (classic cereal commercial reference)

Though the recursive method is 34% slower on my PC (with an average hierarchy depth of 4) it&#039;s nice and clean.</description>
		<content:encoded><![CDATA[<p>Hey Mikey, I like it! (classic cereal commercial reference)</p>
<p>Though the recursive method is 34% slower on my PC (with an average hierarchy depth of 4) it&#8217;s nice and clean.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Stortz</title>
		<link>http://www.csharp411.com/find-the-root-of-a-c-hierarchy/#comment-827</link>
		<dc:creator>Mike Stortz</dc:creator>
		<pubDate>Thu, 23 Oct 2008 13:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/find-the-root-of-a-c-hierarchy/#comment-827</guid>
		<description>How about:

public MyObject GetRoot()
{
    if Parent == null
        return this;
    else
        return Parent.GetRoot();
}</description>
		<content:encoded><![CDATA[<p>How about:</p>
<p>public MyObject GetRoot()<br />
{<br />
    if Parent == null<br />
        return this;<br />
    else<br />
        return Parent.GetRoot();<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

