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

◆ TryPeek()

bool System.Collections.Concurrent.ConcurrentStack< T >.TryPeek ( [MaybeNullWhen(false)] out T result)
inline

Definition at line 182 of file ConcurrentStack.cs.

183 {
184 Node head = _head;
185 if (head == null)
186 {
187 result = default(T);
188 return false;
189 }
190 result = head._value;
191 return true;
192 }

References System.Collections.Concurrent.ConcurrentStack< T >._head, and System.Collections.Concurrent.ConcurrentStack< T >.Node._value.