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