Let\'s say we have a function that changes a password for a user in a system in an MVC app.:
public JsonResult ChangePassword
(string username, string curren
I think approaches like this can be very useful (for example, see Erroneously empty code paths). It's even better if you can have that default-throw be compiled away in released code, like an assert. That way you have the extra defensiveness during development and testing, but don't incur the extra code overhead when releasing.