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

◆ CompareDuplicateRecords()

int System.Data.Index.CompareDuplicateRecords ( int record1,
int record2 )
inlineprivate

Definition at line 298 of file Index.cs.

299 {
302 DataRow dataRow3 = dataRow;
303 DataRow dataRow4 = dataRow2;
304 if (dataRow3 == null)
305 {
306 if (dataRow4 != null)
307 {
308 return -1;
309 }
310 return 0;
311 }
312 if (dataRow4 == null)
313 {
314 return 1;
315 }
316 int num = dataRow3.rowID.CompareTo(dataRow4.rowID);
317 if (num == 0 && record1 != record2)
318 {
319 num = ((int)dataRow3.GetRecordState(record1)).CompareTo((int)dataRow4.GetRecordState(record2));
320 }
321 return num;
322 }
readonly RecordManager _recordManager
Definition DataTable.cs:74
readonly DataTable _table
Definition Index.cs:32

References System.Data.DataTable._recordManager, and System.Data.Index._table.

Referenced by System.Data.Index.IndexTree.CompareSateliteTreeNode().