1 write to _stackForCycleDetection
System.Text.Json (1)
System\Text\Json\Serialization\IgnoreReferenceResolver.cs (1)
27_stackForCycleDetection ??= new Stack<ReferenceEqualsWrapper>();
5 references to _stackForCycleDetection
System.Text.Json (5)
System\Text\Json\Serialization\IgnoreReferenceResolver.cs (5)
16Debug.Assert(_stackForCycleDetection != null); 17_stackForCycleDetection.Pop(); 21=> _stackForCycleDetection?.Contains(new ReferenceEqualsWrapper(value)) ?? false; 29Debug.Assert(!_stackForCycleDetection.Contains(wrappedValue)); 30_stackForCycleDetection.Push(wrappedValue);