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

◆ GetValueOrDefault()

TValue? System.Collections.Immutable.SortedInt32KeyNode< TValue >.GetValueOrDefault ( int key)
inlinepackage

Definition at line 199 of file SortedInt32KeyNode.cs.

200 {
202 while (true)
203 {
204 if (sortedInt32KeyNode.IsEmpty)
205 {
206 return default(TValue);
207 }
208 if (key == sortedInt32KeyNode._key)
209 {
210 break;
211 }
213 }
214 return sortedInt32KeyNode._value;
215 }

References System.key.