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

◆ AcceptChanges()

void System.Data.DataTable.AcceptChanges ( )
inlineinherited

Definition at line 2205 of file DataTable.cs.

2206 {
2207 long scopeId = DataCommonEventSource.Log.EnterScope("<ds.DataTable.AcceptChanges|API> {0}", ObjectID);
2208 try
2209 {
2210 DataRow[] array = new DataRow[Rows.Count];
2211 Rows.CopyTo(array, 0);
2213 try
2214 {
2215 for (int i = 0; i < array.Length; i++)
2216 {
2217 if (array[i].rowID != -1)
2218 {
2219 array[i].AcceptChanges();
2220 }
2221 }
2222 }
2223 finally
2224 {
2226 }
2227 }
2228 finally
2229 {
2230 DataCommonEventSource.Log.ExitScope(scopeId);
2231 }
2232 }
override void CopyTo(Array ar, int index)
DataRowCollection Rows
Definition DataTable.cs:701
void RestoreIndexEvents(bool forceReset)

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