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

◆ GetChanges() [2/2]

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

Definition at line 2813 of file DataTable.cs.

2814 {
2815 long scopeId = DataCommonEventSource.Log.EnterScope("<ds.DataTable.GetChanges|API> {0}, rowStates={1}", ObjectID, rowStates);
2816 try
2817 {
2819 DataRow dataRow = null;
2820 for (int i = 0; i < Rows.Count; i++)
2821 {
2822 dataRow = Rows[i];
2823 if ((dataRow.RowState & rowStates) != 0)
2824 {
2825 dataTable.ImportRow(dataRow);
2826 }
2827 }
2828 if (dataTable.Rows.Count == 0)
2829 {
2830 return null;
2831 }
2832 return dataTable;
2833 }
2834 finally
2835 {
2836 DataCommonEventSource.Log.ExitScope(scopeId);
2837 }
2838 }
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.