Result The NotImplementedException prevents this from happening and so keeps the program compiling.
static void Main()
static int Method()
// Leave this as a stub.
throw new NotImplementedException();
}Unhandled exception. System.NotImplementedException: The method or operation is not implemented.
at Program.Method() in /home/sam/programs/consoletemp/Program.cs:line 13
at Program.Main() in /home/sam/programs/consoletemp/Program.cs:line 7
Aborted (core dumped)
Self-documenting type. When using exceptions, you want to describe the problem as much as possible through the type itself. In error messages, the type of the exception is prominently featured.
Detail When the NotImplementedException occurs, you will realize that the problem is unfinished code—not another error.
Summary. As a descriptive exception type, the NotImplementedException is useful as a way to compile an unfinished program. Visual Studio inserts it in method stubs.