<?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: 7 tricks to simplify your programs with LINQ</title>
	<atom:link href="http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/feed/" rel="self" type="application/rss+xml" />
	<link>http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/</link>
	<description>On programming, technology, and random things of interest</description>
	<lastBuildDate>Thu, 02 Feb 2012 01:36:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: LINQ: Geometric sequence &#171; insertcode</title>
		<link>http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/comment-page-1/#comment-36499</link>
		<dc:creator>LINQ: Geometric sequence &#171; insertcode</dc:creator>
		<pubDate>Sun, 22 Jan 2012 16:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/#comment-36499</guid>
		<description>[...] Někdy se může hodit pattern pro spočítání geometrické řady. Obzvláště pokud počítáte zůročení atd… Problém funkce Aggregate je v tom, že vrací pouze jeden výsledek. U geometrické řady však potřebujete výpočet nad všemi předešlými prvky, toho dosáhnete pomocí funkce Range. Mnoho hezkých příkladů pro použití Enumerable naleznete zde. [...]</description>
		<content:encoded><![CDATA[<p>[...] Někdy se může hodit pattern pro spočítání geometrické řady. Obzvláště pokud počítáte zůročení atd… Problém funkce Aggregate je v tom, že vrací pouze jeden výsledek. U geometrické řady však potřebujete výpočet nad všemi předešlými prvky, toho dosáhnete pomocí funkce Range. Mnoho hezkých příkladů pro použití Enumerable naleznete zde. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim B.</title>
		<link>http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/comment-page-1/#comment-33152</link>
		<dc:creator>Tim B.</dc:creator>
		<pubDate>Mon, 19 Dec 2011 17:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/#comment-33152</guid>
		<description>Hi Igor,
What a great post, I have forwarded the URL to all my team members!

I have noticed that item 5) [while still immensely useful] might be obsolete given the advent of Covariance and Contravariance of generic type parameters in C# 4.0.

&lt;code&gt;
// A collection declared to contain elements of a derived type, Spoon.
List&lt;Spoon&gt; spoonList = new List&lt;Spoon&gt; { ... };  
// A distribution station handling any IUtensil type
IFacility&lt;IUtensil&gt; facility = new CanteenFacility&lt;IUtensil&gt;();  
facility.Distribute(spoonList);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Igor,<br />
What a great post, I have forwarded the URL to all my team members!</p>
<p>I have noticed that item 5) [while still immensely useful] might be obsolete given the advent of Covariance and Contravariance of generic type parameters in C# 4.0.</p>
<p><code><br />
// A collection declared to contain elements of a derived type, Spoon.<br />
List&lt;Spoon&gt; spoonList = new List&lt;Spoon&gt; { ... };<br />
// A distribution station handling any IUtensil type<br />
IFacility&lt;IUtensil&gt; facility = new CanteenFacility&lt;IUtensil&gt;();<br />
facility.Distribute(spoonList);<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renjith Maxy</title>
		<link>http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/comment-page-1/#comment-3613</link>
		<dc:creator>Renjith Maxy</dc:creator>
		<pubDate>Tue, 10 May 2011 10:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/#comment-3613</guid>
		<description>Great post, keep on posting the tricks</description>
		<content:encoded><![CDATA[<p>Great post, keep on posting the tricks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: garage proofing</title>
		<link>http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/comment-page-1/#comment-2472</link>
		<dc:creator>garage proofing</dc:creator>
		<pubDate>Sat, 26 Feb 2011 01:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/#comment-2472</guid>
		<description>still news about LINQ, is this new programming language?</description>
		<content:encoded><![CDATA[<p>still news about LINQ, is this new programming language?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: garage weatherproofing</title>
		<link>http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/comment-page-1/#comment-1924</link>
		<dc:creator>garage weatherproofing</dc:creator>
		<pubDate>Mon, 13 Dec 2010 04:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/#comment-1924</guid>
		<description>Outstanding info over again! I am looking forward for your next post;)</description>
		<content:encoded><![CDATA[<p>Outstanding info over again! I am looking forward for your next post;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunny</title>
		<link>http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/comment-page-1/#comment-1772</link>
		<dc:creator>sunny</dc:creator>
		<pubDate>Wed, 01 Dec 2010 10:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/#comment-1772</guid>
		<description>var subsets = from m in Enumerable.Range(0, 1 &lt;&lt; arr.Length)
              select
                  from i in Enumerable.Range(0, arr.Length)
                  where (m &amp; (1 &lt;&lt; i)) != 0
                  select arr[i];
sir can u explain me this code ,i don understand flow for this query which query will execute either outer one or inner one....plz explain in breif if possible send me some written demo on my mail sunnyspydee@gmail.com</description>
		<content:encoded><![CDATA[<p>var subsets = from m in Enumerable.Range(0, 1 &lt;&lt; arr.Length)<br />
              select<br />
                  from i in Enumerable.Range(0, arr.Length)<br />
                  where (m &amp; (1 &lt;&lt; i)) != 0<br />
                  select arr[i];<br />
sir can u explain me this code ,i don understand flow for this query which query will execute either outer one or inner one&#8230;.plz explain in breif if possible send me some written demo on my mail <a href="mailto:sunnyspydee@gmail.com">sunnyspydee@gmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Borodin</title>
		<link>http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/comment-page-1/#comment-1227</link>
		<dc:creator>Andrew Borodin</dc:creator>
		<pubDate>Wed, 06 Oct 2010 05:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/#comment-1227</guid>
		<description>Because 23/07 is 3, and 3/1981 is 0;
You cannot convert 0 to DateTime</description>
		<content:encoded><![CDATA[<p>Because 23/07 is 3, and 3/1981 is 0;<br />
You cannot convert 0 to DateTime</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/comment-page-1/#comment-1218</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 04 Oct 2010 19:13:07 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/#comment-1218</guid>
		<description>In the above programme doj will not be print......what is the error????</description>
		<content:encoded><![CDATA[<p>In the above programme doj will not be print&#8230;&#8230;what is the error????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/comment-page-1/#comment-1217</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 04 Oct 2010 19:11:21 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/#comment-1217</guid>
		<description>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CALINQ1
{
    class clsemployee5
    {
          public int pempid
            {set; get;}

            public string pename
            {set;get;}
            
            public string pdesignation
            {set;get;}

            public DateTime pdoj
            {set;get;}

            public Double psal
            {set;get;}

            public int deptno
            {set;get;}
        }
    class clsemployee14
    {
        static void Main(string[] args)
        {
            List emplist = new List()
             {
                 new clsemployee5{pempid=101,pename=&quot;shiva&quot;,pdesignation=&quot;ceo&quot;,pdoj=23/07/1981,psal=10000,deptno=10}
        };
            Console.WriteLine(&quot;employee list is:-&quot;);
            foreach(var i in emplist)
                Console.WriteLine(i.pempid+&quot; &quot;+i.pename+&quot; &quot;+i.pdesignation+&quot; &quot;+i.pdoj+&quot; &quot;+i.psal+&quot; &quot;+i.deptno);
            Console.Read();
        }
    }
}</description>
		<content:encoded><![CDATA[<p>using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;</p>
<p>namespace CALINQ1<br />
{<br />
    class clsemployee5<br />
    {<br />
          public int pempid<br />
            {set; get;}</p>
<p>            public string pename<br />
            {set;get;}</p>
<p>            public string pdesignation<br />
            {set;get;}</p>
<p>            public DateTime pdoj<br />
            {set;get;}</p>
<p>            public Double psal<br />
            {set;get;}</p>
<p>            public int deptno<br />
            {set;get;}<br />
        }<br />
    class clsemployee14<br />
    {<br />
        static void Main(string[] args)<br />
        {<br />
            List emplist = new List()<br />
             {<br />
                 new clsemployee5{pempid=101,pename=&#8221;shiva&#8221;,pdesignation=&#8221;ceo&#8221;,pdoj=23/07/1981,psal=10000,deptno=10}<br />
        };<br />
            Console.WriteLine(&#8220;employee list is:-&#8221;);<br />
            foreach(var i in emplist)<br />
                Console.WriteLine(i.pempid+&#8221; &#8220;+i.pename+&#8221; &#8220;+i.pdesignation+&#8221; &#8220;+i.pdoj+&#8221; &#8220;+i.psal+&#8221; &#8220;+i.deptno);<br />
            Console.Read();<br />
        }<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: May 20th Links: ASP.NET, ASP.NET AJAX, .NET, Visual Studio, Silverlight, WPF &#124; OOP &#8211; Object Oriented Programing</title>
		<link>http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/comment-page-1/#comment-908</link>
		<dc:creator>May 20th Links: ASP.NET, ASP.NET AJAX, .NET, Visual Studio, Silverlight, WPF &#124; OOP &#8211; Object Oriented Programing</dc:creator>
		<pubDate>Tue, 04 May 2010 05:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://igoro.com/archive/7-tricks-to-simplify-your-programs-with-linq/#comment-908</guid>
		<description>[...] 7 Ways to Simplify your code with LINQ: Igor Ostrovsky has a great blog post that talks about new code techniques you can use to improve your code using .NET 3.5 and the new language and LINQ features in it. [...]</description>
		<content:encoded><![CDATA[<p>[...] 7 Ways to Simplify your code with LINQ: Igor Ostrovsky has a great blog post that talks about new code techniques you can use to improve your code using .NET 3.5 and the new language and LINQ features in it. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

