When is NotImplementedException Appropriate?
Understand what NotImplementedException is and its need.
The purpose of NotImplementedException
in C#
In C#, NotImplementedException
is an error type that’s specifically designed to be thrown from the members that implement the interface but aren’t intended to be used. It comes directly from the core system library of C#.
At first glance, it might seem that with this feature in place, the language was designed to violate the interface segregation principle. However, there are situations where leaving unused interface methods in your class will be appropriate without necessarily violating ...