<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>LINQ Farm: Using Distinct and Avoiding Lambdas</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx</link><description>This is the fourth in a series of articles on LINQ . This article focuses on an important operator from the list of 49 LINQ operators available in the May CTP. This operator, called Distinct() , is different from the other operators we have seen because</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Community Convergence XII</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#1120383</link><pubDate>Wed, 22 Nov 2006 08:54:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1120383</guid><dc:creator>Charlie Calvert's Community Blog</dc:creator><description>&lt;p&gt;Welcome to the twelfth Community Convergence . Please go here to post comments. This edition of Community&lt;/p&gt;
</description></item><item><title>Charlie Calvert's LINQ posts</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#1211748</link><pubDate>Tue, 05 Dec 2006 19:08:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1211748</guid><dc:creator>Fabrice's weblog</dc:creator><description>&lt;p&gt;Charlie Calvert , who some of you may know for the years he spent at Borland or for his books on Delphi,&lt;/p&gt;
</description></item><item><title>Charlie Calvert's LINQ posts</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#1211754</link><pubDate>Tue, 05 Dec 2006 19:08:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1211754</guid><dc:creator>Linq in Action News</dc:creator><description>&lt;p&gt;Charlie Calvert , who some of you may know for the years he spent at Borland or for his books on Delphi,&lt;/p&gt;
</description></item><item><title>Charlie Calvert's LINQ posts</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#1211768</link><pubDate>Tue, 05 Dec 2006 19:09:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1211768</guid><dc:creator>Fabrice's weblog</dc:creator><description>&lt;p&gt;Charlie Calvert , who some of you may know for the years he spent at Borland or for his books on Delphi,&lt;/p&gt;
</description></item><item><title> &gt; Fabrice's weblog: Charlie Calvert's LINQ posts</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#1212614</link><pubDate>Tue, 05 Dec 2006 21:48:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1212614</guid><dc:creator>Prog</dc:creator><description>&lt;p&gt;Charlie Calvert , who some of you may know for the years he spent at Borland or for his books on Delphi,&lt;/p&gt;
</description></item><item><title>LINQ Farm: LINQ Sets</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#1378618</link><pubDate>Fri, 29 Dec 2006 09:10:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1378618</guid><dc:creator>Charlie Calvert's Community Blog</dc:creator><description>&lt;p&gt;This is the sixth in a series of articles on LINQ. In this post the focus will be on the LINQ Set operators.&lt;/p&gt;
</description></item><item><title>LINQ to SQL (C#) and the DISTINCT Operator</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#7898305</link><pubDate>Tue, 26 Feb 2008 06:45:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7898305</guid><dc:creator>Kyle Roche</dc:creator><description>&lt;p&gt;This is a great article on using DISTINCT operator with LINQ.&lt;/p&gt;
</description></item><item><title>re: LINQ Farm: Using Distinct and Avoiding Lambdas</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#8293722</link><pubDate>Mon, 17 Mar 2008 22:00:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8293722</guid><dc:creator>Kyle Roche</dc:creator><description>&lt;p&gt;Hi, what if i want to select all columns using a distinct operator? &lt;/p&gt;
</description></item><item><title>Good site</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#8672014</link><pubDate>Mon, 30 Jun 2008 20:48:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8672014</guid><dc:creator>Olgunka-pj</dc:creator><description>&lt;p&gt;&amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index4.opolog.com"&gt;http://index4.opolog.com&lt;/a&gt; &amp;gt;kentucky bluegrass festival&amp;lt;/a&amp;gt; &amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index1.opolog.com"&gt;http://index1.opolog.com&lt;/a&gt; &amp;gt;coogi sunglasses&amp;lt;/a&amp;gt; &amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index2.opolog.com"&gt;http://index2.opolog.com&lt;/a&gt; &amp;gt;chatham womans club&amp;lt;/a&amp;gt; &amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index3.opolog.com"&gt;http://index3.opolog.com&lt;/a&gt; &amp;gt;free comedy videos&amp;lt;/a&amp;gt; &amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index5.opolog.com"&gt;http://index5.opolog.com&lt;/a&gt; &amp;gt;wet ass&amp;lt;/a&amp;gt; &lt;/p&gt;
</description></item><item><title>Good site</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#8811654</link><pubDate>Sun, 03 Aug 2008 06:39:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8811654</guid><dc:creator>balabo2_al</dc:creator><description>&lt;p&gt;&amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index1.tcenip.com"&gt;http://index1.tcenip.com&lt;/a&gt; &amp;gt;wnbc photos&amp;lt;/a&amp;gt; &amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index2.tcenip.com"&gt;http://index2.tcenip.com&lt;/a&gt; &amp;gt;p.googole&amp;lt;/a&amp;gt; &amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index3.tcenip.com"&gt;http://index3.tcenip.com&lt;/a&gt; &amp;gt;multnomah county oregon&amp;lt;/a&amp;gt; &amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index4.tcenip.com"&gt;http://index4.tcenip.com&lt;/a&gt; &amp;gt;georgia o keefes paintings pic&amp;lt;/a&amp;gt; &amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index5.tcenip.com"&gt;http://index5.tcenip.com&lt;/a&gt; &amp;gt;1.99 perfume&amp;lt;/a&amp;gt; &lt;/p&gt;
</description></item><item><title>Good site</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#8811657</link><pubDate>Sun, 03 Aug 2008 06:39:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8811657</guid><dc:creator>balabo2_al</dc:creator><description>&lt;p&gt;&amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index1.tcenip.com"&gt;http://index1.tcenip.com&lt;/a&gt; &amp;gt;wnbc photos&amp;lt;/a&amp;gt; &amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index2.tcenip.com"&gt;http://index2.tcenip.com&lt;/a&gt; &amp;gt;p.googole&amp;lt;/a&amp;gt; &amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index3.tcenip.com"&gt;http://index3.tcenip.com&lt;/a&gt; &amp;gt;multnomah county oregon&amp;lt;/a&amp;gt; &amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index4.tcenip.com"&gt;http://index4.tcenip.com&lt;/a&gt; &amp;gt;georgia o keefes paintings pic&amp;lt;/a&amp;gt; &amp;lt;a href= &lt;a rel="nofollow" target="_new" href="http://index5.tcenip.com"&gt;http://index5.tcenip.com&lt;/a&gt; &amp;gt;1.99 perfume&amp;lt;/a&amp;gt; &lt;/p&gt;
</description></item><item><title>re: LINQ Farm: Using Distinct and Avoiding Lambdas</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#9009684</link><pubDate>Tue, 21 Oct 2008 17:28:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9009684</guid><dc:creator>Roberto</dc:creator><description>&lt;p&gt;This article is not so great, it flies over casual things. &lt;/p&gt;
&lt;p&gt;Why dont you talk about Distinct and the IEqualityComparer that raise an exception if the linq select manages a class object and not a basic type int, string...&lt;/p&gt;
&lt;p&gt;I'm talking about the &amp;lt;Unsupported overload used for query operator 'Distinct'.&amp;gt;&lt;/p&gt;
&lt;p&gt;class MyClassComparer : IEqualityComparer&amp;lt;MyClass&amp;gt; ...&lt;/p&gt;
&lt;p&gt;class MyClass ...&lt;/p&gt;
&lt;p&gt;var result = (from e in DC.MyClass&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where .....&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; select e).Distinct( new MyClassComparer )....&lt;/p&gt;
&lt;p&gt;This sample always generates the exception not supported. &lt;/p&gt;
&lt;p&gt;Great linq !!! Maybe, maybe not&lt;/p&gt;
</description></item><item><title>LINQ and DISTINCT using IEqualityComparer</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#9047705</link><pubDate>Thu, 06 Nov 2008 11:25:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9047705</guid><dc:creator>Across boundaries - ( Cipto )</dc:creator><description>&lt;p&gt;Lagi kurang kerjaan nich .... :P tapi bukan berarti minta boss(Buat bos gue kalo baca artikel ini) this&lt;/p&gt;
</description></item><item><title>re: LINQ Farm: Using Distinct and Avoiding Lambdas</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#9484312</link><pubDate>Tue, 17 Mar 2009 21:13:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9484312</guid><dc:creator>Mukesh</dc:creator><description>&lt;p&gt;Short and sweet..&lt;/p&gt;
&lt;p&gt;Good one... Thank you...&lt;/p&gt;
</description></item><item><title>re: LINQ Farm: Using Distinct and Avoiding Lambdas</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#9506288</link><pubDate>Wed, 25 Mar 2009 07:01:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9506288</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Thanks a lot for this post, very helpful especially when you described why Distinct has to be called as opposed to being part of the sugar syntax.&lt;/p&gt;
</description></item><item><title>re: LINQ Farm: Using Distinct and Avoiding Lambdas</title><link>http://blogs.msdn.com/charlie/archive/2006/11/19/linq-farm-group-and-distinct.aspx#9925956</link><pubDate>Fri, 20 Nov 2009 02:54:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9925956</guid><dc:creator>Usman</dc:creator><description>&lt;p&gt;although this article is fine. but it not give any information about Distinct() when using with the generic lists and we have to select the records from those lists not just one item. what we have to do then??? what linq provides us then because it supports only the primitive types like int,string,long etc,,&lt;/p&gt;
&lt;p&gt;could any one give me suggestion over this???&lt;/p&gt;
</description></item></channel></rss>