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)
16
Debug.Assert(
_stackForCycleDetection
!= null);
17
_stackForCycleDetection
.Pop();
21
=>
_stackForCycleDetection
?.Contains(new ReferenceEqualsWrapper(value)) ?? false;
29
Debug.Assert(!
_stackForCycleDetection
.Contains(wrappedValue));
30
_stackForCycleDetection
.Push(wrappedValue);