private string GetRegistrationFailureReasonText(RegistrationFailureReason reason) { switch (reason) { case RegistrationFailureReason.UsernameNotAvailable: return "Username is not available."; case RegistrationFailureReason.PasswordsDoNotMatch: return "Passwords must match."; case RegistrationFailureReason.EmailsDoNotMatch: return "E-mails must match."; default: throw new ArgumentOutOfRangeException("reason"); } }
private string GetRegistrationFailureReasonText(RegistrationFailureReason reason) { switch (reason) { case RegistrationFailureReason.UsernameNotAvailable: return("Username is not available."); case RegistrationFailureReason.PasswordsDoNotMatch: return("Passwords must match."); case RegistrationFailureReason.EmailsDoNotMatch: return("E-mails must match."); default: throw new ArgumentOutOfRangeException("reason"); } }