Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Current [1/2]

T System.Collections.Immutable.ImmutableQueue< T >.EnumeratorObject.Current
get

Implements System.Collections.IEnumerator.

Definition at line 136 of file ImmutableQueue.cs.

137 {
138 get
139 {
141 if (_remainingForwardsStack == null)
142 {
143 throw new InvalidOperationException();
144 }
145 if (!_remainingForwardsStack.IsEmpty)
146 {
147 return _remainingForwardsStack.Peek();
148 }
149 if (!_remainingBackwardsStack.IsEmpty)
150 {
151 return _remainingBackwardsStack.Peek();
152 }
153 throw new InvalidOperationException();
154 }
155 }