Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should Throw ArgumentOutOfRangeException for Negative Max Length #72

Closed
WalkerCodeRanger opened this issue Jul 31, 2022 · 1 comment
Closed

Comments

@WalkerCodeRanger
Copy link
Owner

Currently, the Parse and TryParse methods do not validate the maxLength argument. So if it is negative, they report that as an error with the version string being too long rather than an argument exception.

This is a breaking change because for Parse it changes the exception type and for TryParse it throws an exception in a case that previously didn't throw an exception.

@WalkerCodeRanger
Copy link
Owner Author

Fixed in master and will be included with v3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant