Use eager evaluation when configuring the JsonTypeInfo type graph. (#81576)
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Fri, 3 Feb 2023 15:45:30 +0000 (15:45 +0000)
committerGitHub <noreply@github.com>
Fri, 3 Feb 2023 15:45:30 +0000 (15:45 +0000)
commit490b20fcfa6c984d04b8163cb81c9b65029f55c5
tree93c42dfa9e4fa76c34c576ecac5ab07400a5499e
parent6ae90b3f70f22eef17c7d3120a7ae5fd7051bd67
Use eager evaluation when configuring the JsonTypeInfo type graph. (#81576)

* Use eager evaluation when configuring the JsonTypeInfo type graph.

* Use enums to model JsonTypeInfo configuration state.
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.Caching.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonPropertyInfo.cs
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfo.cs