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

◆ HasChanges() [2/2]

bool System.Data.DataSet.HasChanges ( DataRowState rowStates)
inline

Definition at line 1283 of file DataSet.cs.

1284 {
1285 long scopeId = DataCommonEventSource.Log.EnterScope("<ds.DataSet.HasChanges|API> {0}, rowStates={1}", ObjectID, (int)rowStates);
1286 try
1287 {
1288 if (((uint)rowStates & 0xFFFFFFE0u) != 0)
1289 {
1290 throw ExceptionBuilder.ArgumentOutOfRange("rowState");
1291 }
1292 for (int i = 0; i < Tables.Count; i++)
1293 {
1294 DataTable dataTable = Tables[i];
1295 for (int j = 0; j < dataTable.Rows.Count; j++)
1296 {
1297 DataRow dataRow = dataTable.Rows[j];
1298 if ((dataRow.RowState & rowStates) != 0)
1299 {
1300 return true;
1301 }
1302 }
1303 }
1304 return false;
1305 }
1306 finally
1307 {
1308 DataCommonEventSource.Log.ExitScope(scopeId);
1309 }
1310 }
DataTableCollection Tables
Definition DataSet.cs:396

References System.Data.ExceptionBuilder.ArgumentOutOfRange(), System.Data.InternalDataCollectionBase.Count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Runtime.Serialization.Dictionary, System.Data.DataCommonEventSource.Log, System.Data.DataSet.ObjectID, and System.Data.DataSet.Tables.