I always throw an exception in this case. Consider using InvalidEnumArgumentException, which gives richer information in this situation.
I always throw an exception in this case. Consider using InvalidEnumArgumentException, which gives richer information in this situation.