Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve perf of JsonValue.CreateFromElement by calling ValueKind once (…
…dotnet#104108) * Improve perf of JsonValue.CreateFromElement by calling JsonElement.ValueKind only once * Use switch statement instead of multiple ifs * Update src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonValue.cs * Update src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonValue.cs --------- Co-authored-by: Eirik Tsarpalis <[email protected]>
- Loading branch information