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

◆ FindRecordByKey() [1/2]

int System.Data.Index.FindRecordByKey ( object key)
inline

Definition at line 429 of file Index.cs.

430 {
431 int num = FindNodeByKey(key);
432 if (num != 0)
433 {
434 return _records.GetIndexByNode(num);
435 }
436 return -1;
437 }
IndexTree _records
Definition Index.cs:42
int FindNodeByKey(object originalKey)
Definition Index.cs:449
int GetIndexByNode(int node)
Definition RBTree.cs:1087

References System.Data.Index._records, System.Data.Index.FindNodeByKey(), System.Data.RBTree< K >.GetIndexByNode(), and System.key.

Referenced by System.Data.DataView.FindByKey(), and System.Data.DataView.FindByKey().