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