Ad
  • Default User Avatar

    "Invalid user type. Must be one of: " + string.Join(", ", validUserTypes) is a code repetition.
    the second won t be used exceptafter a bad evolution with adding a new type that is not considered in switch. So the second error would rather be a not implemented exception.