1 write to UsesTypeDiscriminators
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
60
UsesTypeDiscriminators
= true;
6 references to UsesTypeDiscriminators
System.Text.Json (6)
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (1)
20
Debug.Assert(jsonTypeInfo.PolymorphicTypeResolver?.
UsesTypeDiscriminators
== true);
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (2)
71
if (
UsesTypeDiscriminators
)
166
Debug.Assert(
UsesTypeDiscriminators
);
System\Text\Json\Serialization\ReadStack.cs (2)
108
Current.CanContainMetadata = PreserveReferences || jsonTypeInfo.PolymorphicTypeResolver?.
UsesTypeDiscriminators
== true;
137
Current.CanContainMetadata = PreserveReferences || jsonTypeInfo.PolymorphicTypeResolver?.
UsesTypeDiscriminators
== true;
System\Text\Json\ThrowHelper.Serialization.cs (1)
628
if (typeInfo.PolymorphicTypeResolver?.
UsesTypeDiscriminators
is true)