3 writes to PolymorphicTypeDiscriminator
System.Text.Json (3)
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (1)
107
state.
PolymorphicTypeDiscriminator
= typeDiscriminator;
System\Text\Json\Serialization\JsonSerializer.Write.HandleMetadata.cs (2)
55
state.
PolymorphicTypeDiscriminator
= null;
92
state.
PolymorphicTypeDiscriminator
= null;
3 references to PolymorphicTypeDiscriminator
System.Text.Json (3)
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (1)
74
Debug.Assert(state.
PolymorphicTypeDiscriminator
is null);
System\Text\Json\Serialization\JsonSerializer.Write.HandleMetadata.cs (1)
35
if (state.
PolymorphicTypeDiscriminator
is object discriminator)
System\Text\Json\Serialization\WriteStack.cs (1)
130
public readonly bool CurrentContainsMetadata => NewReferenceId != null ||
PolymorphicTypeDiscriminator
!= null;