1 write to _objectToReferenceIdMap
System.Text.Json (1)
System\Text\Json\Serialization\PreserveReferenceResolver.cs (1)
23_objectToReferenceIdMap = new Dictionary<object, string>(ReferenceEqualityComparer.Instance);
3 references to _objectToReferenceIdMap
System.Text.Json (3)
System\Text\Json\Serialization\PreserveReferenceResolver.cs (3)
43Debug.Assert(_objectToReferenceIdMap != null); 45if (_objectToReferenceIdMap.TryGetValue(value, out string? referenceId)) 53_objectToReferenceIdMap.Add(value, referenceId);