<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8569290713946758124</atom:id><lastBuildDate>Mon, 07 Oct 2024 06:30:46 +0000</lastBuildDate><category>videos</category><category>life</category><category>SK8</category><category>funny</category><category>games</category><category>quotes</category><category>.NET</category><category>90&#39;s</category><category>Bruce Lee</category><category>C#</category><category>Clarke</category><category>Google</category><category>Megaramp</category><category>Newton</category><category>Personal Mission Statement</category><category>Priorities</category><category>The Star</category><category>animal chin</category><category>answers</category><category>black ops</category><category>blogging</category><category>bones brigade</category><category>career</category><category>code</category><category>code samples</category><category>coders</category><category>copyrights</category><category>creep</category><category>diablo</category><category>divorce</category><category>do</category><category>download</category><category>fathers</category><category>guides</category><category>happiness</category><category>infosec</category><category>inherit</category><category>inspiration</category><category>jQuery</category><category>javascript</category><category>linq</category><category>love</category><category>lyrics</category><category>movies</category><category>music</category><category>old school</category><category>passion</category><category>privacy</category><category>questions</category><category>radiohead</category><category>rights</category><category>security</category><category>short stories</category><category>success</category><category>the wall</category><category>thoughts</category><category>tools</category><category>trust</category><category>watchdogs</category><title>codeshark.me</title><description></description><link>http://fjellsoft.blogspot.com/</link><managingEditor>noreply@blogger.com (Unknown)</managingEditor><generator>Blogger</generator><openSearch:totalResults>32</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-6475583347485185381</guid><pubDate>Mon, 23 Sep 2013 00:24:00 +0000</pubDate><atom:updated>2013-09-22T17:24:03.709-07:00</atom:updated><title>Man vs. Wild: Homemade Vehicle</title><description>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;//www.youtube.com/embed/GHaBniC5iZ4&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;</description><link>http://fjellsoft.blogspot.com/2013/09/man-vs-wild-homemade-vehicle.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-2949912367055834503</guid><pubDate>Mon, 23 Sep 2013 00:20:00 +0000</pubDate><atom:updated>2013-09-22T17:20:36.274-07:00</atom:updated><title>Man vs. Wild: Parachute Malfunction</title><description>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;//www.youtube.com/embed/amGohvCT8CA&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;</description><link>http://fjellsoft.blogspot.com/2013/09/man-vs-wild-parachute-malfunction.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-648924281390690517</guid><pubDate>Mon, 23 Sep 2013 00:18:00 +0000</pubDate><atom:updated>2013-09-22T17:18:54.989-07:00</atom:updated><title>Bear Grylls: Cell Phone Firestarter</title><description>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;//www.youtube.com/embed/mSanUZKgd1Q&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;</description><link>http://fjellsoft.blogspot.com/2013/09/bear-grylls-cell-phone-firestarter.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-6140107956018800062</guid><pubDate>Sun, 22 Sep 2013 18:14:00 +0000</pubDate><atom:updated>2013-09-22T11:14:43.737-07:00</atom:updated><title>Child of the 90s | Internet Explorer</title><description>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;//www.youtube.com/embed/qkM6RJf15cg&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;</description><link>http://fjellsoft.blogspot.com/2013/09/child-of-90s-internet-explorer.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-743021033587190742</guid><pubDate>Sun, 22 Sep 2013 02:30:00 +0000</pubDate><atom:updated>2013-09-23T07:54:45.170-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">funny</category><category domain="http://www.blogger.com/atom/ns#">videos</category><title>Monkey on Equality: &amp;quot;WTF?!&amp;quot;</title><description>&lt;div style=&quot;margin-left:auto;margin-right:auto;width:auto;height:auto;&quot;&gt;
&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;//www.youtube-nocookie.com/embed/-dMoK48QGL8?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;</description><link>http://fjellsoft.blogspot.com/2013/09/monkey-on-equality-wtf.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-4113128667047966987</guid><pubDate>Sun, 22 Sep 2013 00:15:00 +0000</pubDate><atom:updated>2013-09-21T17:15:18.940-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">funny</category><category domain="http://www.blogger.com/atom/ns#">videos</category><title>Dane Cook: The Vicious Circle</title><description>&lt;div&gt;&lt;iframe allowfullscreen=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;//www.youtube.com/embed/-2SJ25aY1pE&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
</description><link>http://fjellsoft.blogspot.com/2013/09/dane-cook-vicious-circle.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-2311891197886113482</guid><pubDate>Mon, 14 Jan 2013 01:28:00 +0000</pubDate><atom:updated>2013-01-13T18:28:25.002-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">download</category><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">jQuery</category><category domain="http://www.blogger.com/atom/ns#">tools</category><title>jQuery File Downloader</title><description>&lt;a href=&quot;http://blogupstairs.com/downloadr-jquery-file-download-plugin/&quot; target=&quot;_blank&quot;&gt;Downloadr Link&lt;/a&gt;</description><link>http://fjellsoft.blogspot.com/2013/01/jquery-file-downloader.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-1076079697836332621</guid><pubDate>Sun, 13 Jan 2013 10:16:00 +0000</pubDate><atom:updated>2013-01-13T03:34:34.043-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Bruce Lee</category><category domain="http://www.blogger.com/atom/ns#">inspiration</category><category domain="http://www.blogger.com/atom/ns#">videos</category><title>Bruce Lee: In His Own Words</title><description>&lt;a href=&quot;http://www.youtube.com/embed/UU84WUAlqnI&quot; target=&quot;_blank&quot; title=&quot;Bruce Lee&quot;&gt;A Must See Documentary&lt;/a&gt;...Inspirational! &lt;br/&gt;&lt;br/&gt;&lt;div class=&quot;separator&quot;style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://lh4.googleusercontent.com/-I9kNva-emfE/UPKNuPJV-fI/AAAAAAAADpU/K3a8dAuLLss/s640/blogger-image-949958737.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://lh4.googleusercontent.com/-I9kNva-emfE/UPKNuPJV-fI/AAAAAAAADpU/K3a8dAuLLss/s640/blogger-image-949958737.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;br/&gt;&lt;br/&gt;&lt;div class=&quot;separator&quot;style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://lh3.googleusercontent.com/-h5uItkGBXcU/UPKNtVKzVMI/AAAAAAAADpM/5ItmSXl2sUo/s640/blogger-image--550533016.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://lh3.googleusercontent.com/-h5uItkGBXcU/UPKNtVKzVMI/AAAAAAAADpM/5ItmSXl2sUo/s640/blogger-image--550533016.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;br/&gt;&lt;br/&gt;&lt;div class=&quot;separator&quot;style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://lh3.googleusercontent.com/-ui0iNPdk9XI/UPKNsmCa6mI/AAAAAAAADpE/0WvRbLBg_CI/s640/blogger-image-1322965979.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://lh3.googleusercontent.com/-ui0iNPdk9XI/UPKNsmCa6mI/AAAAAAAADpE/0WvRbLBg_CI/s640/blogger-image-1322965979.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</description><link>http://fjellsoft.blogspot.com/2013/01/bruce-lee-in-his-own-words.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh4.googleusercontent.com/-I9kNva-emfE/UPKNuPJV-fI/AAAAAAAADpU/K3a8dAuLLss/s72-c/blogger-image-949958737.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-349128280095960316</guid><pubDate>Sat, 05 Jan 2013 05:16:00 +0000</pubDate><atom:updated>2013-01-04T22:16:25.291-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">videos</category><title>Business Horse!!</title><description>&lt;iframe width=&quot;640&quot; height=&quot;360&quot; src=&quot;https://www.youtube.com/embed/L16Tjo01iGE?feature=player_detailpage&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;</description><link>http://fjellsoft.blogspot.com/2013/01/business-horse.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/L16Tjo01iGE/default.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-1647864984253105635</guid><pubDate>Sat, 05 Jan 2013 05:04:00 +0000</pubDate><atom:updated>2013-01-04T22:04:45.037-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">black ops</category><category domain="http://www.blogger.com/atom/ns#">games</category><category domain="http://www.blogger.com/atom/ns#">videos</category><title>IF Black Ops 2 were a girl...</title><description>&lt;iframe width=&quot;640&quot; height=&quot;360&quot; src=&quot;https://www.youtube.com/embed/8lggoi_z_4w?feature=player_detailpage&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;</description><link>http://fjellsoft.blogspot.com/2013/01/if-black-ops-2-were-girl.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/8lggoi_z_4w/default.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-9053485424417768724</guid><pubDate>Sat, 05 Jan 2013 05:03:00 +0000</pubDate><atom:updated>2013-01-04T22:03:20.341-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">diablo</category><category domain="http://www.blogger.com/atom/ns#">games</category><category domain="http://www.blogger.com/atom/ns#">videos</category><title>IF Diablo III was a girl...</title><description>&lt;iframe width=&quot;640&quot; height=&quot;360&quot; src=&quot;https://www.youtube.com/embed/I43GUnZN_s4?feature=player_detailpage&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;</description><link>http://fjellsoft.blogspot.com/2013/01/if-diablo-iii-was-girl.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/I43GUnZN_s4/default.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-5715624508345878294</guid><pubDate>Tue, 11 Dec 2012 05:52:00 +0000</pubDate><atom:updated>2012-12-10T22:52:13.584-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">.NET</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">code samples</category><category domain="http://www.blogger.com/atom/ns#">guides</category><category domain="http://www.blogger.com/atom/ns#">linq</category><title>Linq: Intro</title><description>&lt;article&gt;&lt;br /&gt;
&lt;cite&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query&quot; target=&quot;_blank&quot; title=&quot;LINQ Intro&quot;&gt;Original Article&lt;/a&gt;&lt;/cite&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h1 class=&quot;fn&quot; id=&quot;ctl00_ArticleTitle&quot;&gt;Introducing LINQ—Language Integrated Query&lt;/h1&gt;&lt;div class=&quot;entry&quot;&gt;     By &lt;span class=&quot;author&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/script/Membership/View.aspx?mid=4290147&quot; rel=&quot;author&quot;&gt;Mike_Liu&lt;/a&gt;&lt;/span&gt;,       &lt;span class=&quot;date&quot;&gt;19 May 2011&lt;/span&gt;                &lt;/div&gt;&lt;!-- Yes, I&#39;m weak --&gt;     &lt;br /&gt;
&lt;table class=&quot;container-rating&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;div class=&quot;tooltip anchorLink&quot; id=&quot;ctl00_CurRat&quot; name=&quot;CurRat_199060&quot; style=&quot;cursor: pointer;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;small-text&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;nowrap&quot;&gt;&lt;span id=&quot;ctl00_ArticleRating_VI&quot;&gt;&lt;div class=&quot;nowrap rating-stars-large&quot; style=&quot;height: 19px; position: relative; width: 139px;&quot;&gt;&lt;div class=&quot;clipped align-left float-left&quot; style=&quot;height: 19px; width: 136px;&quot;&gt;&lt;img src=&quot;http://s.codeproject.com/script/Ratings/Images/stars-fill-lg.png&quot; style=&quot;border-width: 0px;&quot; /&gt;  &lt;/div&gt;&lt;div class=&quot;clipped&quot; style=&quot;height: 19px; position: relative; width: 3px;&quot;&gt;&lt;img src=&quot;http://s.codeproject.com/script/Ratings/Images/stars-empty-lg.png&quot; style=&quot;border-width: 0px; position: absolute; right: 0px; top: 0px;&quot; /&gt;  &lt;/div&gt;&lt;/div&gt;&lt;/span&gt;    &lt;/td&gt;&lt;td class=&quot;nowrap&quot; id=&quot;ctl00_ArticleRating_VR&quot;&gt;  &amp;nbsp;   &lt;span id=&quot;ctl00_ArticleRating_VotesR&quot;&gt;&amp;nbsp;&lt;span class=&quot;rating&quot;&gt;4.86&lt;/span&gt; (&lt;span class=&quot;count&quot;&gt;26 votes&lt;/span&gt;)&lt;/span&gt;    &lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;speech-bubble-container-up&quot; id=&quot;ctl00_RB&quot;&gt;&lt;div class=&quot;speech-bubble-up&quot; style=&quot;width: 150px !important;&quot;&gt;&lt;div&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;feature&quot; style=&quot;height: 50px; width: 100%px;&quot; title=&quot;Voting Distribution. Recent data only&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;chart-row&quot;&gt;&lt;td class=&quot;chart-column&quot;&gt;&lt;img alt=&quot;1 vote, 20.0%&quot; border=&quot;0&quot; height=&quot;25&quot; src=&quot;http://www.codeproject.com/script/Ratings/Images/pollcol.gif&quot; title=&quot;1 vote, 20.0%&quot; width=&quot;20&quot; /&gt;&lt;br /&gt;
&lt;span title=&quot;1 vote&quot;&gt;1&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;chart-column&quot;&gt;&lt;img alt=&quot;1 vote, 20.0%&quot; border=&quot;0&quot; height=&quot;25&quot; src=&quot;http://www.codeproject.com/script/Ratings/Images/pollcol.gif&quot; title=&quot;1 vote, 20.0%&quot; width=&quot;20&quot; /&gt;&lt;br /&gt;
&lt;span title=&quot;1 vote&quot;&gt;2&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;chart-column&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://s.codeproject.com/Images/t.gif&quot; title=&quot;&quot; width=&quot;20&quot; /&gt;&lt;br /&gt;
&lt;span title=&quot;0 votes&quot;&gt;3&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;chart-column&quot;&gt;&lt;img alt=&quot;1 vote, 20.0%&quot; border=&quot;0&quot; height=&quot;25&quot; src=&quot;http://www.codeproject.com/script/Ratings/Images/pollcol.gif&quot; title=&quot;1 vote, 20.0%&quot; width=&quot;20&quot; /&gt;&lt;br /&gt;
&lt;span title=&quot;1 vote&quot;&gt;4&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;chart-column&quot;&gt;&lt;img alt=&quot;2 votes, 40.0%&quot; border=&quot;0&quot; height=&quot;50&quot; src=&quot;http://www.codeproject.com/script/Ratings/Images/pollcol.gif&quot; title=&quot;2 votes, 40.0%&quot; width=&quot;20&quot; /&gt;&lt;br /&gt;
&lt;span title=&quot;2 votes&quot;&gt;5&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;small-text align-center&quot;&gt;4.86/5 - 26 votes&lt;/div&gt;&lt;div class=&quot;small-text align-center subdue&quot;&gt;μ 4.86, σ&lt;sub&gt;a&lt;/sub&gt; 0.96 [&lt;a href=&quot;http://www.codeproject.com/KB/FAQs/RatingReputationFAQ.aspx#noisefilter&quot;&gt;?&lt;/a&gt;]&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;speech-bubble-pointer-up&quot;&gt;&lt;div class=&quot;speech-bubble-pointer-up-inner&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;     &amp;nbsp;          &lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;form action=&quot;/Articles/199060/Introducing-LINQ-Language-Integrated-Query&quot; id=&quot;aspnetForm&quot; method=&quot;post&quot; name=&quot;aspnetForm&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;
&lt;div&gt;&lt;input id=&quot;__VIEWSTATE&quot; name=&quot;__VIEWSTATE&quot; type=&quot;hidden&quot; value=&quot;/wEPDwUKMjExOTQzNjk4Mw9kFgJmD2QWAgIKDxYCHgVjbGFzcwUpY29udGFpbmVyLWNvbnRlbnQgaHJldmlldy1hZ2dyZWdhdGUgZml4ZWQWEAIDD2QWAmYPFgIeBFRleHQF+AE8ZGl2PjxhIGhyZWY9Ii9zY3JpcHQvQ29udGVudC9TaXRlTWFwLmFzcHgiPkFydGljbGVzPC9hPiAmIzE4NzsgPGEgaHJlZj0iL0NoYXB0ZXJzLzgvUGxhdGZvcm1zLUZyYW1ld29ya3MtTGlicmFyaWVzLmFzcHgiPlBsYXRmb3JtcywgRnJhbWV3b3JrcyAmIExpYnJhcmllczwvYT4gJiMxODc7IDxhIGhyZWY9Ii9LQi9saW5xLyI+TElOUTwvYT4gJiMxODc7IDxhIGhyZWY9Ii9LQi9saW5xLyNHZW5lcmFsIj5HZW5lcmFsPC9hPjwvZGl2PmQCBQ9kFgQCBA8PFgIeC05hdmlnYXRlVXJsBTkvc2NyaXB0L0F3YXJkcy9BZG1pbi9Bd2FyZE9iamVjdC5hc3B4P29iaWQ9MTk5MDYwJm9idGlkPTJkZAIODw8WAh8CBTAvc2NyaXB0L0FydGljbGVzL0FkbWluL1F1ZXVlRWRpdC5hc3B4P2FpZD0xOTkwNjBkZAIHD2QWBAICDw8WBh8CBT4vc2NyaXB0L0FydGljbGVzL1ByZXZOZXh0TG9va3VwLmFzcHg/YWlkPTE5OTA2MCZhdD0xJnNlY0lkPTEyMx4HVG9vbFRpcAUETmV4dB4HVmlzaWJsZWdkZAIDDw8WBB4ISW1hZ2VVcmwFFy9JbWFnZXMvYXJyb3ctcmlnaHQucG5nHwRnFgQeBXN0eWxlBRZ2ZXJ0aWNhbC1hbGlnbjpib3R0b207HgNyZWwFCG5vZm9sbG93ZAIJD2QWBAIDDxYEHgRocmVmBQojX2NvbW1lbnRzHwAFCmFuY2hvckxpbmsWAgIBDxYCHglpbm5lcmh0bWwFBCgxMylkAgUPDxYEHwIFNy9zY3JpcHQvQXJ0aWNsZXMvU3VibWlzc2lvbldpemFyZC5hc3B4P2F0PTEmYXBpZD0xOTkwNjAfBGdkZAILDxYCHwAFGGNvbnRhaW5lci1hcnRpY2xlICBmaXhlZBYGAgEPFgIfBGcWBmYPFgIfCQUsSW50cm9kdWNpbmcgTElOUeKAlExhbmd1YWdlIEludGVncmF0ZWQgUXVlcnlkAgEPFgIfAQVMPGEgaHJlZj0iL3NjcmlwdC9NZW1iZXJzaGlwL1ZpZXcuYXNweD9taWQ9NDI5MDE0NyIgcmVsPSJhdXRob3IiPk1pa2VfTGl1PC9hPmQCAg8WAh8BBQsxOSBNYXkgMjAxMWQCAw8PFgIfBGdkZAIND2QWBGYPFgIfBGcWBAIBDw8WAh8CBW8vc2NyaXB0L01lbWJlcnNoaXAvU2VuZENvbmZpcm1SZXF1ZXN0LmFzcHg/cnA9JTJmQXJ0aWNsZXMlMmYxOTkwNjAlMmZJbnRyb2R1Y2luZy1MSU5RLUxhbmd1YWdlLUludGVncmF0ZWQtUXVlcnlkZAIDDw8WAh8CBWYvc2NyaXB0L01lbWJlcnNoaXAvU3Vic2NyaWJlLmFzcHg/cnA9JTJmQXJ0aWNsZXMlMmYxOTkwNjAlMmZJbnRyb2R1Y2luZy1MSU5RLUxhbmd1YWdlLUludGVncmF0ZWQtUXVlcnlkZAICDxYCHgZhY3Rpb24FOy9BcnRpY2xlcy8xOTkwNjAvSW50cm9kdWNpbmctTElOUS1MYW5ndWFnZS1JbnRlZ3JhdGVkLVF1ZXJ5FggCAQ9kFgICAQ8WAh8EaGQCAw9kFgICAg9kFgICAQ8QZGQWAGQCCQ8WAh4LXyFJdGVtQ291bnQCAWQCCw9kFgICAQ8WAh8BBXQ8YSBjbGFzcz0iYW5jaG9yTGluayIgaHJlZj0iL0FydGljbGVzLzE5OTA2MC9JbnRyb2R1Y2luZy1MSU5RLUxhbmd1YWdlLUludGVncmF0ZWQtUXVlcnkjX2FydGljbGVUb3AiPkFydGljbGUgVG9wPC9hPmQCDQ9kFgICCw9kFgQCAg8PFgIfAgVJL0FydGljbGVzLzE5OTA2MC9JbnRyb2R1Y2luZy1MSU5RLUxhbmd1YWdlLUludGVncmF0ZWQtUXVlcnk/ZGlzcGxheT1QcmludGRkAgQPDxYCHwIFMi9zY3JpcHQvY29tbW9uL1RlbGxGcmllbmQuYXNweD9vYnRpZD0yJm9iaWQ9MTk5MDYwZGQCDw8PFgQfAQUJUGVybWFsaW5rHwIFOy9BcnRpY2xlcy8xOTkwNjAvSW50cm9kdWNpbmctTElOUS1MYW5ndWFnZS1JbnRlZ3JhdGVkLVF1ZXJ5ZGQCHw8WAh8BBRpDb3B5cmlnaHQgMjAxMSBieSBNaWtlX0xpdWRk6PVTvB70A1L7vavV08DONb5eAZU=&quot; /&gt; &lt;/div&gt;&lt;div&gt;&lt;input id=&quot;__EVENTVALIDATION&quot; name=&quot;__EVENTVALIDATION&quot; type=&quot;hidden&quot; value=&quot;/wEWCALV06nsDwLAlMXDBwLBlMXDBwLClMXDBwLDlMXDBwLElMXDBwLP+++tCwK5upDkC7ebuzRgQ9bIi+Xmeqbtgv7XDnSo&quot; /&gt; &lt;/div&gt;&lt;div class=&quot;article-text&quot; id=&quot;contentdiv&quot;&gt;&lt;ul class=&quot;download&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.codeproject.com/KB/linq/IntroducingLINQ/TestLINQ.zip&quot;&gt;Download source code - 17.7 KB&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;Introduction&lt;/h2&gt;In my previous three articles on CodeProject.com, I have explained the fundamentals of Windows Communication Foundation (WCF), including:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.codeproject.com/KB/WCF/HelloWorldWCF.aspx&quot;&gt;Implementing a Basic Hello World WCF Service&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.codeproject.com/KB/WCF/WCFandEF.aspx&quot;&gt;Implementing a WCF Service with Entity Framework&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.codeproject.com/KB/WCF/WCFandEFConcurrency.aspx&quot;&gt;Concurrency Control of WCF Service with Entity Framework&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;If you have followed those three articles closely, you should be able to work with WCF now. Within the last two articles, I have explained how to utilize LINQ and the Entity Framework with WCF, so by now you should also be able to work with LINQ and EF. However, you may not fully understand LINQ and EF by just reading those two articles. So here I come, to explain all the fundamentals of LINQ and EF.&lt;br /&gt;
In addition to LINQ and EF, some people may still be using LINQ to SQL, which is the first ORM product from Microsoft, or a by-product of the C# team, or a simplified version of EF, or whatever you think and say it is. As LINQ to SQL (L2S) is so easy to work with, I will also write some articles to explain it.&lt;br /&gt;
Having said so, in the future, I will write the following five articles to explain LINQ, LINQ to SQL, and EF:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Introducing LINQ-Language Integrated Query (this article)&lt;/li&gt;
&lt;li&gt;LINQ to SQL: Basic Concepts and Features (next article)&lt;/li&gt;
&lt;li&gt;LINQ to SQL: Advanced Concepts and Features (future article)&lt;/li&gt;
&lt;li&gt;LINQ to Entities: Basic Concepts and Features (future article)&lt;/li&gt;
&lt;li&gt;LINQ to Entities: Advanced Concepts and Features (future article)&lt;/li&gt;
&lt;/ul&gt;After finishing these five articles, I will come back to write some more articles on WCF from my real work experience, which will be definitely helpful for your real world work, if you are using WCF right now.&lt;br /&gt;
In this article, I will cover the following topics:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;What is LINQ&lt;/li&gt;
&lt;li&gt;New data type &lt;code&gt;var&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Automatic properties&lt;/li&gt;
&lt;li&gt;Object initializer and Collection initializer&lt;/li&gt;
&lt;li&gt;Anonymous types&lt;/li&gt;
&lt;li&gt;Extension Methods&lt;/li&gt;
&lt;li&gt;Lambda expressions&lt;/li&gt;
&lt;li&gt;Built-in LINQ Extension Methods and method syntax&lt;/li&gt;
&lt;li&gt;LINQ query syntax and query expression&lt;/li&gt;
&lt;li&gt;Built-in LINQ operators&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;What is LINQ&lt;/h2&gt;Language-Integrated Query (LINQ) is a set of extensions to the .NET Framework that encompass language-integrated query, set, and transform operations. It extends C# and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities.&lt;br /&gt;
Let us see an example first. Suppose there is a list of integers like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain0&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg0&quot; preid=&quot;0&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse0&quot; preid=&quot;0&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;0&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre0&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;List&amp;lt;&lt;span class=&quot;code-keyword&quot;&gt;int&lt;/span&gt;&amp;gt; list = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; List&amp;lt;&lt;span class=&quot;code-keyword&quot;&gt;int&lt;/span&gt;&amp;gt;() { &lt;span class=&quot;code-digit&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;code-digit&quot;&gt;2&lt;/span&gt;, &lt;span class=&quot;code-digit&quot;&gt;3&lt;/span&gt;, &lt;span class=&quot;code-digit&quot;&gt;4&lt;/span&gt;, &lt;span class=&quot;code-digit&quot;&gt;5&lt;/span&gt;, &lt;span class=&quot;code-digit&quot;&gt;6&lt;/span&gt;, &lt;span class=&quot;code-digit&quot;&gt;100&lt;/span&gt; };&lt;/pre&gt;To find all the even numbers in this list, you might write code like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain1&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg1&quot; preid=&quot;1&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse1&quot; preid=&quot;1&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;1&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre1&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;List&amp;lt;&lt;span class=&quot;code-keyword&quot;&gt;int&lt;/span&gt;&amp;gt; list1 = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; List&amp;lt;&lt;span class=&quot;code-keyword&quot;&gt;int&lt;/span&gt;&amp;gt;();
&lt;span class=&quot;code-keyword&quot;&gt;foreach&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; num &lt;span class=&quot;code-keyword&quot;&gt;in&lt;/span&gt; list)
{
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (num % &lt;span class=&quot;code-digit&quot;&gt;2&lt;/span&gt; == &lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt;)
        list1.Add(num);
}&lt;/pre&gt;Now with LINQ, you can select all of the even numbers from this list and assign the query result to a variable, in just one sentence, like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain2&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg2&quot; preid=&quot;2&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse2&quot; preid=&quot;2&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;2&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre2&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; list2 = from number &lt;span class=&quot;code-keyword&quot;&gt;in&lt;/span&gt; list
            where number % &lt;span class=&quot;code-digit&quot;&gt;2&lt;/span&gt; == &lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt;
            select number;&lt;/pre&gt;In this example, &lt;code&gt;list2&lt;/code&gt; and &lt;code&gt;list1&lt;/code&gt; are equivalent. &lt;code&gt;list2&lt;/code&gt; contains the same numbers as &lt;code&gt;list1&lt;/code&gt; does. As you can see, you don&#39;t write a &lt;code&gt;foreach&lt;/code&gt; loop. Instead, you write a SQL statement.&lt;br /&gt;
But what do &lt;code&gt;from&lt;/code&gt;, &lt;code&gt;where&lt;/code&gt;, and &lt;code&gt;select&lt;/code&gt; mean here? Where are they defined? How and when can you use them? Let us start the exploration now.&lt;br /&gt;
&lt;h2&gt;Creating the test solution and project&lt;/h2&gt;To show these LINQ-related new features, we will need a test project to demonstrate what they are and how to use them. So we first need to create the test solution and the project.&lt;br /&gt;
Follow these steps to create the solution and the project:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Start Visual Studio 2010.&lt;/li&gt;
&lt;li&gt;Select menu option File | New | Project... to create a new solution.&lt;/li&gt;
&lt;li&gt;In the New Project window, select Visual C# | Console Application as the Template.&lt;/li&gt;
&lt;li&gt;Enter TestLINQ as the Solution Name, and TestNewFeaturesApp as the (project) Name.&lt;/li&gt;
&lt;li&gt;Click OK to create the solution and the project.&lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;New data type var&lt;/h2&gt;The first new feature that is very important for LINQ is the new data type &lt;code&gt;var&lt;/code&gt;. This is a new keyword that can be used to declare a variable, and this variable can be initialized to any valid C# data.&lt;br /&gt;
In the C# 3.0 specification, such variables are called implicitly-typed local variables.&lt;br /&gt;
A &lt;code&gt;var&lt;/code&gt; variable must be initialized when it is declared. The compile-time type of the initializer expression must not be of &lt;code&gt;null&lt;/code&gt; type, but the run time expression can be &lt;code&gt;null&lt;/code&gt;. Once it is initialized, its data type is fixed to the type of the initial data.&lt;br /&gt;
The following statements are valid uses of the &lt;code&gt;var&lt;/code&gt; keyword:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain3&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg3&quot; preid=&quot;3&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse3&quot; preid=&quot;3&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;3&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre3&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-comment&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt; valid var statements
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; x = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;1&quot;&lt;/span&gt;;
&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; n = &lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt;;
&lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; s = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;string&quot;&lt;/span&gt;;
&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; s2 = s;
s2 = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;
&lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; s3 = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;
&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; s4 = s3;&lt;/pre&gt;At compile time, the above &lt;code&gt;var&lt;/code&gt; statements are compiled to IL like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain4&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg4&quot; preid=&quot;4&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse4&quot; preid=&quot;4&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;4&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre4&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; x = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;1&quot;&lt;/span&gt;;
&lt;span class=&quot;code-keyword&quot;&gt;int&lt;/span&gt; n = &lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt;;
&lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; s2 = s;
&lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; s4 = s3;&lt;/pre&gt;The &lt;code&gt;var&lt;/code&gt; keyword is only meaningful to the Visual Studio compiler. The compiled assembly is actually a valid .NET 2.0 assembly. It doesn&#39;t need any special instructions or libraries to support this feature.&lt;br /&gt;
The following statements are invalid usages of the &lt;code&gt;var&lt;/code&gt; keyword:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain5&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg5&quot; preid=&quot;5&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse5&quot; preid=&quot;5&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;5&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre5&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-comment&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt; invalid var statements
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; v;
&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; nu = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;
&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; v2 = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;12&quot;&lt;/span&gt;; v2 = &lt;span class=&quot;code-digit&quot;&gt;3&lt;/span&gt;;&lt;/pre&gt;The first one is illegal because it doesn&#39;t have an initializer.&lt;br /&gt;
The second one initializes the variable &lt;code&gt;nu&lt;/code&gt; to &lt;code&gt;null&lt;/code&gt; which is not allowed, although once defined, a &lt;code&gt;var&lt;/code&gt; type variable can be assigned &lt;code&gt;null&lt;/code&gt;. If you think that at compile time, the compiler needs to create a variable using this type of initializer, then you understand why the initializer can&#39;t be null at compile time.&lt;br /&gt;
The third one is illegal because once defined, an integer can&#39;t be converted to a string implicitly (&lt;code&gt;v2&lt;/code&gt; is of type &lt;code&gt;string&lt;/code&gt;).&lt;br /&gt;
&lt;h2&gt;Automatic properties&lt;/h2&gt;In the past, for a class member, if we wanted to define it as a property member, we had to define a private member variable first. For example, for the &lt;code&gt;Product&lt;/code&gt; class, we can define a property &lt;code&gt;ProductName&lt;/code&gt; as follows:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain6&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg6&quot; preid=&quot;6&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse6&quot; preid=&quot;6&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;6&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre6&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; productName;
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; ProductName
{
    &lt;span class=&quot;code-keyword&quot;&gt;get&lt;/span&gt; { &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; productName; }
    &lt;span class=&quot;code-keyword&quot;&gt;set&lt;/span&gt; { productName = value; }
}&lt;/pre&gt;This may be useful if we need to add some logic inside the get/set methods. But if we don&#39;t need to, the above format gets tedious, especially if there are many members.&lt;br /&gt;
Now, with C# 3.0 and above, the above property can be simplified in one statement:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain7&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg7&quot; preid=&quot;7&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse7&quot; preid=&quot;7&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;7&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre7&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; ProductName { &lt;span class=&quot;code-keyword&quot;&gt;get&lt;/span&gt;; &lt;span class=&quot;code-keyword&quot;&gt;set&lt;/span&gt;; }&lt;/pre&gt;When Visual Studio compiles this statement, it will automatically create a private member variable &lt;code&gt;productName&lt;/code&gt; and use the old style&#39;s get/set methods to define the property. This could save lots of typing.&lt;br /&gt;
Just as with the new type &lt;code&gt;var&lt;/code&gt;, the automatic properties are only meaningful to the Visual Studio compiler. The compiled assembly is actually a valid .NET 2.0 assembly.&lt;br /&gt;
Interestingly, later on, if you find you need to add logic to the get/set methods, you can still convert this automatic property to the old style&#39;s property.&lt;br /&gt;
Now, let us create this class in the test project:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain8&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg8&quot; preid=&quot;8&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse8&quot; preid=&quot;8&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;8&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre8&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;class&lt;/span&gt; Product
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;int&lt;/span&gt; ProductID { &lt;span class=&quot;code-keyword&quot;&gt;get&lt;/span&gt;; &lt;span class=&quot;code-keyword&quot;&gt;set&lt;/span&gt;; }
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; ProductName { &lt;span class=&quot;code-keyword&quot;&gt;get&lt;/span&gt;; &lt;span class=&quot;code-keyword&quot;&gt;set&lt;/span&gt;; }
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt; UnitPrice { &lt;span class=&quot;code-keyword&quot;&gt;get&lt;/span&gt;; &lt;span class=&quot;code-keyword&quot;&gt;set&lt;/span&gt;; }
}&lt;/pre&gt;We can put this class inside the &lt;em&gt;Program.cs&lt;/em&gt; file, within the namespace &lt;code&gt;TestNewFeaturesApp&lt;/code&gt;. We will use this class throughout this article, to test C# features related to LINQ.&lt;br /&gt;
&lt;h2&gt;Object initializer&lt;/h2&gt;In the past, we couldn&#39;t initialize an object without using a constructor. For example, we could create and initialize a &lt;code&gt;Product&lt;/code&gt; object like this, if the &lt;code&gt;Product&lt;/code&gt; class has a constructor with three parameters:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain9&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg9&quot; preid=&quot;9&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse9&quot; preid=&quot;9&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;9&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre9&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;Product p = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; product(&lt;span class=&quot;code-digit&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;first candy&quot;&lt;/span&gt;, &lt;span class=&quot;code-digit&quot;&gt;100&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt;);&lt;/pre&gt;Or, we could create the object, and then initialize it later, like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain10&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg10&quot; preid=&quot;10&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse10&quot; preid=&quot;10&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;10&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre10&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;Product p = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Product();
p.ProductID = &lt;span class=&quot;code-digit&quot;&gt;1&lt;/span&gt;;
p.ProductName = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;first candy&quot;&lt;/span&gt;;
p.UnitPrice=(&lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt;)&lt;span class=&quot;code-digit&quot;&gt;100&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt;;&lt;/pre&gt;Now with the new object initializer feature, we can do it as follows:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain11&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg11&quot; preid=&quot;11&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse11&quot; preid=&quot;11&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;11&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre11&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;Product product = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Product
{
    ProductID = &lt;span class=&quot;code-digit&quot;&gt;1&lt;/span&gt;,
    ProductName = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;first candy&quot;&lt;/span&gt;,
    UnitPrice = (&lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt;)&lt;span class=&quot;code-digit&quot;&gt;100&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt;
};&lt;/pre&gt;At compile time, the compiler will automatically insert the necessary property setter code. So again, this new feature is a Visual Studio compiler feature. The compiled assembly is actually a valid .NET 2.0 assembly.&lt;br /&gt;
We can also define and initialize a variable with an array like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain12&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg12&quot; preid=&quot;12&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse12&quot; preid=&quot;12&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;12&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre12&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; arr = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt;[] { &lt;span class=&quot;code-digit&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;code-digit&quot;&gt;10&lt;/span&gt;, &lt;span class=&quot;code-digit&quot;&gt;20&lt;/span&gt;, &lt;span class=&quot;code-digit&quot;&gt;30&lt;/span&gt; };&lt;/pre&gt;This array is called an implicitly typed array.&lt;br /&gt;
&lt;h2&gt;Collection initializer&lt;/h2&gt;Similar to the object initializer, we can also initialize a collection when we declare it, like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain13&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg13&quot; preid=&quot;13&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse13&quot; preid=&quot;13&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;13&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre13&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;List&lt;product&gt; products = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; List&lt;product&gt; {
    &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Product { 
        ProductID = &lt;span class=&quot;code-digit&quot;&gt;1&lt;/span&gt;, 
        ProductName = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;first candy&quot;&lt;/span&gt;, 
        UnitPrice = (&lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt;)&lt;span class=&quot;code-digit&quot;&gt;10&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt; },
    &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Product { 
        ProductID = &lt;span class=&quot;code-digit&quot;&gt;2&lt;/span&gt;, 
        ProductName = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;second candy&quot;&lt;/span&gt;, 
        UnitPrice = (&lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt;)&lt;span class=&quot;code-digit&quot;&gt;35&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt; },
    &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Product { 
        ProductID = &lt;span class=&quot;code-digit&quot;&gt;3&lt;/span&gt;, 
        ProductName = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;first vegetable&quot;&lt;/span&gt;, 
        UnitPrice = (&lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt;)&lt;span class=&quot;code-digit&quot;&gt;6&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt; },
    &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Product { 
        ProductID = &lt;span class=&quot;code-digit&quot;&gt;4&lt;/span&gt;, 
        ProductName = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;second vegetable&quot;&lt;/span&gt;, 
        UnitPrice = (&lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt;)&lt;span class=&quot;code-digit&quot;&gt;15&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt; },
    &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Product { 
        ProductID = &lt;span class=&quot;code-digit&quot;&gt;5&lt;/span&gt;, 
        ProductName = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;another product&quot;&lt;/span&gt;, 
        UnitPrice = (&lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt;)&lt;span class=&quot;code-digit&quot;&gt;55&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt; }
};&lt;/product&gt;&lt;/product&gt;&lt;/pre&gt;Here, we created a list and initialized it with five new products. For each new product, we used the object initializer to initialize its value.&lt;br /&gt;
Just as with the object initializer, this new feature, collection initializer, is also a Visual Studio compiler feature, and the compiled assembly is a valid .NET 2.0 assembly.&lt;br /&gt;
&lt;h2&gt;Anonymous types&lt;/h2&gt;With the new feature of the object initializer, and the new &lt;code&gt;var&lt;/code&gt; data type, we can create anonymous data types easily in C# 3.0.&lt;br /&gt;
For example, if we define a variable like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain14&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg14&quot; preid=&quot;14&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse14&quot; preid=&quot;14&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;14&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre14&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; a = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; { Name = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;name1&quot;&lt;/span&gt;, Address = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;address1&quot;&lt;/span&gt; };&lt;/pre&gt;At compile time, the compiler will actually create an anonymous type as follows:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain15&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg15&quot; preid=&quot;15&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse15&quot; preid=&quot;15&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;15&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre15&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;class&lt;/span&gt; __Anonymous1
{
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; name;
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; address;
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; Name {
        &lt;span class=&quot;code-keyword&quot;&gt;get&lt;/span&gt;{
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; name;
        }
        &lt;span class=&quot;code-keyword&quot;&gt;set&lt;/span&gt; {
            name=value
        }
    }
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; Address {
        &lt;span class=&quot;code-keyword&quot;&gt;get&lt;/span&gt;{
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; address;
        }
        &lt;span class=&quot;code-keyword&quot;&gt;set&lt;/span&gt;{
            address=value;
        }
    }
}&lt;/pre&gt;The name of the anonymous type is automatically generated by the compiler, and cannot be referenced in the program text.&lt;br /&gt;
If two anonymous types have the same members with the same data types in their initializers, then these two variables have the same types. For example, if there is another variable defined like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain16&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg16&quot; preid=&quot;16&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse16&quot; preid=&quot;16&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;16&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre16&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; b = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; { Name = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;name2&quot;&lt;/span&gt;, Address = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;address2&quot;&lt;/span&gt; };&lt;/pre&gt;Then we can assign &lt;code&gt;a&lt;/code&gt; to &lt;code&gt;b&lt;/code&gt; like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain17&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg17&quot; preid=&quot;17&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse17&quot; preid=&quot;17&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;17&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre17&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;b = a;&lt;/pre&gt;The anonymous type is particularly useful for LINQ when the result of LINQ can be shaped to be whatever you like. We will give more examples of this when we discuss LINQ.&lt;br /&gt;
As mentioned earlier, this new feature is again a Visual Studio compiler feature, and the compiled assembly is a valid .NET 2.0 assembly.&lt;br /&gt;
&lt;h2&gt;Extension Methods&lt;/h2&gt;Extension Methods are static methods that can be invoked using the instance method syntax. In effect, Extension Methods make it possible for us to extend existing types and construct types with additional methods.&lt;br /&gt;
For example, we can define an Extension Method as follows:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain18&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg18&quot; preid=&quot;18&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse18&quot; preid=&quot;18&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;18&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre18&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;class&lt;/span&gt; MyExtensions
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;bool&lt;/span&gt; IsCandy(&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; Product p)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (p.ProductName.IndexOf(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;candy&quot;&lt;/span&gt;) &amp;gt;= &lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt;)
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
        &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
    }
}&lt;/pre&gt;In this example, the static method &lt;code&gt;IsCandy&lt;/code&gt; takes a &lt;code&gt;this&lt;/code&gt; parameter of &lt;code&gt;Product&lt;/code&gt; type, and searches for the word &lt;em&gt;candy&lt;/em&gt; inside the product name. If it finds a match, it assumes this is a candy product and returns &lt;code&gt;true&lt;/code&gt;. Otherwise, it returns &lt;code&gt;false&lt;/code&gt;, meaning this is not a candy product.&lt;br /&gt;
Since all Extension Methods must be defined in top level static classes, to simplify the example, we put this class inside the same namespace as our main test application, TestNewFeaturesApp, and make this class on the same level as the &lt;code&gt;Program&lt;/code&gt; class so it is a top level class. Now, in the program, we can call this Extension Method like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain19&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg19&quot; preid=&quot;19&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse19&quot; preid=&quot;19&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;19&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre19&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (product.IsCandy())
    Console.WriteLine(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;yes, it is a candy&quot;&lt;/span&gt;);
&lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
    Console.WriteLine(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;no, it is not a candy&quot;&lt;/span&gt;);&lt;/pre&gt;It looks as if &lt;code&gt;IsCandy&lt;/code&gt; is a real instance method of the &lt;code&gt;Product&lt;/code&gt; class. Actually, it is a real method of the &lt;code&gt;Product&lt;/code&gt; class, but it is not defined inside the &lt;code&gt;Product&lt;/code&gt; class. Instead, it is defined in another static class, to extend the functionality of the &lt;code&gt;Product&lt;/code&gt; class. This is why it is called an Extension Method.&lt;br /&gt;
Not only does it look like a real instance method, but this new Extension Method actually pops up when a dot is typed following the product variable. The following image shows the intellisense of the &lt;code&gt;product&lt;/code&gt; variable within Visual Studio.&lt;br /&gt;
&lt;a href=&quot;http://www.codeproject.com/KB/linq/IntroducingLINQ/Pic1.png&quot; title=&quot;Click to enlarge&quot;&gt;&lt;img border=&quot;0&quot; complete=&quot;true&quot; height=&quot;405&quot; src=&quot;http://www.codeproject.com/KB/linq/IntroducingLINQ/Pic1_small.png&quot; width=&quot;600&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
Under the hood in Visual Studio, when a method call on an instance is being compiled, the compiler first checks to see if there is an instance method in the class for this method. If there is no matching instance method, it looks for an imported static class, or any static class within the same namespace. It also searches for an extension method with the first parameter that is the same as the instance type (or is a super type of the instance type). If it finds a match, the compiler will call that extension method. This means that instance methods take precedence over Extension Methods, and Extension Methods that are imported in inner namespace declarations take precedence over Extension Methods that are imported in outer namespaces.&lt;br /&gt;
In our example, when &lt;code&gt;product.IsCandy()&lt;/code&gt; is being compiled, the compiler first checks the &lt;code&gt;Product&lt;/code&gt; class and doesn&#39;t find a method named &lt;code&gt;IsCandy&lt;/code&gt;. It then searches the static class &lt;code&gt;MyExtensions&lt;/code&gt;, and finds an Extension Method with the name &lt;code&gt;IsCandy&lt;/code&gt; and with a first parameter of type &lt;code&gt;Product&lt;/code&gt;.&lt;br /&gt;
At compile time, the compiler actually changes &lt;code&gt;product.IsCandy()&lt;/code&gt; to this call:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain20&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg20&quot; preid=&quot;20&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse20&quot; preid=&quot;20&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;20&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre20&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;MyExtensions.IsCandy(product)&lt;/pre&gt;Surprisingly, Extension Methods can be defined for &lt;code&gt;sealed&lt;/code&gt; classes. In our example, you can change the &lt;code&gt;Product&lt;/code&gt; class to be &lt;code&gt;sealed&lt;/code&gt; and it still runs without any problem. This gives us great flexibility to extend system types, because many of the system types are &lt;code&gt;sealed&lt;/code&gt;. On the other hand, Extension Methods are less discoverable and are harder to maintain, so they should be used with great caution. If your requirements can be achieved with an instance method, you should not define an Extension Method to do the same work.&lt;br /&gt;
Not surprisingly, this new feature is again a Visual Studio compiler feature, and the compiled assembly is a valid .NET 2.0 assembly.&lt;br /&gt;
Extension Methods are the bases of LINQ. We will discuss the various Extension Methods defined by .NET 3.5 in the namespace &lt;code&gt;System.Linq&lt;/code&gt;, later.&lt;br /&gt;
Now, the &lt;em&gt;Program.cs&lt;/em&gt; file should be like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain21&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg21&quot; preid=&quot;21&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse21&quot; preid=&quot;21&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;21&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre21&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;using&lt;/span&gt; System;
&lt;span class=&quot;code-keyword&quot;&gt;using&lt;/span&gt; System.Collections.Generic;
&lt;span class=&quot;code-keyword&quot;&gt;using&lt;/span&gt; System.Linq;
&lt;span class=&quot;code-keyword&quot;&gt;using&lt;/span&gt; System.Text;
&lt;span class=&quot;code-keyword&quot;&gt;namespace&lt;/span&gt; TestNewFeaturesApp
{
    &lt;span class=&quot;code-keyword&quot;&gt;class&lt;/span&gt; Program
    {
        &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;void&lt;/span&gt; Main(&lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt;[] args)
        {
            &lt;span class=&quot;code-comment&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt; valid var statements
&lt;/span&gt;            &lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; x = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;1&quot;&lt;/span&gt;;
            &lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; n = &lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt;;
            &lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; s = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;string&quot;&lt;/span&gt;;
            &lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; s2 = s;
            s2 = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;
            &lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; s3 = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;
            &lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; s4 = s3;
            &lt;span class=&quot;code-comment&quot;&gt;/*&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;
            string x = &quot;1&quot;;
            int n = 0;
            string s2 = s;
            string s4 = s3;
           */&lt;/span&gt;
            &lt;span class=&quot;code-comment&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt; invalid var statements
&lt;/span&gt;            &lt;span class=&quot;code-comment&quot;&gt;/*&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;
            var v;
            var nu = null;
            var v2 = &quot;12&quot;; v2 = 3;
            */&lt;/span&gt;
            &lt;span class=&quot;code-comment&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt; old way to create and initialize an object
&lt;/span&gt;            &lt;span class=&quot;code-comment&quot;&gt;/*&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;
            Product p = new product(1, &quot;first candy&quot;, 100.0);
            Product p = new Product();
            p.ProductID = 1;
            p.ProductName = &quot;first candy&quot;;
            p.UnitPrice=(decimal)100.0;
            */&lt;/span&gt;
           
            &lt;span class=&quot;code-comment&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;object initializer
&lt;/span&gt;            Product product = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Product
            {
                 ProductID = &lt;span class=&quot;code-digit&quot;&gt;1&lt;/span&gt;,
                 ProductName = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;first candy&quot;&lt;/span&gt;,
                 UnitPrice = (&lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt;)&lt;span class=&quot;code-digit&quot;&gt;100&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt;
            };
            &lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; arr = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt;[] { &lt;span class=&quot;code-digit&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;code-digit&quot;&gt;10&lt;/span&gt;, &lt;span class=&quot;code-digit&quot;&gt;20&lt;/span&gt;, &lt;span class=&quot;code-digit&quot;&gt;30&lt;/span&gt; };
            &lt;span class=&quot;code-comment&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt; collection initializer
&lt;/span&gt;            List&lt;product&gt; products = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; List&lt;product&gt; {
                 &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Product { 
                           ProductID = &lt;span class=&quot;code-digit&quot;&gt;1&lt;/span&gt;, 
                           ProductName = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;first candy&quot;&lt;/span&gt;, 
                           UnitPrice = (&lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt;)&lt;span class=&quot;code-digit&quot;&gt;10&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt; },
                 &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Product { 
                           ProductID = &lt;span class=&quot;code-digit&quot;&gt;2&lt;/span&gt;, 
                           ProductName = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;second candy&quot;&lt;/span&gt;, 
                           UnitPrice = (&lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt;)&lt;span class=&quot;code-digit&quot;&gt;35&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt; },
                 &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Product { 
                           ProductID = &lt;span class=&quot;code-digit&quot;&gt;3&lt;/span&gt;, 
                           ProductName = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;first vegetable&quot;&lt;/span&gt;, 
                           UnitPrice = (&lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt;)&lt;span class=&quot;code-digit&quot;&gt;6&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt; },
                 &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Product { 
                           ProductID = &lt;span class=&quot;code-digit&quot;&gt;4&lt;/span&gt;, 
                           ProductName = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;second vegetable&quot;&lt;/span&gt;, 
                           UnitPrice = (&lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt;)&lt;span class=&quot;code-digit&quot;&gt;15&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt; },
                 &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Product { 
                           ProductID = &lt;span class=&quot;code-digit&quot;&gt;5&lt;/span&gt;, 
                           ProductName = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;third product&quot;&lt;/span&gt;, 
                           UnitPrice = (&lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt;)&lt;span class=&quot;code-digit&quot;&gt;55&lt;/span&gt;.&lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt; }
            };
            &lt;span class=&quot;code-comment&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt; anonymous types
&lt;/span&gt;            &lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; a = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; { Name = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;name1&quot;&lt;/span&gt;, Address = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;address1&quot;&lt;/span&gt; };
            &lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; b = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; { Name = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;name2&quot;&lt;/span&gt;, Address = &lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;address2&quot;&lt;/span&gt; };
            b = a;
            &lt;span class=&quot;code-comment&quot;&gt;/*&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;
            class __Anonymous1
           {
                private string name;
                private string address;
                public string Name {
                    get{
                         return name;
                    }
                    set {
                         name=value
                    }
                }
                public string Address {
                     get{
                           return address;
                      }
                     set{
                           address=value;
                     }
                }
             }
            */&lt;/span&gt;
            &lt;span class=&quot;code-comment&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt; extension methods
&lt;/span&gt;            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (product.IsCandy()) &lt;span class=&quot;code-comment&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;if(MyExtensions.IsCandy(product))
&lt;/span&gt;                   Console.WriteLine(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;yes, it is a candy&quot;&lt;/span&gt;);
            &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
                   Console.WriteLine(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;no, it is not a candy&quot;&lt;/span&gt;);
         }
    }
     &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;sealed&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;class&lt;/span&gt; Product
    {
        &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;int&lt;/span&gt; ProductID { &lt;span class=&quot;code-keyword&quot;&gt;get&lt;/span&gt;; &lt;span class=&quot;code-keyword&quot;&gt;set&lt;/span&gt;; }
        &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;string&lt;/span&gt; ProductName { &lt;span class=&quot;code-keyword&quot;&gt;get&lt;/span&gt;; &lt;span class=&quot;code-keyword&quot;&gt;set&lt;/span&gt;; }
        &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;decimal&lt;/span&gt; UnitPrice { &lt;span class=&quot;code-keyword&quot;&gt;get&lt;/span&gt;; &lt;span class=&quot;code-keyword&quot;&gt;set&lt;/span&gt;; }
    }
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;class&lt;/span&gt; MyExtensions
    {
        &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;bool&lt;/span&gt; IsCandy(&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; Product p)
       {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (p.ProductName.IndexOf(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;candy&quot;&lt;/span&gt;) &amp;gt;= &lt;span class=&quot;code-digit&quot;&gt;0&lt;/span&gt;)
                 &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
            &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
                 &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
        }
    }
}&lt;/product&gt;&lt;/product&gt;&lt;/pre&gt;So far in &lt;em&gt;Program.cs&lt;/em&gt;, we have:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Defined several &lt;code&gt;var&lt;/code&gt; type variables&lt;/li&gt;
&lt;li&gt;Defined a &lt;code&gt;sealed&lt;/code&gt; class &lt;code&gt;Product&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Created a product with the name of &quot;first candy&quot;&lt;/li&gt;
&lt;li&gt;Created a product list containing five products&lt;/li&gt;
&lt;li&gt;Defined a static class, and added a static method &lt;code&gt;IsCandy&lt;/code&gt; with a &lt;code&gt;this&lt;/code&gt; parameter of type &lt;code&gt;Product&lt;/code&gt;, to make this method an Extension Method&lt;/li&gt;
&lt;li&gt;Called the Extension Method on the candy product, and printed out a message according to its name&lt;/li&gt;
&lt;/ul&gt;If you run the program, the output will look like this:&lt;br /&gt;
&lt;img alt=&quot;Pic2.png&quot; complete=&quot;true&quot; height=&quot;239&quot; src=&quot;http://www.codeproject.com/KB/linq/IntroducingLINQ/Pic2.png&quot; width=&quot;493&quot; /&gt;&lt;br /&gt;
&lt;h2&gt;Lambda expressions&lt;/h2&gt;With the C# 3.0 new Extension Method feature, and the C# 2.0 new anonymous method (or inline method) feature, Visual Studio has introduced a new expression called lambda expression.&lt;br /&gt;
Lambda expression is actually a syntax change for anonymous methods. It is just a new way of writing anonymous methods. Next, let&#39;s see what a lambda expression is step by step.&lt;br /&gt;
First, in C# 3.0, there is a new generic delegate type, &lt;code&gt;Func&lt;a href=&quot;http://draft.blogger.com/null&quot;&gt;&lt;/a&gt;&lt;/code&gt;, which presents a function taking an argument of type &lt;code&gt;A&lt;/code&gt;, and returns a value of type &lt;code&gt;R&lt;/code&gt;:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain22&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg22&quot; preid=&quot;22&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse22&quot; preid=&quot;22&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;22&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre22&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;delegate&lt;/span&gt; R Func&lt;a href=&quot;http://draft.blogger.com/null&quot;&gt; (A Arg);&lt;/a&gt;&lt;/pre&gt;In fact, there are several overloaded versions of &lt;code&gt;Func&lt;/code&gt;, of which &lt;code&gt;Func&lt;a href=&quot;http://draft.blogger.com/null&quot;&gt;&lt;/a&gt;&lt;/code&gt; is one.&lt;br /&gt;
Now, we will use this new generic delegate type to define an extension:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain23&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg23&quot; preid=&quot;23&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse23&quot; preid=&quot;23&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;23&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre23&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; IEnumerable&lt;t&gt; Get&lt;t&gt;(&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; IEnumerable&lt;t&gt; source, Func&lt;t class=&quot;code-keyword&quot; span=&quot;span&quot;&gt;bool&lt;/t&gt;&lt;/t&gt;&lt;/t&gt;&lt;/t&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/form&gt;&lt;/article&gt;&lt;br /&gt;
&amp;gt; predicate) {     &lt;span class=&quot;code-keyword&quot;&gt;foreach&lt;/span&gt; (T item &lt;span class=&quot;code-keyword&quot;&gt;in&lt;/span&gt; source)     {         &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (predicate(item))             &lt;span class=&quot;code-keyword&quot;&gt;yield&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; item;     } }This extension method will apply to an object that extends the &lt;code&gt;IEnumerable&lt;/code&gt; interface, and has one parameter of type &lt;code&gt;Func&lt;/code&gt;, which you can think of as a pointer to a function. This parameter function is the predicate to specify the criteria for the selection. This method will return a list of objects that match the predicate criteria.&lt;br /&gt;
Now we can create a new function as the predicate:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain24&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg24&quot; preid=&quot;24&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse24&quot; preid=&quot;24&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;24&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre24&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;bool&lt;/span&gt; IsVege(Product p)
{
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; p.ProductName.Contains(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;vegetable&quot;&lt;/span&gt;);
}&lt;/pre&gt;Then we can use the Extension Method &lt;code&gt;Get&lt;/code&gt; to retrieve all of the vegetable products, like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain25&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg25&quot; preid=&quot;25&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse25&quot; preid=&quot;25&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;25&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre25&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; veges1 = products.Get(IsVege);&lt;/pre&gt;In previous sections, we have created a products list, with five products, of which two are vegetables. So &lt;code&gt;veges1&lt;/code&gt; is actually of the &lt;code&gt;IEnumerable&lt;product&gt;&lt;/product&gt;&lt;/code&gt; type, and should contain two products. We can write the following test statements to print out the results:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain26&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg26&quot; preid=&quot;26&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse26&quot; preid=&quot;26&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;26&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre26&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;Console.WriteLine(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;\nThere are {0} vegetables:&quot;&lt;/span&gt;, veges1.Count());
&lt;span class=&quot;code-keyword&quot;&gt;foreach&lt;/span&gt; (Product p &lt;span class=&quot;code-keyword&quot;&gt;in&lt;/span&gt; veges1)
{
    Console.WriteLine(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;Product ID: {0} Product name: {1}&quot;&lt;/span&gt;, 
            p.ProductID, p.ProductName);
}&lt;/pre&gt;The output will be:&lt;br /&gt;
&lt;img alt=&quot;Pic3.png&quot; complete=&quot;true&quot; height=&quot;263&quot; src=&quot;http://www.codeproject.com/KB/linq/IntroducingLINQ/Pic3.png&quot; width=&quot;516&quot; /&gt;&lt;br /&gt;
Or, we can first create a new variable of type &lt;code&gt;Func&lt;/code&gt;, assign the function pointer of &lt;code&gt;IsVege&lt;/code&gt; to this new variable, and then pass this new variable to the &lt;code&gt;Get&lt;/code&gt; method, like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain27&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg27&quot; preid=&quot;27&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse27&quot; preid=&quot;27&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;27&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre27&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;Func&lt;product class=&quot;code-keyword&quot; span=&quot;span&quot;&gt;bool&lt;/product&gt;&lt;/pre&gt;&amp;gt; predicate = IsVege; &lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; veges2 = products.Get(predicate);The variable &lt;code&gt;veges2&lt;/code&gt; will contain the same products as &lt;code&gt;veges1&lt;/code&gt;.&lt;br /&gt;
Now, let us use the C# 2.0 anonymous method to rewrite the above statement, which will now become:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain28&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg28&quot; preid=&quot;28&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse28&quot; preid=&quot;28&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;28&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre28&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; veges3 = products.Get(
    &lt;span class=&quot;code-keyword&quot;&gt;delegate&lt;/span&gt; (Product p)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; p.ProductName.Contains(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;vegetable&quot;&lt;/span&gt;);
    }
);&lt;/pre&gt;At this time, we put the body of the predicate method &lt;code&gt;IsVege&lt;/code&gt; inside the Extension Method call, with the keyword &lt;code&gt;delegate&lt;/code&gt;. So, in order to get the vegetables from the products list, we don&#39;t have to define a specific predicate method. We can specify the criteria on the spot, when we need it.&lt;br /&gt;
The lambda expression comes into play right after the above step. In C# 3.0, with lambda expression, we can actually write the following one line statement to retrieve all of the vegetables from the products list:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain29&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg29&quot; preid=&quot;29&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse29&quot; preid=&quot;29&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;29&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre29&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; veges4 = products.Get(p =&amp;gt; p.ProductName.Contains(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;vegetable&quot;&lt;/span&gt;));&lt;/pre&gt;In the above statement, the parameter of the method &lt;code&gt;Get&lt;/code&gt; is a lambda expression. The first &lt;code&gt;p&lt;/code&gt; is the parameter of the lambda expression, just like the parameter &lt;code&gt;p&lt;/code&gt; in the anonymous method when we get &lt;code&gt;veges3&lt;/code&gt;. This parameter is implicitly typed and, in this case, is of type &lt;code&gt;Product&lt;/code&gt;, because this expression is applied to a &lt;code&gt;Products&lt;/code&gt; object, which contains a list of &lt;code&gt;Product&lt;/code&gt; objects. This parameter can also be explicitly typed, like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain30&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg30&quot; preid=&quot;30&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse30&quot; preid=&quot;30&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;30&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre30&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; veges5 = products.Get((Product p) =&amp;gt; p.ProductName.Contains(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;vegetable&quot;&lt;/span&gt;));&lt;/pre&gt;The parameter is followed by the &lt;code&gt;=&amp;gt;&lt;/code&gt; token, and then followed by an expression or a statement block, which will be the predicate.&lt;br /&gt;
So, now we can easily write the following statement to get all of the candy products:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain31&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg31&quot; preid=&quot;31&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse31&quot; preid=&quot;31&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;31&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre31&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; candies = products.Get(p =&amp;gt; p.ProductName.Contains(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;candy&quot;&lt;/span&gt;));&lt;/pre&gt;At compile time, all lambda expressions are translated into anonymous methods according to the lambda expression conversion rules. So again, this feature is only a Visual Studio feature. We don&#39;t need any special .NET runtime library or instructions to run an assembly containing lambda expressions.&lt;br /&gt;
In short, lambda expressions are just another way of writing anonymous methods in a more concise, functional syntax.&lt;br /&gt;
&lt;h2&gt;Built-in LINQ Extension Methods and method syntax&lt;/h2&gt;.NET Framework 3.5 defines lots of Extension Methods in the namespace &lt;code&gt;System.Linq&lt;/code&gt;, including &lt;code&gt;Where&lt;/code&gt;, &lt;code&gt;Select&lt;/code&gt;, &lt;code&gt;SelectMany&lt;/code&gt;, &lt;code&gt;OrderBy&lt;/code&gt;, &lt;code&gt;OrderByDescending&lt;/code&gt;, &lt;code&gt;ThenBy&lt;/code&gt;, &lt;code&gt;ThenByDescending&lt;/code&gt;, &lt;code&gt;GroupBy&lt;/code&gt;, &lt;code&gt;Join&lt;/code&gt;, and &lt;code&gt;GroupJoin&lt;/code&gt;.&lt;br /&gt;
We can use these Extension Methods just as we would use our own Extension Methods. For example, we can use the &lt;code&gt;Where&lt;/code&gt; Extension Method to get all vegetables from the &lt;code&gt;Products&lt;/code&gt; list, like this:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain32&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg32&quot; preid=&quot;32&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse32&quot; preid=&quot;32&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;32&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre32&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; veges6 = products.Where(p =&amp;gt; p.ProductName.Contains(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;vegetable&quot;&lt;/span&gt;));&lt;/pre&gt;This will give us the same result as &lt;code&gt;veges1&lt;/code&gt; through &lt;code&gt;veges5&lt;/code&gt;.&lt;br /&gt;
As a matter of fact, the definition of the built-in LINQ Extension Method &lt;code&gt;Where&lt;/code&gt; is just like our Extension Method &lt;code&gt;Get&lt;/code&gt;, but in a different namespace:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain33&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg33&quot; preid=&quot;33&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse33&quot; preid=&quot;33&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;33&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre33&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;namespace&lt;/span&gt; System.Linq
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;class&lt;/span&gt; Enumerable
    {
        &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; IEnumerable&lt;t&gt; Where&lt;t&gt;(&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; IEnumerable&lt;t&gt; 
             source, Func&lt;t class=&quot;code-keyword&quot; span=&quot;span&quot;&gt;bool&lt;/t&gt;&lt;/t&gt;&lt;/t&gt;&lt;/t&gt;&lt;/pre&gt;&amp;gt; predicate)         {             &lt;span class=&quot;code-keyword&quot;&gt;foreach&lt;/span&gt; (T item &lt;span class=&quot;code-keyword&quot;&gt;in&lt;/span&gt; source)             {                 &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (predicate(item))                    &lt;span class=&quot;code-keyword&quot;&gt;yield&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; item;             }          }     } }The statements that use LINQ Extension Methods are called using the LINQ method syntax.&lt;br /&gt;
Unlike the other C# 3.0 new features that we have talked about in previous sections, these LINQ specific Extension Methods are defined in .NET Framework 3.5. So, to run an assembly containing any of these methods, you need .NET Framework 3.5 or above installed.&lt;br /&gt;
&lt;h2&gt;LINQ query syntax and query expression&lt;/h2&gt;With built-in LINQ Extension Methods and lambda expressions, Visual Studio allows us to write SQL-like statements in C# when invoking these methods. The syntax of these statements is called LINQ query syntax, and the expression in query syntax is called a query expression.&lt;br /&gt;
For example, we can change this statement:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain34&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg34&quot; preid=&quot;34&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse34&quot; preid=&quot;34&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;34&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre34&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; veges6 = products.Where(p =&amp;gt; p.ProductName.Contains(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;vegetable&quot;&lt;/span&gt;));&lt;/pre&gt;to the following query statement, by using the new LINQ query syntax:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain35&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg35&quot; preid=&quot;35&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse35&quot; preid=&quot;35&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;35&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre35&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; veges7 = from p &lt;span class=&quot;code-keyword&quot;&gt;in&lt;/span&gt; products
where p.ProductName.Contains(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;vegetable&quot;&lt;/span&gt;)
select p;&lt;/pre&gt;In the above C# statement, we can directly use the SQL keywords &lt;code&gt;select&lt;/code&gt;, &lt;code&gt;from&lt;/code&gt;, and &lt;code&gt;where&lt;/code&gt; to &quot;query&quot; an in-memory collection list. In addition to the in-memory collection lists, we can use the same syntax to manipulate data in XML files, in a dataset, and in a database. In the following articles, we will see how to query a database using LINQ to SQL and LINQ to Entities.&lt;br /&gt;
Combined with the anonymous data type, we can shape the result of the query in the following statement:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain36&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg36&quot; preid=&quot;36&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse36&quot; preid=&quot;36&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;36&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre36&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; candyOrVeges = from p &lt;span class=&quot;code-keyword&quot;&gt;in&lt;/span&gt; products
                   where p.ProductName.Contains(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;candy&quot;&lt;/span&gt;) 
                         || p.ProductName.Contains(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;vegetable&quot;&lt;/span&gt;)
                   orderby p.UnitPrice descending, p.ProductID
                   select &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; { p.ProductName, p.UnitPrice };&lt;/pre&gt;As you have seen, query syntax is a very convenient, declarative shorthand for expressing queries using the standard LINQ query operators. It offers a syntax that increases the readability and clarity of expressing queries in code, and can be easy to read and write correctly.&lt;br /&gt;
Not only is query syntax easy to read and write, Visual Studio actually provides complete intellisense and compile-time checking support for query syntax. For example, when typing in p and the following dot, we get all of the &lt;code&gt;Product&lt;/code&gt; members listed in the intellisense list, as shown in the following image:&lt;br /&gt;
&lt;a href=&quot;http://www.codeproject.com/KB/linq/IntroducingLINQ/Pic4.png&quot; title=&quot;Click to enlarge&quot;&gt;&lt;img border=&quot;0&quot; complete=&quot;true&quot; height=&quot;405&quot; src=&quot;http://www.codeproject.com/KB/linq/IntroducingLINQ/Pic4_small.png&quot; width=&quot;600&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
If there is a typo in the syntax (as is the case in this statement: &lt;code&gt;where p.productName.Contains(&quot;vegetable&quot;)&lt;/code&gt;), the compiler will tell you exactly where the mistake is and why it is wrong. There won&#39;t be any run-time errors such as &quot;invalid SQL statement&quot;. The following image shows the error message when there is a typo in the statement:&lt;br /&gt;
&lt;a href=&quot;http://www.codeproject.com/KB/linq/IntroducingLINQ/Pic5.png&quot; title=&quot;Click to enlarge&quot;&gt;&lt;img border=&quot;0&quot; complete=&quot;true&quot; height=&quot;405&quot; src=&quot;http://www.codeproject.com/KB/linq/IntroducingLINQ/Pic5_small.png&quot; width=&quot;600&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
As you can see, you can write a LINQ statement in the query syntax, much like when you are working with a database in Query Analyzer. However, the .NET Common Language Runtime (CLR) has no notion of the query syntax. Therefore, at compile time, query expressions are translated to something that the CLR does understand: method calls. Under the covers, the compiler takes the query syntax expressions and translates them into explicit method invocation code that utilizes the new LINQ Extension Method and lambda expression language features in C# 3.0.&lt;br /&gt;
For example, the &lt;code&gt;candyOrVeges&lt;/code&gt; query expression will be translated to this method invocation call:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain37&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg37&quot; preid=&quot;37&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse37&quot; preid=&quot;37&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;37&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre37&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;products.Where(p =&amp;gt; p.ProductName.Contains(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;candy&quot;&lt;/span&gt;) 
|| p.ProductName.Contains(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;vegetable&quot;&lt;/span&gt;)).OrderByDescending(
p =&amp;gt; p.UnitPrice).ThenBy(p=&amp;gt;p.ProductID).Select(p=&amp;gt;&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; { p.ProductName, p.UnitPrice })&lt;/pre&gt;You can print out and compare the results for using query syntax and method syntax, to make sure they are equivalent. The following statements will print out the product name and unit price for the products in the query result using query syntax:&lt;br /&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain38&quot; style=&quot;display: block;&quot; width=&quot;100%&quot;&gt;&lt;img height=&quot;9&quot; id=&quot;preimg38&quot; preid=&quot;38&quot; src=&quot;http://www.codeproject.com/images/minus.gif&quot; style=&quot;cursor: pointer;&quot; width=&quot;9&quot; /&gt;&lt;span id=&quot;precollapse38&quot; preid=&quot;38&quot; style=&quot;cursor: pointer; margin-bottom: 0px;&quot;&gt; Collapse&lt;/span&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query#&quot; preid=&quot;38&quot;&gt;Copy Code&lt;/a&gt;&lt;/div&gt;&lt;pre id=&quot;pre38&quot; lang=&quot;cs&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;foreach&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; p &lt;span class=&quot;code-keyword&quot;&gt;in&lt;/span&gt; candyOrVeges)
{
    Console.WriteLine(&lt;span class=&quot;code-string&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot;&gt;{0} {1}&quot;&lt;/span&gt;, p.ProductName, p.UnitPrice);
}&lt;/pre&gt;Do the same for the results using method syntax, and you will get a printout like this:&lt;br /&gt;
&lt;img alt=&quot;Pic6.png&quot; complete=&quot;true&quot; height=&quot;269&quot; src=&quot;http://www.codeproject.com/KB/linq/IntroducingLINQ/Pic6.png&quot; width=&quot;600&quot; /&gt;&lt;br /&gt;
In general, query syntax is recommended over method syntax because it is usually simpler, and more readable. However, there is no semantic difference between method syntax and query syntax.&lt;br /&gt;
&lt;h2&gt;Built-in LINQ operators&lt;/h2&gt;As we have seen in the previous sections, there are no semantic differences between method syntax and query syntax. In addition, some queries, such as those that retrieve the number of elements matching a specified condition, or those that retrieve the element that has the maximum value in a source sequence, can be expressed only as method calls. These kinds of methods are sometimes referred to as .NET Standard Query Operators and include &lt;code&gt;Take&lt;/code&gt;, &lt;code&gt;ToList&lt;/code&gt;, &lt;code&gt;FirstOrDefault&lt;/code&gt;, &lt;code&gt;Max&lt;/code&gt;, and &lt;code&gt;Min&lt;/code&gt;.&lt;br /&gt;
In addition to those methods that can only be expressed as method calls, all the Extension Methods that can be used in either query syntax or method syntax are also defined as standard query operators such as &lt;code&gt;select&lt;/code&gt;, &lt;code&gt;where&lt;/code&gt;, and &lt;code&gt;from&lt;/code&gt;. So, the .NET Standard Query Operators contain all of the LINQ-related methods.&lt;br /&gt;
A complete list of these operators can be found at Microsoft MSDN library for the class &lt;code&gt;System.Linq.Enumerable&lt;/code&gt;.&lt;br /&gt;
To have a quick look at all those operators, in Visual Studio, open the &lt;em&gt;program.cs&lt;/em&gt; file, and type in &lt;code&gt;System.Linq.Enumerable&lt;/code&gt;. Then, type in a dot after &lt;code&gt;Enumerable&lt;/code&gt;. You will see the whole list of operators in the intellisense menu.&lt;br /&gt;
&lt;a href=&quot;http://www.codeproject.com/KB/linq/IntroducingLINQ/Pic7.png&quot; title=&quot;Click to enlarge&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;405&quot; src=&quot;http://www.codeproject.com/KB/linq/IntroducingLINQ/Pic7_small.png&quot; width=&quot;600&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
The methods in this static class provide an implementation of the standard query operators for querying data sources that implement &lt;code&gt;IEnumerable&amp;lt;(Of &amp;lt;(T&amp;gt;)&amp;gt;)&lt;/code&gt;. The standard query operators are general-purpose methods that follow the LINQ pattern and enable you to express traversal, filter, and projection operations over data in any .NET-based programming language.&lt;br /&gt;
The majority of the methods in this class are defined as Extension Methods that extend &lt;code&gt;IEnumerable&amp;lt;(Of &amp;lt;(T&amp;gt;)&amp;gt;)&lt;/code&gt;. This means that they can be called like an instance method on any object that implements &lt;code&gt;IEnumerable&amp;lt;(Of &amp;lt;(T&amp;gt;)&amp;gt;)&lt;/code&gt;.&lt;br /&gt;
&lt;h2&gt;Summary&lt;/h2&gt;In this article, we have learned new features related to LINQ, including the new data type &lt;code&gt;var&lt;/code&gt;, object and collection initializers, Extension Methods, lambda expressions, LINQ syntax, and query expressions. Now that we have the required knowledge for LINQ, we are ready to try LINQ to SQL and LINQ to Entities, which will be discussed in the following articles.&lt;br /&gt;
The key points covered in this article include:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;The new data type &lt;code&gt;var&lt;/code&gt; gives extra flexibility when defining new variables&lt;/li&gt;
&lt;li&gt;The Automatic Property feature can be used to define simple properties&lt;/li&gt;
&lt;li&gt;Initial values can be assigned to a new object and collection variables by using Object initializer and Collection initializer&lt;/li&gt;
&lt;li&gt;Actual types will be created for anonymous types at compile time&lt;/li&gt;
&lt;li&gt;Extension Methods can be used to extend the public contract of an existing CLR type, without having to subclass or recompile the original type&lt;/li&gt;
&lt;li&gt;Lambda expressions are just another way of writing anonymous methods in a more concise, functional syntax&lt;/li&gt;
&lt;li&gt;Many LINQ-specific Extension Methods have been pre-defined in .NET Framework 3.5&lt;/li&gt;
&lt;li&gt;All .NET Standard LINQ Query Operators are defined in the static class &lt;code&gt;System.Linq.Enumerable&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;LINQ query syntax can be used to make expressions in method syntax, but there is no semantic difference between method syntax and query syntax&lt;/li&gt;
&lt;li&gt;Some LINQ queries can only be expressed in method calls&lt;/li&gt;
&lt;/ul&gt;Note: this article is based on chapter 6 of my book &quot;WCF 4.0 Multi-tier Services Development with LINQ to Entities&quot; (ISBN 1849681147). This book is a hands-on guide to learn how to build SOA applications on the Microsoft platform using WCF and LINQ to Entities. It is updated for VS2010 from my previous book: WCF Multi-tier Services Development with LINQ.&lt;br /&gt;
With this book, you can learn how to master WCF and LINQ to Entities concepts by completing practical examples and applying them to your real-world assignments. This is the first and only book to combine WCF and LINQ to Entities in a multi-tier real-world WCF Service. It is ideal for beginners who want to learn how to build scalable, powerful, easy-to-maintain WCF Services. This book is rich with example code, clear explanations, interesting examples, and practical advice. It is a truly hands-on book for C++ and C# developers.&lt;br /&gt;
You don&#39;t need to have any experience in WCF or LINQ to Entities to read this book. Detailed instructions and precise screenshots will guide you through the whole process of exploring the new worlds of WCF and LINQ to Entities. This book is distinguished from other WCF and LINQ to Entities books by that, this book focuses on how to do it, not why to do it in such a way, so you won&#39;t be overwhelmed by tons of information about WCF and LINQ to Entities. Once you have finished this book, you will be proud that you have been working with WCF and LINQ to Entities in the most straightforward way.&lt;br /&gt;
&lt;/article&gt;&lt;br /&gt;
</description><link>http://fjellsoft.blogspot.com/2012/12/linq.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-6799028032822133726</guid><pubDate>Fri, 23 Nov 2012 21:07:00 +0000</pubDate><atom:updated>2012-11-23T14:07:44.435-07:00</atom:updated><title>Skydiving: Letting Go </title><description>&lt;div&gt;&lt;p&gt;&lt;a href=&quot;http://feedproxy.google.com/~r/tinybuddha/~3/lxO9uyfCwJs/&quot;&gt;Reaching Out for Help When The Road Gets Rough&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/div&gt;</description><link>http://fjellsoft.blogspot.com/2012/11/skydiving-letting-go.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-1660092410220660330</guid><pubDate>Sat, 03 Nov 2012 10:29:00 +0000</pubDate><atom:updated>2012-11-03T04:25:21.882-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">divorce</category><category domain="http://www.blogger.com/atom/ns#">fathers</category><category domain="http://www.blogger.com/atom/ns#">life</category><category domain="http://www.blogger.com/atom/ns#">movies</category><category domain="http://www.blogger.com/atom/ns#">the wall</category><title>Our Walls</title><description>&lt;div&gt;I was so ignorant to automatically assume this movie (and music) was about the Berlin Wall and the Cold War. It&#39;s much closer to home, present-day, than 1980&#39;s Germany.  The sad thing is, I guarantee you many people that may not be able to see the blatant symbolism will discard this film as being &quot;about drugs and Neo-Nazism&quot;. Grow a brain where applicable.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
Side note: Just how many guys named Roger from England that grew up without Dads and were the lead singers of HUGE rock bands decided to make rock musicals about the psychological damage a child sustains when he/she grows up in a broken home without a Father?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
I dig The Who and all, but psychology aside if you are looking for a rock musical a little closer to being &quot;about drugs&quot;, watch Tommy. Just keep in mind that Roger Daltry never really did drugs - he left that up to Pete Townshend. He was just a bit more vain than Roger Waters, however, and decided he needed to play the lead role in his own movie. Bad move in my opinion...the man can&#39;t act. Waters, on the other hand, chose a great actor to play &#39;Pink&#39; and stuck to writing the jams. Solid.&lt;br /&gt;
&lt;iframe width=&quot;640&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/jiVGD1rcQxY?feature=player_detailpage&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;/div&gt;</description><link>http://fjellsoft.blogspot.com/2012/11/our-walls.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/jiVGD1rcQxY/default.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-8384481779852610834</guid><pubDate>Fri, 02 Nov 2012 21:10:00 +0000</pubDate><atom:updated>2012-11-02T14:16:36.195-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">life</category><category domain="http://www.blogger.com/atom/ns#">quotes</category><title>Where I end up</title><description>&lt;article&gt;&lt;br /&gt;
&lt;q&gt;I rarely end up where I was intending to go, but often I end up somewhere I needed to be.&lt;/q&gt;&lt;br /&gt;
&lt;cite&gt;Douglas Adams&lt;/cite&gt;&lt;br /&gt;
&lt;/article&gt;</description><link>http://fjellsoft.blogspot.com/2012/11/where-i-end-up.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-3439105858768367525</guid><pubDate>Fri, 02 Nov 2012 19:55:00 +0000</pubDate><atom:updated>2012-11-02T14:11:40.772-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">life</category><category domain="http://www.blogger.com/atom/ns#">lyrics</category><title>I am... </title><description>&lt;article&gt;&lt;br /&gt;
&lt;audio controls=&quot;controls&quot;&gt;&lt;br /&gt;
&lt;source src=&quot;http://www.fileden.com/files/2009/6/17/2479760/Audioslave_I Am the Highway.mp3&quot; type=&quot;audio/mp3&quot; /&gt;&lt;br /&gt;
Your Browser sucks! (AKA not HTML5 compliant)&lt;br /&gt;
&lt;/audio&gt;&lt;br /&gt;
&lt;p&gt;Pearls and swine bereft of me&lt;br /&gt;
Long and weary my road has been&lt;br /&gt;
I was lost in the cities&lt;br /&gt;
Alone in the hills&lt;br /&gt;
No sorrow or pity for leaving I feel&lt;br /&gt;
&lt;br /&gt;
I am not your rolling wheels&lt;br /&gt;
I am the highway&lt;br /&gt;
I am not your carpet ride&lt;br /&gt;
I am the sky&lt;br /&gt;
&lt;br /&gt;
Friends and liars don&#39;t wait for me &#39;cause I&#39;ll get on all by myself&lt;br /&gt;
I put millions of miles under my heels and still too close to you I feel&lt;br /&gt;
Yeah&lt;br /&gt;
&lt;br /&gt;
I am not your rolling wheels&lt;br /&gt;
I am the highway&lt;br /&gt;
I am not your carpet ride&lt;br /&gt;
I am the sky&lt;br /&gt;
&lt;br /&gt;
I am not your blowing wind&lt;br /&gt;
I am the lightning&lt;br /&gt;
I am not your autumn moon&lt;br /&gt;
I am the night&lt;br /&gt;
The night&lt;br /&gt;
&lt;br /&gt;
Yeah&lt;br /&gt;
I am not your rolling wheels&lt;br /&gt;
I am the highway&lt;br /&gt;
I am not your carpet ride&lt;br /&gt;
I am the sky&lt;br /&gt;
&lt;br /&gt;
Well I am not your blowing wind&lt;br /&gt;
I am the lightning&lt;br /&gt;
I am not your autumn moon&lt;br /&gt;
I am the night&lt;br /&gt;
Night&lt;br /&gt;
&lt;br /&gt;
- AudioSlave&lt;br /&gt;
&lt;/p&gt;&lt;/article&gt;</description><link>http://fjellsoft.blogspot.com/2012/11/i-am.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-4478768678093193290</guid><pubDate>Fri, 02 Nov 2012 01:26:00 +0000</pubDate><atom:updated>2012-11-01T18:26:11.115-07:00</atom:updated><title>One Day at a Time</title><description>&lt;div&gt;&lt;p&gt;The best thing about the future is that it only comes one day at a time. &lt;br&gt;
-Abraham Lincoln &lt;/p&gt;
&lt;/div&gt;</description><link>http://fjellsoft.blogspot.com/2012/11/one-day-at-time.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-6373949679539978167</guid><pubDate>Tue, 23 Oct 2012 06:20:00 +0000</pubDate><atom:updated>2012-10-22T23:20:31.255-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">happiness</category><category domain="http://www.blogger.com/atom/ns#">quotes</category><category domain="http://www.blogger.com/atom/ns#">success</category><title>Success is not the key to happiness...</title><description>&lt;article&gt;
&lt;q&gt;Success is not the key to happiness. &lt;b&gt;&lt;em&gt;Happiness is the key to success.&lt;/em&gt;&lt;/b&gt; If you love what you are doing, you will be successful.&lt;/q&gt;
&lt;br /&gt;
&lt;cite&gt;Albert Schweitzer&lt;/cite&gt;
&lt;/article&gt;</description><link>http://fjellsoft.blogspot.com/2012/10/success-is-not-key-to-happiness.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-5286595409456545905</guid><pubDate>Sat, 06 Oct 2012 02:04:00 +0000</pubDate><atom:updated>2012-10-05T19:05:00.078-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">career</category><category domain="http://www.blogger.com/atom/ns#">do</category><category domain="http://www.blogger.com/atom/ns#">love</category><category domain="http://www.blogger.com/atom/ns#">passion</category><category domain="http://www.blogger.com/atom/ns#">videos</category><title>TED: Do What You Love</title><description>&lt;article&gt;
(Explicit) Gary Vaynerchuk is an outspoken and very unique speaker for doing what you love.

&lt;iframe width=&quot;640&quot; height=&quot;360&quot; src=&quot;https://www.youtube.com/embed/EhqZ0RU95d4?feature=player_embedded&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;
&lt;/article&gt;</description><link>http://fjellsoft.blogspot.com/2012/10/do-what-you-love.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/EhqZ0RU95d4/default.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-7075406686424606740</guid><pubDate>Thu, 04 Oct 2012 10:09:00 +0000</pubDate><atom:updated>2012-10-04T03:12:38.898-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Clarke</category><category domain="http://www.blogger.com/atom/ns#">short stories</category><category domain="http://www.blogger.com/atom/ns#">The Star</category><title>The Star</title><description>&lt;article&gt;
&lt;cite&gt;By Arthur C. Clarke&lt;/cite&gt;
&lt;br /&gt;
It is three thousand light years to the Vatican. Once, I believed that space could have no power over faith, just as I believed that the heavens declared the glory of God&#39;s handiwork. Now I have seen that handiwork, and my faith is sorely troubled. I stare at the crucifix that hangs on the cabin wall above the Mark VI Computer, and for the first time in my life I wonder if it is no more than an empty symbol.&lt;br /&gt;
&lt;br /&gt;
I have told no one yet, but the truth cannot be concealed. The facts are there for all to read, recorded on the countless miles of magnetic tape and the thousands of photographs we are carrying back to Earth. Other scientists can interpret them as easily as I can, and I am not one who would condone that tampering with the truth which often gave my order a bad name in the olden days.&lt;br /&gt;
&lt;br /&gt;
The crew are already sufficiently depressed: I wonder how they will take this ultimate irony. Few of them have any religious faith, yet they will not relish using this final weapon in their campaign against me--that private, good-natured, but fundamentally serious, war which lasted all the way from Earth. It amused them to have a Jesuit as chief astrophysicist: Dr. Chandler, for instance, could never get over it. (Why are medical men such notorious atheists?). Sometimes he would meet me on the observation deck, where the lights are always low so that the stars shine with undiminished glory. He would come up to me in the gloom and stand staring out of the great oval port, while the heavens crawled slowly around us as the ship turned end over end with the residual spin we had never bothered to correct.&lt;br /&gt;
&lt;br /&gt;
&quot;Well, Father,&quot; he would say at last, &quot;it goes on forever and forever, and perhaps Something made it. But how you can believe that Something has a special interest in us and our miserable little world--that just beats me.&quot; Then the argument would start, while the stars and nebulae would swing around us in silent, endless arcs beyond the flawlessly clear plastic of the observation port.&lt;br /&gt;
&lt;br /&gt;
It was, I think, the apparent incongruity of my position that caused most amusement to the crew. In vain I would point to my three papers in the Astrophysical Journal, my five in the Monthly Notices of the Royal Astronomical Society. I would remind them that my order has long been famous for its scientific works. We may be few now, but ever since the eighteenth century we have made contributions to astronomy and geophysics out of all proportion to our numbers. Will my report on the Phoenix Nebula end our thousand years of history? It will end, I fear, much more than that.&lt;br /&gt;
&lt;br /&gt;
I do not know who gave the nebula its name, which seems to me a very bad one. If it contains a prophecy, it is one that cannot be verified for several billion years. Even the word nebula is misleading: this is a far smaller object than those stupendous clouds of mist--the stuff of unborn stars--that are scattered throughout the length of the Milky Way. On the cosmic scale, indeed, the Phoenix Nebula is a tiny thing--a tenuous shell of gas surrounding a single star.&lt;br /&gt;
&lt;br /&gt;
Or what is left of a star . . .&lt;br /&gt;
&lt;br /&gt;
The Rubens engraving of Loyola seems to mock me as it hangs there above the spectrophotometer tracings. What would you, Father, have made of this knowledge that has come into my keeping, so far from the little world that was all the universe you knew? Would your faith have risen to the challenge, as mine has failed to do?&lt;br /&gt;
&lt;br /&gt;
You gaze into the distance, Father, but I have traveled a distance beyond any that you could have imagined when you founded our order a thousand years ago. No other survey ship has been so far from Earth: we are at the very frontiers of the explored universe. We set out to reach the Phoenix Nebula, we succeeded, and we are homeward bound with our burden of knowledge. I wish I could lift that burden from my shoulders, but I call to you in vain across the centuries and the light years that lie between us.&lt;br /&gt;
&lt;br /&gt;
On the book you are holding the words are plain to read. AD MAJOREM DEI GLORIAM, the message runs, but it is a message I can no longer believe. Would you still believe it, if you could see what we have found?&lt;br /&gt;
&lt;br /&gt;
We knew, of course, what the Phoenix Nebula was. Every year, in our galaxy alone, more than a hundred stars explode, blazing for a few hours or days with thousands of times their normal brilliance before they sink back into death and obscurity. Such are the ordinary novae--the commonplace disasters of the universe. I have recorded the spectrograms and light curves of dozens since I started working at the Lunar Observatory.&lt;br /&gt;
&lt;br /&gt;
But three or four times in every thousand years occurs something beside which even a nova pales into total insignificance.&lt;br /&gt;
&lt;br /&gt;
When a star becomes a supernova, it may for a little while outshine all the massed suns of the galaxy. The Chinese astronomers watched this happen in A.D. 1054, not knowing what it was they saw. Five centuries later, in 1572, a supernova blazed in Cassiopeia so brilliantly that it was visible in the daylight sky. There have been three more in the thousand years that have passed since then.&lt;br /&gt;
&lt;br /&gt;
Our mission was to visit the remnants of such a catastrophe, to reconstruct the events that led up to it, and, if possible, to learn its cause. We came slowly in through the concentric shells of gas that had been blasted out six thousand years before, yet were expanding still. They were immensely hot, radiating even now with a fierce violet light, but were far too tenuous to do us any damage. When the star had exploded, its outer layers had been driven upward with such speed that they had escaped completely from its gravitational field. Now they formed a hollow shell large enough to engulf a thousand solar systems, and at its center burned the tiny, fantastic object which the star had now become--a White Dwarf, smaller than the Earth, yet weighing a million times as much.&lt;br /&gt;
&lt;br /&gt;
The glowing gas shells were all around us, banishing the normal night of interstellar space. We were flying into the center of a cosmic bomb that had detonated millennia ago and whose incandescent fragments were still hurtling apart. The immense scale of the explosion, and the fact that the debris already covered a volume of space many billions of miles across, robbed the scene of any visible movement. It would take decades before the unaided eye could detect any motion in these tortured wisps and eddies of gas, yet the sense of turbulent expansion was overwhelming.&lt;br /&gt;
&lt;br /&gt;
We had checked our primary drive hours before, and were drifting slowly toward the fierce little star ahead. Once it had been a sun like our own, but it had squandered in a few hours the energy that should have kept it shining for a million years. Now it was a shrunken miser, hoarding its resources as if trying to make amends for its prodigal youth.&lt;br /&gt;
&lt;br /&gt;
No one seriously expected to find planets. If there had been any before the explosion, they would have been boiled into puffs of vapor, and their substance lost in the greater wreckage of the star itself. But we made the automatic search, as we always do when approaching an unknown sun, and presently we found a single small world circling the star at an immense distance. It must have been the Pluto of this vanished solar system, orbiting on the frontiers of the night. Too far from the central sun ever to have known life, its remoteness had saved it from the fate of all its lost companions.&lt;br /&gt;
&lt;br /&gt;
The passing fires had seared its rocks and burned away the mantle of frozen gas that must have covered it in the days before the disaster. We landed, and we found the Vault.&lt;br /&gt;
&lt;br /&gt;
Its builders had made sure that we would. The monolithic marker that stood above the entrance was now a fused stump, but even the first long-range photographs told us that here was the work of intelligence. A little later we detected the continent-wide pattern of radioactivity that had been buried in the rock. Even if the pylon above the Vault had been destroyed, this would have remained, an immovable and all but eternal beacon calling to the stars. Our ship fell toward this gigantic bull&#39;s-eye like an arrow into its target.&lt;br /&gt;
&lt;br /&gt;
The pylon must have been a mile high when it was built, but now it looked like a candle that had melted down into a puddle of wax. It took us a week to drill through the fused rock, since we did not have the proper tools for a task like this. We were astronomers, not archaeologists, but we could improvise. Our original purpose was forgotten: this lonely monument, reared with such labor at the greatest possible distance from the doomed sun, could have only one meaning. A civilization that knew it was about to die had made its last bid for immortality.&lt;br /&gt;
&lt;br /&gt;
It will take us generations to examine all the treasures that were placed in the Vault. They had plenty of time to prepare, for their sun must have given its first warnings many years before the final detonation. Everything that they wished to preserve, all the fruit of their genius, they brought here to this distant world in the days before the end, hoping that some other race would find it and that they would not be utterly forgotten. Would we have done as well, or would we have been too lost in our own misery to give thought to a future we could never see or share?&lt;br /&gt;
&lt;br /&gt;
If only they had had a little more time! They could travel freely enough between the planets of their own sun, but they had not yet learned to cross the interstellar gulfs, and the nearest solar system was a hundred light-years away. Yet even had they possessed the secret of the Transfinite Drive, no more than a few millions could have been saved. Perhaps it was better thus.&lt;br /&gt;
&lt;br /&gt;
Even if they had not been so disturbingly human as their sculpture shows, we could not have helped admiring them and grieving for their fate. They left thousands of visual records and the machines for projecting them, together with elaborate pictorial instructions from which it will not be difficult to learn their written language. We have examined many of these records, and brought to life for the first time in six thousand years the warmth and beauty of a civilization that in many ways must have been superior to our own. Perhaps they only showed us the best, and one can hardly blame them. But their words were very lovely, and their cities were built with a grace that matches anything of man&#39;s. We have watched them at work and play, and listened to their musical speech sounding across the centuries. One scene is still before my eyes--a group of children on a beach of strange blue sand, playing in the waves as children play on Earth. Curious whiplike trees line the shore, and some very large animal is wading in the shadows yet attracting no attention at all.&lt;br /&gt;
&lt;br /&gt;
And sinking into the sea, still warm and friendly and life-giving, is the sun that will soon turn traitor and obliterate all this innocent happiness.&lt;br /&gt;
&lt;br /&gt;
Perhaps if we had not been so far from home and so vulnerable to loneliness, we should not have been so deeply moved. Many of us had seen the ruins of ancient civilizations on other worlds, but they had never affected us so profoundly. This tragedy was unique. It is one thing for a race to fail and die, as nations and cultures have done on Earth. But to be destroyed so completely in the full flower of its achievement, leaving no survivors--how could that be reconciled with the mercy of God?&lt;br /&gt;
&lt;br /&gt;
My colleagues have asked me that, and I have given what answers I can. Perhaps you could have done better, Father Loyola, but I have found nothing in the Exercitia Spiritualia that helps me here. They were not an evil people: I do not know what gods they worshiped, if indeed they worshiped any. But I have looked back at them across the centuries, and have watched while the loveliness they used their last strength to preserve was brought forth again into the light of their shrunken sun. They could have taught us much: why were they destroyed?&lt;br /&gt;
&lt;br /&gt;
I know the answers that my colleagues will give when they get back to Earth. They will say that the universe has no purpose and no plan, that since a hundred suns explode every year in our galaxy, at this very moment some race is dying in the depths of space. Whether that race has done good or evil during its lifetime will make no difference in the end: there is no divine justice, for there is no God.&lt;br /&gt;
&lt;br /&gt;
Yet, of course, what we have seen proves nothing of the sort. Anyone who argues thus is being swayed by emotion, not logic. God has no need to justify His actions to man. He who built the universe can destroy it when He chooses. It is arrogance--it is perilously near blasphemy--for us to say what He may or may not do.&lt;br /&gt;
&lt;br /&gt;
This I could have accepted, hard though it is to look upon whole worlds and peoples thrown into the furnace. But there comes a point when even the deepest faith must falter, and now, as I look at the calculations lying before me, I know I have reached that point at last.&lt;br /&gt;
&lt;br /&gt;
We could not tell, before we reached the nebula, how long ago the explosion took place. Now, from the astronomical evidence and the record in the rocks of that one surviving planet, I have been able to date it very exactly. I know in what year the light of this colossal conflagration reached our Earth. I know how brilliantly the supernova whose corpse now dwindles behind our speeding ship once shone in terrestrial skies. I know how it must have blazed low in the east before sunrise, like a beacon in that oriental dawn.&lt;br /&gt;
&lt;br /&gt;
There can be no reasonable doubt: the ancient mystery is solved at last. Yet, oh God, there were so many stars you could have used. What was the need to give these people to the fire, that the symbol of their passing might shine above Bethlehem?&lt;div class=&quot;separator&quot;style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaiedfifGK-1pted1iHD8TLgl3ExIwnvqE1puLbsZLWjG41CfZF69R6m6XVzKCIQZ_fKWjow-dAM8LHP6ikdaJhGkY2t3iLvb6xJ0SbK9k-IdxjZtmfLHF7YGyzrFi_MHxOhhyphenhyphencrHcIUE/s640/blogger-image-1157192587.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaiedfifGK-1pted1iHD8TLgl3ExIwnvqE1puLbsZLWjG41CfZF69R6m6XVzKCIQZ_fKWjow-dAM8LHP6ikdaJhGkY2t3iLvb6xJ0SbK9k-IdxjZtmfLHF7YGyzrFi_MHxOhhyphenhyphencrHcIUE/s640/blogger-image-1157192587.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/article&gt;</description><link>http://fjellsoft.blogspot.com/2012/10/the-star-clarke.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaiedfifGK-1pted1iHD8TLgl3ExIwnvqE1puLbsZLWjG41CfZF69R6m6XVzKCIQZ_fKWjow-dAM8LHP6ikdaJhGkY2t3iLvb6xJ0SbK9k-IdxjZtmfLHF7YGyzrFi_MHxOhhyphenhyphencrHcIUE/s72-c/blogger-image-1157192587.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-5039411511135953439</guid><pubDate>Thu, 04 Oct 2012 09:38:00 +0000</pubDate><atom:updated>2012-10-04T02:38:38.801-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">code</category><category domain="http://www.blogger.com/atom/ns#">coders</category><category domain="http://www.blogger.com/atom/ns#">inherit</category><category domain="http://www.blogger.com/atom/ns#">life</category><category domain="http://www.blogger.com/atom/ns#">trust</category><title>Coders to Inherit the Earth? No!</title><description>&lt;article&gt;
  &lt;header&gt;
    &lt;h2&gt;Trusting the Code&lt;/h2&gt;
      &lt;/header&gt;
&lt;a href=&quot;http://macblog.us/2012/10/trustcode.html&quot; target=&quot;_blank&quot; title=&quot;Trusting the Code&quot;&gt;  
&lt;image src=&quot;http://news.bbcimg.co.uk/media/images/63147000/jpg/_63147466_codebody.jpg&quot;&gt;&lt;/image&gt;
&lt;/a&gt;
  &lt;h3&gt;
    &lt;a href=&quot;http://macblog.us/2012/10/trustcode.html&quot; target=&quot;_blank&quot; title=&quot;Trusting the Code&quot;&gt;Blog Post@MacBlog.us&lt;/a&gt;
  &lt;/h3&gt;

&lt;/article&gt;</description><link>http://fjellsoft.blogspot.com/2012/10/coders-to-inherit-earth-no.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-2464163512256814450</guid><pubDate>Wed, 03 Oct 2012 22:48:00 +0000</pubDate><atom:updated>2012-10-03T15:48:08.872-07:00</atom:updated><title>Dying Man&#39;s View on Motivation</title><description>&lt;article&gt;
  &lt;header&gt;
    &lt;h2&gt;The Dying Man&#39;s View...Motivation&lt;/h2&gt;
  &lt;/header&gt;

  &lt;audio controls=&quot;controls&quot;&gt;
    &lt;source src=&quot;http://media.blubrry.com/thenewmanpodcast/p/www.thenewmanpodcast.com/audio/TNM122-KeithMartinSmith.mp3&quot; type=&quot;audio/mp3&quot; /&gt;
  Your browser doesn&#39;t support HTML5.
  &lt;/audio&gt;

  &lt;a href=&quot;http://www.thenewmanpodcast.com&quot;&gt;The New Man Podcast&lt;/a&gt;

&lt;/article&gt;</description><link>http://fjellsoft.blogspot.com/2012/10/dying-mans-view-on-motivation.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-4110224635306049873</guid><pubDate>Mon, 01 Oct 2012 05:30:00 +0000</pubDate><atom:updated>2012-09-30T22:32:20.802-07:00</atom:updated><title>To Adam...(Explicit, sweeeeet...)</title><description>&lt;article&gt;
  &lt;header&gt;
    &lt;h2&gt;To Adam...&lt;/h2&gt;
  &lt;/header&gt;

&lt;p&gt;Inside thing...&lt;/p&gt;

&lt;iframe width=&quot;640&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/hXlzci1rKNM?feature=player_detailpage&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;

&lt;/article&gt;</description><link>http://fjellsoft.blogspot.com/2012/09/to-adam.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/hXlzci1rKNM/default.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-8496824296369229650</guid><pubDate>Mon, 01 Oct 2012 05:17:00 +0000</pubDate><atom:updated>2012-09-30T22:23:07.944-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">90&#39;s</category><category domain="http://www.blogger.com/atom/ns#">creep</category><category domain="http://www.blogger.com/atom/ns#">music</category><category domain="http://www.blogger.com/atom/ns#">radiohead</category><category domain="http://www.blogger.com/atom/ns#">videos</category><title>Radiohead: Creep</title><description>&lt;article&gt;

  &lt;header&gt;
    &lt;h2&gt;Creep/Radiohead&lt;/h2&gt;
  &lt;/header&gt;

  &lt;iframe width=&quot;640&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/XFkzRNyygfk?feature=player_detailpage&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;

&lt;/article&gt;</description><link>http://fjellsoft.blogspot.com/2012/09/radiohead-creep.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/XFkzRNyygfk/default.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8569290713946758124.post-7360391257423533379</guid><pubDate>Wed, 26 Sep 2012 23:11:00 +0000</pubDate><atom:updated>2012-10-04T03:06:02.601-07:00</atom:updated><title>Cribs: That&#39;s How I Roll</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-MkCgwUGs9iU/UGOK_fg1ptI/AAAAAAAACpo/WL790GjU8T8/s1600/9BFC8921-F004-4155-B87C-27AB65F3DE7E.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;http://2.bp.blogspot.com/-MkCgwUGs9iU/UGOK_fg1ptI/AAAAAAAACpo/WL790GjU8T8/s640/9BFC8921-F004-4155-B87C-27AB65F3DE7E.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</description><link>http://fjellsoft.blogspot.com/2012/09/dooood.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-MkCgwUGs9iU/UGOK_fg1ptI/AAAAAAAACpo/WL790GjU8T8/s72-c/9BFC8921-F004-4155-B87C-27AB65F3DE7E.PNG" height="72" width="72"/><thr:total>0</thr:total></item></channel></rss>