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

◆ TryPop()

TValue System.Linq.Expressions.Compiler.KeyedStack< TKey, TValue >.TryPop ( TKey key)
inlinepackage

Definition at line 18 of file KeyedStack.cs.

19 {
20 if (!_data.TryGetValue(key, out var value) || !value.TryPop(out var result))
21 {
22 return null;
23 }
24 return result;
25 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
readonly Dictionary< TKey, Stack< TValue > > _data
Definition KeyedStack.cs:7

References System.Linq.Expressions.Compiler.KeyedStack< TKey, TValue >._data, System.key, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.