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

◆ CheckForLoops()

void System.Data.DataRow.CheckForLoops ( DataRelation rel)
inlinepackage

Definition at line 423 of file DataRow.cs.

424 {
426 {
427 return;
428 }
429 int count = _table.Rows.Count;
430 int num = 0;
432 {
433 if (parentRow == this || num > count)
434 {
435 throw ExceptionBuilder.NestedCircular(_table.TableName);
436 }
437 num++;
438 }
439 }
DataRow? GetParentRow(string? relationName)
Definition DataRow.cs:714
readonly DataTable _table
Definition DataRow.cs:12
DataRow(DataRowBuilder builder)
Definition DataRow.cs:404
DataRowCollection Rows
Definition DataTable.cs:701

References System.Data.DataSet._fInLoadDiffgram, System.Data.DataTable._fInLoadDiffgram, System.Data.DataRow._table, System.Data.DataRowCollection.Count, System.count, System.Data.DataTable.DataSet, System.Xml.Dictionary, System.Data.DataRow.GetParentRow(), System.Data.ExceptionBuilder.NestedCircular(), System.Data.DataTable.Rows, and System.Data.DataTable.TableName.

Referenced by System.Data.DataRow.GetNestedParentCount(), System.Data.DataRow.GetNestedParentRow(), and System.Data.DataRow.SetNestedParentRow().