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

◆ TryGetValue()

bool System.Collections.Immutable.SortedInt32KeyNode< TValue >.TryGetValue ( int key,
[MaybeNullWhen(false)] out TValue value )
inlinepackage

Definition at line 217 of file SortedInt32KeyNode.cs.

218 {
220 while (true)
221 {
222 if (sortedInt32KeyNode.IsEmpty)
223 {
224 value = default(TValue);
225 return false;
226 }
227 if (key == sortedInt32KeyNode._key)
228 {
229 break;
230 }
232 }
233 value = sortedInt32KeyNode._value;
234 return true;
235 }

References System.key, and System.value.