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

◆ InsertRecordToIndexes()

int[] System.Data.DataTable.InsertRecordToIndexes ( DataRow row,
DataRowVersion version )
inlinepackageinherited

Definition at line 3508 of file DataTable.cs.

3509 {
3510 int num = LiveIndexes.Count;
3511 int[] array = new int[num];
3512 int recordFromVersion = row.GetRecordFromVersion(version);
3513 DataViewRowState recordState = row.GetRecordState(recordFromVersion);
3514 while (--num >= 0)
3515 {
3516 if (row.HasVersion(version))
3517 {
3518 if ((recordState & _indexes[num].RecordStates) != 0)
3519 {
3520 array[num] = _indexes[num].InsertRecordToIndex(recordFromVersion);
3521 }
3522 else
3523 {
3524 array[num] = -1;
3525 }
3526 }
3527 }
3528 return array;
3529 }
readonly List< Index > _indexes
Definition DataTable.cs:76
List< Index > LiveIndexes
Definition DataTable.cs:269

References System.Data.DataTable._indexes, System.array, System.Collections.Generic.Dictionary< TKey, TValue >.Count, and System.Data.DataTable.LiveIndexes.