<?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>The difference between NotSupportedException and NotImplementedException</title><link>http://blogs.msdn.com/b/brada/archive/2004/07/29/201354.aspx</link><description>Sounds like one of those Wait Wait Don&amp;#8217;t Tell me questions&amp;#8230; 10 points if you can tell me the difference between NotSupportedException and NotImplementedException... ;-) 
 
 NotSupportedException is for cases where it is ok (that is, by design</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>NotImplementedException</title><link>http://blogs.msdn.com/b/brada/archive/2004/07/29/201354.aspx#5627622</link><pubDate>Tue, 23 Oct 2007 19:44:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5627622</guid><dc:creator>Mehran Nikoo's Notes</dc:creator><description>&lt;p&gt;NotImplementedException is raised when the body of a type member has yet to be implemented. In some applications&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5627622" width="1" height="1"&gt;</description></item><item><title>NotImplementedExceptionShouldNotBeThrown</title><link>http://blogs.msdn.com/b/brada/archive/2004/07/29/201354.aspx#232801</link><pubDate>Wed, 22 Sep 2004 15:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:232801</guid><dc:creator>Managed from down under</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=232801" width="1" height="1"&gt;</description></item><item><title>NotImplementedExceptionShouldNotBeThrown</title><link>http://blogs.msdn.com/b/brada/archive/2004/07/29/201354.aspx#232769</link><pubDate>Wed, 22 Sep 2004 14:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:232769</guid><dc:creator>Managed from down under</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=232769" width="1" height="1"&gt;</description></item><item><title>NotImplementedExceptionShouldNotBeThrown</title><link>http://blogs.msdn.com/b/brada/archive/2004/07/29/201354.aspx#231411</link><pubDate>Sun, 19 Sep 2004 15:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:231411</guid><dc:creator>Managed from down under</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=231411" width="1" height="1"&gt;</description></item><item><title>NotImplementedExceptionShouldNotBeThrown</title><link>http://blogs.msdn.com/b/brada/archive/2004/07/29/201354.aspx#231409</link><pubDate>Sun, 19 Sep 2004 15:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:231409</guid><dc:creator>Managed from down under</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=231409" width="1" height="1"&gt;</description></item><item><title>NotSupportedException e NotImplementedException</title><link>http://blogs.msdn.com/b/brada/archive/2004/07/29/201354.aspx#221547</link><pubDate>Fri, 27 Aug 2004 19:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:221547</guid><dc:creator>Web Log di Gianluca Carucci</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=221547" width="1" height="1"&gt;</description></item><item><title>re: The difference between NotSupportedException and NotImplementedException</title><link>http://blogs.msdn.com/b/brada/archive/2004/07/29/201354.aspx#211632</link><pubDate>Tue, 10 Aug 2004 05:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:211632</guid><dc:creator>David M. Kean</dc:creator><description>After what Ron said, I had a crack at implementing a simple rule to check for members that throw a NotImplementException.&lt;br&gt;&lt;br&gt;The rule inherits off a base class provided at &lt;a target="_new" href="&lt;a target="_new" href="http://managedfromdownunder.blogspot.com/"&gt;http://managedfromdownunder.blogspot.com/&lt;/a&gt;2004/08/hello-world-and-fxcop-rules.html"&gt;&lt;a target="_new" href="http://managedfromdownunder.blogspot.com/"&gt;http://managedfromdownunder.blogspot.com/&lt;/a&gt;2004/08/hello-world-and-fxcop-rules.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;public class NotImplementedExceptionShouldNotBeThrown : AusSoftIntrospectionRule&lt;br&gt;{&lt;br&gt;	public NotImplementedExceptionShouldNotBeThrown() : base(&amp;quot;NotImplementedExceptionShouldNotBeThrown&amp;quot;)&lt;br&gt;	{&lt;br&gt;	}&lt;br&gt;&lt;br&gt;	public override Problem[] Check(Method method)&lt;br&gt;	{&lt;br&gt;		TypeNodeList nodes = RuleUtilities.UnhandledExceptions(method, 1, UnhandledExceptionSearchScope.Unrestricted);&lt;br&gt;&lt;br&gt;		for (int i = 0; i &amp;lt; nodes.Length; i++)&lt;br&gt;		{&lt;br&gt;			if (nodes[i].GetRuntimeType().IsAssignableFrom(typeof(NotImplementedException)))&lt;br&gt;			{&lt;br&gt;				return Problems.AsArray(GetResolution(method.Name.Name, method.DeclaringType.Name.Name));&lt;br&gt;			}&lt;br&gt;		}			&lt;br&gt;&lt;br&gt;		return null;&lt;br&gt;	}&lt;br&gt;&lt;br&gt;	public override ProtectionLevels NestedTypeProtectionLevel&lt;br&gt;	{&lt;br&gt;		get	{ return ProtectionLevels.All;	}&lt;br&gt;	}&lt;br&gt;&lt;br&gt;	public override ProtectionLevels MemberProtectionLevel&lt;br&gt;	{&lt;br&gt;		get	{ return ProtectionLevels.All;	}&lt;br&gt;	}&lt;br&gt;&lt;br&gt;	public override ProtectionLevels TypeProtectionLevel&lt;br&gt;	{&lt;br&gt;		get	{ return ProtectionLevels.All; }&lt;br&gt;	}&lt;br&gt;}&lt;br&gt;&lt;br&gt;It needs a bit of work, but it does the job for now.&lt;br&gt;&lt;br&gt;I have posted another FxCop rule at my blog and also to post a few more rules over the next few weeks.&lt;br&gt;&lt;br&gt;&lt;a target="_new" href="http://managedfromdownunder.blogspot.com/"&gt;http://managedfromdownunder.blogspot.com/&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=211632" width="1" height="1"&gt;</description></item><item><title>re: The difference between NotSupportedException and NotImplementedException</title><link>http://blogs.msdn.com/b/brada/archive/2004/07/29/201354.aspx#206730</link><pubDate>Tue, 03 Aug 2004 12:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:206730</guid><dc:creator>Ken</dc:creator><description>I really hate NotSupportedExceptions - they reek of poorly designed interfaces.  Implementing an interface is a contract to satisfy the methods defined by the interface and &amp;quot;not supported&amp;quot; is the class designer thumbing his nose at that contract.&lt;br&gt;&lt;br&gt;It's probably the biggest reason I dislike Java's collections, though I think they did a better job in terms of heirarchy and naming than the .Net collections (I really want to smack the guy who decided to use &amp;quot;List&amp;quot; to refer to array based sequences).  The .Net collections certainly aren't innocent of NotSupported abuses, either.&lt;br&gt;&lt;br&gt;NotImplemented exceptions are a valuable development-time tool, but as you indicated, they should never see the light of day in production code.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=206730" width="1" height="1"&gt;</description></item><item><title>re: The difference between NotSupportedException and NotImplementedException</title><link>http://blogs.msdn.com/b/brada/archive/2004/07/29/201354.aspx#206232</link><pubDate>Mon, 02 Aug 2004 22:39:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:206232</guid><dc:creator>Roy Green</dc:creator><description>Actually that's more of a &amp;quot;Says You&amp;quot; type of question.  &lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=206232" width="1" height="1"&gt;</description></item><item><title>Exception Design: NotSupportedException or NotImplementedException</title><link>http://blogs.msdn.com/b/brada/archive/2004/07/29/201354.aspx#205713</link><pubDate>Mon, 02 Aug 2004 17:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:205713</guid><dc:creator>Ken Brubaker</dc:creator><description>Brad Abrams elucidates the difference between NotSupportedException and NotImplementedException.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=205713" width="1" height="1"&gt;</description></item></channel></rss>