<?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: C#: How to check for duplicates</title>
	<atom:link href="http://www.geekality.net/2010/01/19/how-to-check-for-duplicates/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekality.net/2010/01/19/how-to-check-for-duplicates/</link>
	<description>With a hint of Social Ineptitude</description>
	<lastBuildDate>Tue, 07 Feb 2012 09:05:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: MattE303</title>
		<link>http://www.geekality.net/2010/01/19/how-to-check-for-duplicates/#comment-9899</link>
		<dc:creator>MattE303</dc:creator>
		<pubDate>Fri, 14 Oct 2011 17:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekality.net/?p=884#comment-9899</guid>
		<description>very useful Torleif, thanks!</description>
		<content:encoded><![CDATA[<p>very useful Torleif, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Torleif</title>
		<link>http://www.geekality.net/2010/01/19/how-to-check-for-duplicates/#comment-6045</link>
		<dc:creator>Torleif</dc:creator>
		<pubDate>Wed, 11 May 2011 20:12:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekality.net/?p=884#comment-6045</guid>
		<description>Thanks for the tip! Added the explanation.

On the matter of your simplification, the code might look simpler to you, but it would make it less efficient again since it would have to go through all the subjects first to do the filtering. The code in my post returns immediately if it finds a duplicate.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip! Added the explanation.</p>
<p>On the matter of your simplification, the code might look simpler to you, but it would make it less efficient again since it would have to go through all the subjects first to do the filtering. The code in my post returns immediately if it finds a duplicate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mtazva</title>
		<link>http://www.geekality.net/2010/01/19/how-to-check-for-duplicates/#comment-6043</link>
		<dc:creator>mtazva</dc:creator>
		<pubDate>Wed, 11 May 2011 15:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekality.net/?p=884#comment-6043</guid>
		<description>It might help for those who find this post to note why the first implementation is bad, so that they can identify similar issues in other scenarios.

Also, you could simplify the for loop in your solution using a LINQ statement as follows:

return subjects.Where(s =&gt; !set.Add(s)).Any();</description>
		<content:encoded><![CDATA[<p>It might help for those who find this post to note why the first implementation is bad, so that they can identify similar issues in other scenarios.</p>
<p>Also, you could simplify the for loop in your solution using a LINQ statement as follows:</p>
<p>return subjects.Where(s =&gt; !set.Add(s)).Any();</p>
]]></content:encoded>
	</item>
</channel>
</rss>

