Use hashcodes when looking up the JsonSerializerOptions global cache. (#76782)
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Mon, 17 Oct 2022 13:18:00 +0000 (14:18 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Oct 2022 13:18:00 +0000 (14:18 +0100)
commitfe921e0b727abfb0a1b7cdecd41c91bfb6dc1f7f
tree402bfaaac0fb9e79afcc3809cb0001f4138dbae5
parent4941a0824d21c4fe9760334b6313004912f1c584
Use hashcodes when looking up the JsonSerializerOptions global cache. (#76782)

* Use hashcodes when looking up the JsonSerializerOptions global cache.

* Address feedback.
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.Caching.cs
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CacheTests.cs