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

◆ IndexOf()

int System.Data.RBTree< K >.IndexOf ( int nodeId,
K item )
inline

Definition at line 1237 of file RBTree.cs.

1238 {
1239 int result = -1;
1240 if (nodeId != 0)
1241 {
1242 if ((object)Key(nodeId) == (object)item)
1243 {
1244 return GetIndexByNode(nodeId);
1245 }
1246 if ((result = IndexOf(Left(nodeId), item)) != -1)
1247 {
1248 return result;
1249 }
1250 result = IndexOf(Right(nodeId), item);
1251 _ = -1;
1252 return result;
1253 }
1254 return result;
1255 }
K Key(int nodeId)
Definition RBTree.cs:1407
int IndexOf(int nodeId, K item)
Definition RBTree.cs:1237
int GetIndexByNode(int node)
Definition RBTree.cs:1087

References System.Data.RBTree< K >.GetIndexByNode(), System.Data.RBTree< K >.IndexOf(), System.item, System.Data.RBTree< K >.Key(), System.Collections.Generic.Left, and System.Data.Right.

Referenced by System.Data.DataRowCollection.IndexOf(), and System.Data.RBTree< K >.IndexOf().