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