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

FromValue documentation specifies that the wrong exception is thrown #529

Open
Asafima opened this issue Jun 22, 2024 · 0 comments
Open

Comments

@Asafima
Copy link
Contributor

Asafima commented Jun 22, 2024

In FromValue method, documentation says KeyNotFoundException is thrown if the value is not found,
whereas source code actually shows a more specific exception is thrown.

Documentation should specify that a SmartEnumNotFoundException is thrown.

FromValue method:
image

image

Source code:

public static TEnum FromValue(TValue value)

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

No branches or pull requests

1 participant