2 overrides of AddReference
System.Text.Json (2)
System\Text\Json\Serialization\IgnoreReferenceResolver.cs (1)
33public override void AddReference(string referenceId, object value) => throw new InvalidOperationException();
System\Text\Json\Serialization\PreserveReferenceResolver.cs (1)
31public override void AddReference(string referenceId, object value)
6 references to AddReference
System.Text.Json (6)
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (1)
187state.ReferenceResolver.AddReference(state.ReferenceId, state.Current.ReturnValue);
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (1)
210state.ReferenceResolver.AddReference(state.ReferenceId, state.Current.ReturnValue);
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (1)
129state.ReferenceResolver.AddReference(state.ReferenceId, obj);
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
211state.ReferenceResolver.AddReference(state.ReferenceId, obj);
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (2)
382state.ReferenceResolver.AddReference(property.Value.GetString()!, boxedElement); 441state.ReferenceResolver.AddReference(referenceId, jsonNode);