4 writes to _stack
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableSortedSet_1.Enumerator.cs (4)
87
_stack
= null;
88
if (!SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryTake(this, out
_stack
))
90
_stack
= SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.PrepNew(this, new Stack<RefAsValueType<Node>>(root.Height));
138
_stack
= null;
8 references to _stack
System.Collections.Immutable (8)
System\Collections\Immutable\ImmutableSortedSet_1.Enumerator.cs (8)
134
if (
_stack
!= null &&
_stack
.TryUse(ref this, out Stack<RefAsValueType<Node>>? stack))
137
SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryAdd(this,
_stack
!);
151
Stack<RefAsValueType<ImmutableSortedSet<T>.Node>> stack =
_stack
!.Use(ref this);
175
Stack<RefAsValueType<ImmutableSortedSet<T>.Node>> stack =
_stack
!.Use(ref this);
191
if (_root == null || (
_stack
!= null && !
_stack
.IsOwned(ref this)))
216
Stack<RefAsValueType<ImmutableSortedSet<T>.Node>> stack =
_stack
!.Use(ref this);