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

◆ TryPeek()

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

Definition at line 244 of file Stack.cs.

245 {
246 int num = _size - 1;
247 T[] array = _array;
248 if ((uint)num >= (uint)array.Length)
249 {
250 result = default(T);
251 return false;
252 }
253 result = array[num];
254 return true;
255 }

References System.Collections.Generic.Stack< T >._array, System.Collections.Generic.Stack< T >._size, and System.array.