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

◆ CompareArrays()

static bool System.Data.ConstraintCollection.CompareArrays ( DataColumn[] a1,
DataColumn[] a2 )
inlinestaticprivate

Definition at line 476 of file ConstraintCollection.cs.

477 {
478 if (a1.Length != a2.Length)
479 {
480 return false;
481 }
482 for (int i = 0; i < a1.Length; i++)
483 {
484 bool flag = false;
485 for (int j = 0; j < a2.Length; j++)
486 {
487 if (a1[i] == a2[j])
488 {
489 flag = true;
490 break;
491 }
492 }
493 if (!flag)
494 {
495 return false;
496 }
497 }
498 return true;
499 }

Referenced by System.Data.ConstraintCollection.FindForeignKeyConstraint(), and System.Data.ConstraintCollection.FindKeyConstraint().