2 writes to NewReferenceId
System.Text.Json (2)
System\Text\Json\Serialization\JsonSerializer.Write.HandleMetadata.cs (2)
32
state.
NewReferenceId
= null;
98
state.
NewReferenceId
= referenceId;
4 references to NewReferenceId
System.Text.Json (4)
System\Text\Json\Serialization\JsonSerializer.Write.HandleMetadata.cs (3)
28
if (state.
NewReferenceId
!= null)
30
writer.WriteString(s_metadataId, state.
NewReferenceId
);
79
Debug.Assert(state.
NewReferenceId
== null);
System\Text\Json\Serialization\WriteStack.cs (1)
130
public readonly bool CurrentContainsMetadata =>
NewReferenceId
!= null || PolymorphicTypeDiscriminator != null;