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

◆ GetNestedParentCount()

int System.Data.DataRow.GetNestedParentCount ( )
inlinepackage

Definition at line 441 of file DataRow.cs.

442 {
443 int num = 0;
445 DataRelation[] array = nestedParentRelations;
446 foreach (DataRelation dataRelation in array)
447 {
448 if (dataRelation != null)
449 {
450 if (dataRelation.ParentTable == _table)
451 {
453 }
455 if (parentRow != null)
456 {
457 num++;
458 }
459 }
460 }
461 return num;
462 }
void CheckForLoops(DataRelation rel)
Definition DataRow.cs:423
DataRow? GetParentRow(string? relationName)
Definition DataRow.cs:714
readonly DataTable _table
Definition DataRow.cs:12
DataRow(DataRowBuilder builder)
Definition DataRow.cs:404
DataRelation[] NestedParentRelations
Definition DataTable.cs:586

References System.Data.DataRow._table, System.array, System.Data.DataRow.CheckForLoops(), System.Xml.Dictionary, System.Data.DataRow.GetParentRow(), and System.Data.DataTable.NestedParentRelations.