<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>C# Quiz: Will that compile? [Answer]</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx</link><description>Some good comments on my recent quiz . Many of you are hitting on the right thing… The answer is no, this will not compile as is. This is because in V2.0 we added a new constructor to Thread that allows you to pass a ParameterizedThreadStart delegate.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: C# Quiz: Will that compile? [Answer]</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#332904</link><pubDate>Mon, 27 Dec 2004 20:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:332904</guid><dc:creator>Mike Dunn</dc:creator><description>Being a C++ guy (not a C#) guy, I would of course go for #5. :)  But my second choice is #4, since those nested news and inline code can get unreadable very quickly. &lt;br&gt;IMO VS should by default produce readable code, avoiding anything like #3 altogether, which will only encourage devs to write similarly-unreadable code. </description></item><item><title>re: C# Quiz: Will that compile? [Answer]</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#332940</link><pubDate>Mon, 27 Dec 2004 22:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:332940</guid><dc:creator>Johan Normén</dc:creator><description>I also like #4 but it's also a temporary field and can be avoided. So then I thought #3 wasn't that bad, but as Mike says it can be unreadable. But it also depends on how big this line of code can be. &lt;br&gt;#5 is also nice, it's also very readable, anonymous methods are mostly unreadable code; you must think a little extra when you read codes with anonymous methods. Maybe this is because we aren't used to the syntax yet? &lt;br&gt;&lt;br&gt;About the VS issue... humm... I think it shall be up to the developer to decide how they write there own code. No tools shall do it. Because I can’t see this case unique, there are more places where this kind of issue can appear. &lt;br&gt;&lt;br&gt;Best, &lt;br&gt;Johan&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>re: C# Quiz: Will that compile? [Answer]</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#332969</link><pubDate>Mon, 27 Dec 2004 23:19:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:332969</guid><dc:creator>Robert Taylor</dc:creator><description>I prefer #1; it's the smallest amount of code that works.</description></item><item><title>re: C# Quiz: Will that compile? [Answer]</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#332996</link><pubDate>Tue, 28 Dec 2004 00:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:332996</guid><dc:creator>Anon</dc:creator><description>I think there doesn't need to be tool support for something like this - at some point it's OK to ask programmers to think and/or write code.&lt;br&gt;&lt;br&gt;If the tool feels compelled to do something, it should do #4 or #5 (maybe depending on how long the delegate definition was going to be). They are the most readable options, and therefore the best defaults; options #1-3 are abominations.</description></item><item><title>re: C# Quiz: Will that compile? [Answer]</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#333020</link><pubDate>Tue, 28 Dec 2004 01:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:333020</guid><dc:creator>Judah</dc:creator><description>You know, since we've been using .NET 2 beta extensively at work, I can say that anonymous methods are one of the most useful new features, rivaling even generics. &lt;br&gt;&lt;br&gt;That said, I feel uneasy writing many anonymous methods as the compiler generates nested classes, instanciates them, then calls a class method in place of the anonymous methods; seems like a lot of overhead, yet is such a useful feature of the language that I'd be hard pressed to go without it... Brad, could you give us some useful information on how anonymous methods are generated by the compiler and what the trade off is -- i.e. in performance intensive scenarios, should we be avoiding heavy use of anonymous methods or is the overhead small enough that the GC wouldn't be bothered much?</description></item><item><title>re: C# Quiz: Will that compile? [Answer]</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#333072</link><pubDate>Tue, 28 Dec 2004 02:20:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:333072</guid><dc:creator>Arild Fines</dc:creator><description>Number 1, definitely - short and succinct.&lt;br&gt;&lt;br&gt;And I really don't understand this bias against closures/anonymouse methods. They are, for short event handlers/predicates et, far more readable than if you create a separate method. It's a rather reactionary attitude, I think.</description></item><item><title>re: C# Quiz: Will that compile? [Answer]</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#347469</link><pubDate>Thu, 06 Jan 2005 06:26:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:347469</guid><dc:creator>Ernst Kuschke (C# MVP)</dc:creator><description>I like #5. It's more re-usable, cleaner to read, and just 'feels' best.</description></item><item><title>online poker</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#355816</link><pubDate>Wed, 19 Jan 2005 06:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:355816</guid><dc:creator>online poker</dc:creator><description>You may find it interesting to check some helpful info about online poker  &lt;a target="_new" href="http://online-poker.online-deals-4u.info/"&gt;http://online-poker.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; phentermine  &lt;a target="_new" href="http://phentermine.online-deals-4u.info/"&gt;http://phentermine.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; cialis  &lt;a target="_new" href="http://cialis.online-deals-4u.info/"&gt;http://cialis.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; tramadol  &lt;a target="_new" href="http://tramadol.online-deals-4u.info/"&gt;http://tramadol.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; poker  &lt;a target="_new" href="http://poker.online-deals-4u.info/"&gt;http://poker.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; online casino  &lt;a target="_new" href="http://online-casino.online-deals-4u.info/"&gt;http://online-casino.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; casinos  &lt;a target="_new" href="http://casinos.online-deals-4u.info/"&gt;http://casinos.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; online casinos  &lt;a target="_new" href="http://online-casinos.online-deals-4u.info/"&gt;http://online-casinos.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; texas holdem  &lt;a target="_new" href="http://texas-holdem.online-deals-4u.info/"&gt;http://texas-holdem.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; texas holdem poker  &lt;a target="_new" href="http://texas-holdem-poker.online-deals-4u.info/"&gt;http://texas-holdem-poker.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; pacific poker  &lt;a target="_new" href="http://pacific-poker.online-deals-4u.info/"&gt;http://pacific-poker.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; student loans  &lt;a target="_new" href="http://student-loans.online-deals-4u.info/"&gt;http://student-loans.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; private mortgages  &lt;a target="_new" href="http://private-mortgages.online-deals-4u.info/"&gt;http://private-mortgages.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; low interest credit cards  &lt;a target="_new" href="http://low-interest-credit-cards.online-deals-4u.info/"&gt;http://low-interest-credit-cards.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; credit cards  &lt;a target="_new" href="http://credit-cards.online-deals-4u.info/"&gt;http://credit-cards.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; diet pills  &lt;a target="_new" href="http://diet-pills.online-deals-4u.info/"&gt;http://diet-pills.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; weight loss diet pills  &lt;a target="_new" href="http://weight-loss-diet-pills.online-deals-4u.info/"&gt;http://weight-loss-diet-pills.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; viagra  &lt;a target="_new" href="http://viagra.online-deals-4u.info/"&gt;http://viagra.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; texas hold em  &lt;a target="_new" href="http://texas-hold-em.online-deals-4u.info/"&gt;http://texas-hold-em.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; texas hold em poker  &lt;a target="_new" href="http://texas-hold-em-poker.online-deals-4u.info/"&gt;http://texas-hold-em-poker.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; poker games  &lt;a target="_new" href="http://poker-games.online-deals-4u.info/"&gt;http://poker-games.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; party poker  &lt;a target="_new" href="http://party-poker.online-deals-4u.info/"&gt;http://party-poker.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; empire poker  &lt;a target="_new" href="http://empire-poker.online-deals-4u.info/"&gt;http://empire-poker.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; hold em poker  &lt;a target="_new" href="http://hold-em-poker.online-deals-4u.info/"&gt;http://hold-em-poker.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; credit card  &lt;a target="_new" href="http://credit-card.online-deals-4u.info/"&gt;http://credit-card.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; payday loans  &lt;a target="_new" href="http://payday-loans.online-deals-4u.info/"&gt;http://payday-loans.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; loans  &lt;a target="_new" href="http://loans.online-deals-4u.info/"&gt;http://loans.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; personal loans  &lt;a target="_new" href="http://personal-loans.online-deals-4u.info/"&gt;http://personal-loans.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; levitra  &lt;a target="_new" href="http://levitra.online-deals-4u.info/"&gt;http://levitra.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; buy phentermine  &lt;a target="_new" href="http://buy-phentermine.online-deals-4u.info/"&gt;http://buy-phentermine.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; generic viagra  &lt;a target="_new" href="http://generic-viagra.online-deals-4u.info/"&gt;http://generic-viagra.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; carisoprodol  &lt;a target="_new" href="http://carisoprodol.online-deals-4u.info/"&gt;http://carisoprodol.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; soma  &lt;a target="_new" href="http://soma.online-deals-4u.info/"&gt;http://soma.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; butalbital  &lt;a target="_new" href="http://butalbital.online-deals-4u.info/"&gt;http://butalbital.online-deals-4u.info/&lt;/a&gt;&lt;br&gt; buy viagra  &lt;a target="_new" href="http://buy-viagra.online-deals-4u.info/"&gt;http://buy-viagra.online-deals-4u.info/&lt;/a&gt;&lt;br&gt;...</description></item><item><title>ParameterisedThreadStart</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#667448</link><pubDate>Sun, 16 Jul 2006 18:14:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:667448</guid><dc:creator>Community Blogs</dc:creator><description>Just to prove that I am a true geek I thought I would tackle Brad Abrams latest C# quiz. The simple answer</description></item><item><title> Brad Abrams C Quiz Will that compile Answer | Paid Surveys</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#9654792</link><pubDate>Fri, 29 May 2009 19:53:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9654792</guid><dc:creator> Brad Abrams C Quiz Will that compile Answer | Paid Surveys</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://paidsurveyshub.info/story.php?title=brad-abrams-c-quiz-will-that-compile-answer"&gt;http://paidsurveyshub.info/story.php?title=brad-abrams-c-quiz-will-that-compile-answer&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Brad Abrams C Quiz Will that compile Answer | Green Tea Fat Burner</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#9706515</link><pubDate>Mon, 08 Jun 2009 05:17:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9706515</guid><dc:creator> Brad Abrams C Quiz Will that compile Answer | Green Tea Fat Burner</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://greenteafatburner.info/story.php?id=814"&gt;http://greenteafatburner.info/story.php?id=814&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Brad Abrams C Quiz Will that compile Answer | Quick Diets</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#9715800</link><pubDate>Tue, 09 Jun 2009 14:43:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9715800</guid><dc:creator> Brad Abrams C Quiz Will that compile Answer | Quick Diets</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://quickdietsite.info/story.php?id=3389"&gt;http://quickdietsite.info/story.php?id=3389&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Brad Abrams C Quiz Will that compile Answer | Weak Bladder</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#9717401</link><pubDate>Tue, 09 Jun 2009 21:59:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9717401</guid><dc:creator> Brad Abrams C Quiz Will that compile Answer | Weak Bladder</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://weakbladder.info/story.php?id=7053"&gt;http://weakbladder.info/story.php?id=7053&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Brad Abrams C Quiz Will that compile Answer | Cellulite Creams</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#9720309</link><pubDate>Wed, 10 Jun 2009 04:21:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9720309</guid><dc:creator> Brad Abrams C Quiz Will that compile Answer | Cellulite Creams</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://cellulitecreamsite.info/story.php?id=5122"&gt;http://cellulitecreamsite.info/story.php?id=5122&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Brad Abrams C Quiz Will that compile Answer | debt solutions</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#9757121</link><pubDate>Tue, 16 Jun 2009 03:54:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9757121</guid><dc:creator> Brad Abrams C Quiz Will that compile Answer | debt solutions</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://debtsolutionsnow.info/story.php?id=3315"&gt;http://debtsolutionsnow.info/story.php?id=3315&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Brad Abrams C Quiz Will that compile Answer | internet marketing tools</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#9758657</link><pubDate>Tue, 16 Jun 2009 08:10:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9758657</guid><dc:creator> Brad Abrams C Quiz Will that compile Answer | internet marketing tools</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://einternetmarketingtools.info/story.php?id=6034"&gt;http://einternetmarketingtools.info/story.php?id=6034&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Brad Abrams C Quiz Will that compile Answer | alternative dating</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#9767905</link><pubDate>Wed, 17 Jun 2009 10:28:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9767905</guid><dc:creator> Brad Abrams C Quiz Will that compile Answer | alternative dating</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://topalternativedating.info/story.php?id=4236"&gt;http://topalternativedating.info/story.php?id=4236&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Brad Abrams C Quiz Will that compile Answer | debt consolidator</title><link>http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx#9788558</link><pubDate>Fri, 19 Jun 2009 17:51:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9788558</guid><dc:creator> Brad Abrams C Quiz Will that compile Answer | debt consolidator</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://mydebtconsolidator.info/story.php?id=13688"&gt;http://mydebtconsolidator.info/story.php?id=13688&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>