1 write to InferClosedTypePolymorphism
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
623
InferClosedTypePolymorphism
= inferClosedTypePolymorphism,
5 references to InferClosedTypePolymorphism
System.Text.Json.SourceGeneration (5)
JsonSourceGenerator.Emitter.cs (1)
2113
if (optionsSpec.
InferClosedTypePolymorphism
is bool inferClosedTypePolymorphism)
JsonSourceGenerator.Parser.cs (3)
919
options?.
InferClosedTypePolymorphism
is not true &&
1127
options?.
InferClosedTypePolymorphism
is true && !hasExplicitDerivedTypeAttribute;
1129
options?.
InferClosedTypePolymorphism
is not true &&
Model\TypeGenerationSpec.cs (1)
58
/// (because <see cref="SourceGenerationOptionsSpec.
InferClosedTypePolymorphism
"/> was not enabled).