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

◆ RejectChanges()

void System.Data.DataTable.RejectChanges ( )
inlineinherited

Definition at line 3555 of file DataTable.cs.

3556 {
3557 long scopeId = DataCommonEventSource.Log.EnterScope("<ds.DataTable.RejectChanges|API> {0}", ObjectID);
3558 try
3559 {
3560 DataRow[] array = new DataRow[Rows.Count];
3561 Rows.CopyTo(array, 0);
3562 for (int i = 0; i < array.Length; i++)
3563 {
3564 RollbackRow(array[i]);
3565 }
3566 }
3567 finally
3568 {
3569 DataCommonEventSource.Log.ExitScope(scopeId);
3570 }
3571 }
override void CopyTo(Array ar, int index)
DataRowCollection Rows
Definition DataTable.cs:701
void RollbackRow(DataRow row)

References System.array, System.Data.DataRowCollection.CopyTo(), System.Data.DataRowCollection.Count, System.Data.DataCommonEventSource.Log, System.Data.DataTable.ObjectID, System.Data.DataTable.RollbackRow(), and System.Data.DataTable.Rows.