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

◆ Remove()

void System.Data.DataRowCollection.Remove ( DataRow row)
inline

Definition at line 185 of file DataRowCollection.cs.

186 {
187 if (row == null || row.Table != _table || -1 == row.rowID)
188 {
189 throw ExceptionBuilder.RowOutOfRange();
190 }
191 if (row.RowState != DataRowState.Deleted && row.RowState != DataRowState.Detached)
192 {
193 row.Delete();
194 }
195 if (row.RowState != DataRowState.Detached)
196 {
197 row.AcceptChanges();
198 }
199 }

References System.Data.DataRowCollection._table, System.Data.DataRow.AcceptChanges(), System.Data.DataRow.Delete(), System.Data.DataRow.rowID, System.Data.ExceptionBuilder.RowOutOfRange(), System.Data.DataRow.RowState, and System.Data.DataRow.Table.

Referenced by System.Data.DataRowCollection.RemoveAt().