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