We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
runtime/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/EnumConverter.cs
Line 317 in a5b491c
Use the obtained string value directly here. But why not use _namingPolicy'?
like:
internal override T ReadWithQuotes(ref Utf8JsonReader reader) { string? enumString = reader.GetString(); var v = _namingPolicy == null ? enumString : FormatEnumValueToString(enumString, encoder); // Try parsing case sensitive first if (!Enum.TryParse(v, out T value) && !Enum.TryParse(v, ignoreCase: true, out value)) { ThrowHelper.ThrowJsonException(); } return value; }
The text was updated successfully, but these errors were encountered:
Duplicate of #31619.
Sorry, something went wrong.
No branches or pull requests
runtime/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/EnumConverter.cs
Line 317 in a5b491c
Use the obtained string value directly here. But why not use _namingPolicy'?
like:
The text was updated successfully, but these errors were encountered: