Why not use NotImplementedException answered


Craig Nicholson was kind enough to find an answer to my question, why does Visual Studio use a general Exception with the message “The method or operation is not implemented.” instead of the NotImplementedException when generating your implemented methods of an interface or base class.

You can read Craig’s post here, but the short answer is that the code generation part is also used when developing for mobile devices and the Compact Framework does not have the NotImplementedException; to remain consistent they use a general exception. “In order to keep the size of the compact framework small, it does not include all of the same types that exist in the desktop framework. One of the types that is not included is NotImplementedException.”Anson Houston

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts

Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

Be the first to leave a comment!