Name
NotImplementedException
Synopsis
This exception signals an attempt to access an unimplemented method or operation.
Suppose you have a base class with a number of unimplemented methods. You may have reason not to mark them as abstract (perhaps you want to let programmers develop subclasses that only implement some of the base class methods). You can throw this exception in those methods, letting users of the subclass know that they are not implemented.
public class NotImplementedException : SystemException { // Public Constructors public NotImplementedException( ); public NotImplementedException(stringmessage); public NotImplementedException(stringmessage, Exceptioninner); // Protected Constructors protected NotImplementedException(System.Runtime.Serialization.SerializationInfoinfo, System.Runtime.Serialization.StreamingContextcontext); }
Hierarchy
Object
→
Exception(System.Runtime.Seria|lization.ISerializable)
→
SystemException
→
NotImplementedException
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access