Wondering what is the most appropiate Exception
to throw
when there is some case where I get an implementation of an interface
that I don't expect
Is there such a thing as UnsupportedTypeException
in .Net that I'm not aware of?
Cheers
NotSupportedException exists that may be what you want to consider.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With