<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Quiz #3</title>
	<atom:link href="http://sharpreflections.wordpress.com/2008/02/27/quiz-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://sharpreflections.wordpress.com/2008/02/27/quiz-3/</link>
	<description>Thoughts about .Net, programming and other more important stuffs.</description>
	<lastBuildDate>Mon, 28 Sep 2009 20:33:08 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matteo</title>
		<link>http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1609</link>
		<dc:creator>Matteo</dc:creator>
		<pubDate>Tue, 11 Mar 2008 17:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1609</guid>
		<description>Sorry, I didn&#039;t see your last before replying. Yes, the exception thrown in the static constructor is the correct answer.

Bravo!</description>
		<content:encoded><![CDATA[<p>Sorry, I didn&#8217;t see your last before replying. Yes, the exception thrown in the static constructor is the correct answer.</p>
<p>Bravo!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo</title>
		<link>http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1608</link>
		<dc:creator>Matteo</dc:creator>
		<pubDate>Tue, 11 Mar 2008 12:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1608</guid>
		<description>you&#039;re almost right, but not totally. Your solution causes only one exception to be catched, not two. See the quiz: &quot;add the code necessary [...] to make both method invocation throw an exception.&quot;.</description>
		<content:encoded><![CDATA[<p>you&#8217;re almost right, but not totally. Your solution causes only one exception to be catched, not two. See the quiz: &#8220;add the code necessary [...] to make both method invocation throw an exception.&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marcofan</title>
		<link>http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1607</link>
		<dc:creator>marcofan</dc:creator>
		<pubDate>Tue, 11 Mar 2008 11:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1607</guid>
		<description>public class Foo {
static Foo(){int i = 0 / MethodOne();}
~Foo(){}

public static int MethodOne() { return 0; }
public static string MethodTwo() { return string.Empty; }
}

this is my last answer matteo! both method invocation throw an exception.</description>
		<content:encoded><![CDATA[<p>public class Foo {<br />
static Foo(){int i = 0 / MethodOne();}<br />
~Foo(){}</p>
<p>public static int MethodOne() { return 0; }<br />
public static string MethodTwo() { return string.Empty; }<br />
}</p>
<p>this is my last answer matteo! both method invocation throw an exception.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marcofan</title>
		<link>http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1606</link>
		<dc:creator>marcofan</dc:creator>
		<pubDate>Mon, 10 Mar 2008 17:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1606</guid>
		<description>public class Foo
{
public static int Value = Foo.MethodTwo().Length / Foo.MethodOne();
		
public static int MethodOne() { return 0; }
public static string MethodTwo() { return string.Empty; }
}</description>
		<content:encoded><![CDATA[<p>public class Foo<br />
{<br />
public static int Value = Foo.MethodTwo().Length / Foo.MethodOne();</p>
<p>public static int MethodOne() { return 0; }<br />
public static string MethodTwo() { return string.Empty; }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo</title>
		<link>http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1605</link>
		<dc:creator>Matteo</dc:creator>
		<pubDate>Mon, 10 Mar 2008 17:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1605</guid>
		<description>no Marco, as I said in the post, you cannot modify in any way MethodOne and MethodTwo...</description>
		<content:encoded><![CDATA[<p>no Marco, as I said in the post, you cannot modify in any way MethodOne and MethodTwo&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marcofan</title>
		<link>http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1604</link>
		<dc:creator>marcofan</dc:creator>
		<pubDate>Mon, 10 Mar 2008 16:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1604</guid>
		<description>public class Foo
{
  // add code
  public static int MethodOne() { return MethodOne(); }
  public static string MethodTwo() { return MethodTwo(); }
}

is it correct?</description>
		<content:encoded><![CDATA[<p>public class Foo<br />
{<br />
  // add code<br />
  public static int MethodOne() { return MethodOne(); }<br />
  public static string MethodTwo() { return MethodTwo(); }<br />
}</p>
<p>is it correct?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo</title>
		<link>http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1603</link>
		<dc:creator>Matteo</dc:creator>
		<pubDate>Mon, 10 Mar 2008 15:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1603</guid>
		<description>No jude, you have to modify the Foo class, not the Main method...</description>
		<content:encoded><![CDATA[<p>No jude, you have to modify the Foo class, not the Main method&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dancerjude</title>
		<link>http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1602</link>
		<dc:creator>dancerjude</dc:creator>
		<pubDate>Thu, 06 Mar 2008 12:07:28 +0000</pubDate>
		<guid isPermaLink="false">http://sharpreflections.wordpress.com/2008/02/27/quiz-3/#comment-1602</guid>
		<description>public static void Main()
        {
            try {
                int i = Foo.MethodOne() / Foo.MethodOne();
            }
            catch (Exception ex) { Console.WriteLine(ex.Message); }

            try { 
                int i = Foo.MethodTwo().Length / Foo.MethodOne(); 
            }
            catch (Exception ex) { Console.WriteLine(ex.Message); }
        }


Is it correct ?</description>
		<content:encoded><![CDATA[<p>public static void Main()<br />
        {<br />
            try {<br />
                int i = Foo.MethodOne() / Foo.MethodOne();<br />
            }<br />
            catch (Exception ex) { Console.WriteLine(ex.Message); }</p>
<p>            try {<br />
                int i = Foo.MethodTwo().Length / Foo.MethodOne();<br />
            }<br />
            catch (Exception ex) { Console.WriteLine(ex.Message); }<br />
        }</p>
<p>Is it correct ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
