3 writes to PolymorphicTypeDiscriminator
System.Text.Json (3)
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (1)
46
state.
PolymorphicTypeDiscriminator
= null;
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (2)
247
state.
PolymorphicTypeDiscriminator
= reader.GetString();
250
state.
PolymorphicTypeDiscriminator
= reader.GetInt32();
4 references to PolymorphicTypeDiscriminator
System.Text.Json (4)
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (2)
28
Debug.Assert(state.
PolymorphicTypeDiscriminator
!= null);
31
if (resolver.TryGetDerivedJsonTypeInfo(state.
PolymorphicTypeDiscriminator
, out JsonTypeInfo? resolvedType))
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (2)
135
if (state.
PolymorphicTypeDiscriminator
!= null)
242
Debug.Assert(state.
PolymorphicTypeDiscriminator
== null);