Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
GetValueOrDefault()
TValue?
System.Collections.Immutable.SortedInt32KeyNode
< TValue >.GetValueOrDefault
(
int
key
)
inline
package
Definition at line
199
of file
SortedInt32KeyNode.cs
.
200
{
201
SortedInt32KeyNode<TValue>
sortedInt32KeyNode
=
this
;
202
while
(
true
)
203
{
204
if
(
sortedInt32KeyNode
.IsEmpty)
205
{
206
return
default
(TValue);
207
}
208
if
(
key
==
sortedInt32KeyNode
._key)
209
{
210
break
;
211
}
212
sortedInt32KeyNode
= ((
key
<=
sortedInt32KeyNode
._key) ?
sortedInt32KeyNode
._left :
sortedInt32KeyNode
.
_right
);
213
}
214
return
sortedInt32KeyNode
._value;
215
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Collections.Immutable.SortedInt32KeyNode._right
SortedInt32KeyNode< TValue > _right
Definition
SortedInt32KeyNode.cs:130
System.ExceptionArgument.key
@ key
References
System.key
.
System
Collections
Immutable
SortedInt32KeyNode
Generated by
1.10.0