Thursday, April 20, 2006

Implementing abstract classes in Visual Studio 2005

If you are going to implement an abstract class in Visual Studio 2005, there is a very cool new feature that does this automatically. As soon as you extend any abstract class, just right-click Abstract class, and then click Implement Abstract Class. This automatically places declarations for all the abstract methods. You will notice that the body for each method contains a common line of code.

throw new Exception("The method or operation is not implemented.");

This indicates what features are supported by the custom provider.

0 comments: