-
Notifications
You must be signed in to change notification settings - Fork 157
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
ZString.Join with HttpStatusCode throws Exception #32
Comments
thanks, it is a bug, will fix soon. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
check |
wait |
neuecc
added a commit
that referenced
this issue
Jan 14, 2021
thanks, fixed at 2.3.0. |
ThangwLee
pushed a commit
to WolffunGame/ZString
that referenced
this issue
May 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ZString 2.2.0
When I use ZString.Join with HttpStatusCode, it throws System.TypeInitializationException.
Normal enum or Flags enum passes unit test like below.
But when I use HttpStatusCode, it throws Exception.
I think the main cause is
Enum.GetValues(typeof(HttpStatusCode))
returns the same value likeMultipleChoices
, and use them as the key ofDictionary
inEnumUtil
's constructor.Maybe need to key existence check?
Thanks.
The text was updated successfully, but these errors were encountered: