<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-9849891.post7088592623218853586..comments</id><updated>2008-07-18T15:01:28.592-04:00</updated><category term='animals'/><category term='quotable'/><category term='astronomy'/><category term='soho'/><category term='fbb'/><category term='sysadmin'/><category term='funny'/><category term='nerdville'/><category term='comics'/><category term='theology'/><category term='tomfoolery'/><category term='80s'/><category term='environment'/><category term='cartoons'/><category term='web stuff'/><category term='press'/><category term='fascism'/><category term='paragons'/><category term='climate'/><category term='graphic arts'/><category term='firefox'/><category term='sharepoint'/><category term='psychology'/><category term='taxes'/><category term='celebrity'/><category term='fizzix'/><category term='windows'/><category term='productivity'/><category term='gross'/><category term='rant'/><category term='science'/><category term='humor'/><category term='weather'/><category term='sab'/><category term='tech'/><category term='personal'/><category term='engineering'/><category term='politics'/><category term='programming'/><category term='cheese'/><category term='culture'/><category term='music'/><category term='games'/><category term='philosophy'/><category term='gadgetry'/><category term='flabbergasted'/><category term='life'/><category term='economics'/><category term='chargers'/><category term='whoops'/><category term='software'/><category term='entertainment'/><category term='lpsws'/><category term='religion'/><category term='unpostmodern'/><category term='POS'/><category term='nuttery'/><category term='holyshiznit'/><category term='communism'/><category term='health'/><category term='itunes'/><title type='text'>Comments on Idiotsyncrasies: A Modest Proposal</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.idiotsyncrasies.com/feeds/7088592623218853586/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9849891/7088592623218853586/comments/default'/><link rel='alternate' type='text/html' href='http://www.idiotsyncrasies.com/2008/07/modest-proposal.aspx'/><author><name>Michael</name><uri>http://www.blogger.com/profile/09225391328802972286</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://idiotsyncrasies.com/media/MonkeyBoss_120.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9849891.post-7075905689146411444</id><published>2008-07-18T15:01:00.000-04:00</published><updated>2008-07-18T15:01:00.000-04:00</updated><title type='text'>you can do something similar using LINQ.&lt;br&gt;create...</title><content type='html'>you can do something similar using LINQ.&lt;BR/&gt;create an array of string and use the the .Any feature in it.&lt;BR/&gt;for example&lt;BR/&gt;        class Person&lt;BR/&gt;        {&lt;BR/&gt;            public string Name { get; set; }&lt;BR/&gt;            public int Age { get; set; }&lt;BR/&gt;            public string Gender { get; set; }&lt;BR/&gt;        }&lt;BR/&gt;        public static void Anything2()&lt;BR/&gt;        {&lt;BR/&gt;            // Create an array of Persons.&lt;BR/&gt;    List lessthansign Person greaterthansign PersonList = new List lessthansign Person greaterthansign&lt;BR/&gt;    {   new Person { Name=&amp;quot;John&amp;quot;, Age=8, Gender=&amp;quot;M&amp;quot; },&lt;BR/&gt;        new Person { Name=&amp;quot;Smith&amp;quot;, Age=4, Gender=&amp;quot;M&amp;quot; },&lt;BR/&gt;        new Person { Name=&amp;quot;Jane&amp;quot;, Age=1, Gender=&amp;quot;F&amp;quot; }&lt;BR/&gt;     }; &lt;BR/&gt;    &lt;BR/&gt;&lt;BR/&gt;            // Determine whether any person over age 1 are also male.&lt;BR/&gt;            bool male = PersonList.Any(p =&amp;gt; p.Age &amp;gt; 1 &amp;amp;&amp;amp; p.Gender == &amp;quot;M&amp;quot;);&lt;BR/&gt;&lt;BR/&gt;            Console.WriteLine(&lt;BR/&gt;                &amp;quot;There {0} Male persons over age one.&amp;quot;,&lt;BR/&gt;                male ? &amp;quot;are&amp;quot; : &amp;quot;are not any&amp;quot;);&lt;BR/&gt;        }</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9849891/7088592623218853586/comments/default/7075905689146411444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9849891/7088592623218853586/comments/default/7075905689146411444'/><link rel='alternate' type='text/html' href='http://www.idiotsyncrasies.com/2008/07/modest-proposal.aspx?showComment=1216407660000#c7075905689146411444' title=''/><author><name>prash</name><uri>http://www.blogger.com/profile/15851326993717018198</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.idiotsyncrasies.com/2008/07/modest-proposal.aspx' ref='tag:blogger.com,1999:blog-9849891.post-7088592623218853586' source='http://www.blogger.com/feeds/9849891/posts/default/7088592623218853586' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1908577761'/></entry><entry><id>tag:blogger.com,1999:blog-9849891.post-7898662980606251320</id><published>2008-07-17T11:29:00.000-04:00</published><updated>2008-07-17T11:29:00.000-04:00</updated><title type='text'>Then how about something sql-like?&lt;br&gt;&lt;br&gt;if (i in...</title><content type='html'>Then how about something sql-like?&lt;BR/&gt;&lt;BR/&gt;if (i in [ "one", "two", "three"]) { blah blah blah }</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9849891/7088592623218853586/comments/default/7898662980606251320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9849891/7088592623218853586/comments/default/7898662980606251320'/><link rel='alternate' type='text/html' href='http://www.idiotsyncrasies.com/2008/07/modest-proposal.aspx?showComment=1216308540000#c7898662980606251320' title=''/><author><name>Michael</name><uri>http://www.blogger.com/profile/03606485402187426272</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.idiotsyncrasies.com/2008/07/modest-proposal.aspx' ref='tag:blogger.com,1999:blog-9849891.post-7088592623218853586' source='http://www.blogger.com/feeds/9849891/posts/default/7088592623218853586' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1062874819'/></entry><entry><id>tag:blogger.com,1999:blog-9849891.post-8278820771009632691</id><published>2008-07-17T11:26:00.000-04:00</published><updated>2008-07-17T11:26:00.000-04:00</updated><title type='text'>if ( i == ( &amp;quot;one&amp;quot; || &amp;quot;two&amp;quot; || ...</title><content type='html'>if ( i == ( &amp;quot;one&amp;quot; || &amp;quot;two&amp;quot; || &amp;quot;three&amp;quot; ) ) { blah blah blah }&lt;BR/&gt;won&amp;#39;t work in C# since it is strongly typed and the order of precedence is for &amp;#39;()&amp;#39; first. So when it evaluates is is looking at &amp;quot;one&amp;quot; as boolean which is not correct.&lt;BR/&gt;This works in C since C is loosely typed and anythng &amp;gt;0 is true in C</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9849891/7088592623218853586/comments/default/8278820771009632691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9849891/7088592623218853586/comments/default/8278820771009632691'/><link rel='alternate' type='text/html' href='http://www.idiotsyncrasies.com/2008/07/modest-proposal.aspx?showComment=1216308360000#c8278820771009632691' title=''/><author><name>prash</name><uri>http://www.blogger.com/profile/15851326993717018198</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.idiotsyncrasies.com/2008/07/modest-proposal.aspx' ref='tag:blogger.com,1999:blog-9849891.post-7088592623218853586' source='http://www.blogger.com/feeds/9849891/posts/default/7088592623218853586' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1908577761'/></entry></feed>
