4 writes to _stack
System.Collections.Immutable (4)
System\Collections\Immutable\SortedInt32KeyNode.Enumerator.cs (4)
59
_stack
= null;
62
if (!SecureObjectPool<Stack<RefAsValueType<SortedInt32KeyNode<TValue>>>, Enumerator>.TryTake(this, out
_stack
))
64
_stack
= SecureObjectPool<Stack<RefAsValueType<SortedInt32KeyNode<TValue>>>, Enumerator>.PrepNew(this, new Stack<RefAsValueType<SortedInt32KeyNode<TValue>>>(root.Height));
115
_stack
= null;
10 references to _stack
System.Collections.Immutable (10)
System\Collections\Immutable\SortedInt32KeyNode.Enumerator.cs (10)
109
if (
_stack
!= null &&
_stack
.TryUse(ref this, out Stack<RefAsValueType<SortedInt32KeyNode<TValue>>>? stack))
112
SecureObjectPool<Stack<RefAsValueType<SortedInt32KeyNode<TValue>>>, Enumerator>.TryAdd(this,
_stack
!);
126
if (
_stack
!= null)
128
Stack<RefAsValueType<SortedInt32KeyNode<TValue>>> stack =
_stack
.Use(ref this);
150
if (
_stack
!= null)
152
Stack<RefAsValueType<SortedInt32KeyNode<TValue>>> stack =
_stack
.Use(ref this);
169
if (_root == null || (
_stack
!= null && !
_stack
.IsOwned(ref this)))
182
Stack<RefAsValueType<SortedInt32KeyNode<TValue>>> stack =
_stack
!.Use(ref this);