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

◆ GetChanges() [1/2]

DataTable? System.Data.DataTable.GetChanges ( )
inlineinherited

Definition at line 2786 of file DataTable.cs.

2787 {
2788 long scopeId = DataCommonEventSource.Log.EnterScope("<ds.DataTable.GetChanges|API> {0}", ObjectID);
2789 try
2790 {
2792 DataRow dataRow = null;
2793 for (int i = 0; i < Rows.Count; i++)
2794 {
2795 dataRow = Rows[i];
2796 if (dataRow._oldRecord != dataRow._newRecord)
2797 {
2798 dataTable.ImportRow(dataRow);
2799 }
2800 }
2801 if (dataTable.Rows.Count == 0)
2802 {
2803 return null;
2804 }
2805 return dataTable;
2806 }
2807 finally
2808 {
2809 DataCommonEventSource.Log.ExitScope(scopeId);
2810 }
2811 }
DataRowCollection Rows
Definition DataTable.cs:701
virtual DataTable Clone()

References System.Data.DataTable.Clone(), System.Data.DataRowCollection.Count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Runtime.Serialization.Dictionary, System.Data.DataCommonEventSource.Log, System.Data.DataTable.ObjectID, and System.Data.DataTable.Rows.