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

◆ InsertAt()

void System.Data.DataRowCollection.InsertAt ( DataRow row,
int pos )
inline

Definition at line 45 of file DataRowCollection.cs.

46 {
47 if (pos < 0)
48 {
49 throw ExceptionBuilder.RowInsertOutOfRange(pos);
50 }
51 if (pos >= _list.Count)
52 {
53 _table.AddRow(row, -1);
54 }
55 else
56 {
57 _table.InsertRow(row, -1, pos);
58 }
59 }
void InsertRow(DataRow row, int proposedID, int pos)
void AddRow(DataRow row)

References System.Data.DataRowCollection._list, System.Data.DataRowCollection._table, System.Data.DataTable.AddRow(), System.Data.RBTree< K >.Count, System.Data.DataTable.InsertRow(), and System.Data.ExceptionBuilder.RowInsertOutOfRange().