<?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>Creating Custom Aggregate Functions in LINQ</title><link>http://blogs.msdn.com/jomo_fisher/archive/2005/09/15/467804.aspx</link><description>Jomo Fisher —Adriane asks whether it’s possible to create your own aggregate function like Sum, Avg, Count, etc. For object queries, the answer is yes. First, let’s look at the actual implementation of Sum: public static int Sum( this IEnumerable &amp;lt;</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Creating Custom Aggregate Functions in LINQ</title><link>http://blogs.msdn.com/jomo_fisher/archive/2005/09/15/467804.aspx#467953</link><pubDate>Fri, 16 Sep 2005 01:15:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:467953</guid><dc:creator>Gabe</dc:creator><description>Odds are the sum of the squares of many ints will exceed the size on an int. Is it possible to do this:&lt;br&gt;&lt;br&gt;public static double SumSquares(this IEnumerable&amp;lt;int&amp;gt; source)</description></item><item><title>The LINQ Project</title><link>http://blogs.msdn.com/jomo_fisher/archive/2005/09/15/467804.aspx#468830</link><pubDate>Fri, 16 Sep 2005 17:38:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:468830</guid><dc:creator>Paul Mooney </dc:creator><description>Now, what we're doing here with Project LINQ is that we are taking the concepts of query, step operations,...</description></item><item><title>re: Creating Custom Aggregate Functions in LINQ</title><link>http://blogs.msdn.com/jomo_fisher/archive/2005/09/15/467804.aspx#470741</link><pubDate>Sun, 18 Sep 2005 05:15:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:470741</guid><dc:creator>Dan Miser</dc:creator><description>This doesn't appear to work with Beta 2 and the C# LINQ Preview found on PDC disc 4. If I include the &amp;quot;this&amp;quot; modifier in SumSquares, I get tons of compile errors during build. If I remove it, I get the error &amp;quot;System.Array does not contain a definition for SumSqaures&amp;quot;.&lt;br&gt;&lt;br&gt;I clearly remember Anders saying &amp;quot;this&amp;quot; was required, so I'm guessing it's a difference between the bits we have and you have?&lt;br&gt;</description></item><item><title>re: Creating Custom Aggregate Functions in LINQ</title><link>http://blogs.msdn.com/jomo_fisher/archive/2005/09/15/467804.aspx#471364</link><pubDate>Mon, 19 Sep 2005 20:49:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:471364</guid><dc:creator>PiersH</dc:creator><description>alternatively:&lt;br&gt;&lt;br&gt;    return source.Fold ((sum, x) =&amp;gt; sum + x*x);</description></item></channel></rss>