O'Reilly logo

C# 5.0 Unleashed by Bart De Smet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

NotImplementedException

As the name pretty much implies, this exception results whenever a method or member is not implemented. This can indicate you’re dealing with a stub for functionality that’s not yet implemented. Visual Studio’s code editor Implement Interface feature uses this exception type for the method stubs it generates, as shown in Figure 23.21.

Image

FIGURE 23.21 Code generated by Visual Studio’s Implement Interface feature.

From a code-generation point of view, this is very beneficial because throwing an exception makes the compiler’s flow analysis happy as well: If a method has to return an object, throwing an exception instead is the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required