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

◆ IndexOf() [1/2]

int System.Data.ConstraintCollection.IndexOf ( Constraint? constraint)
inline

Definition at line 501 of file ConstraintCollection.cs.

502 {
503 if (constraint != null)
504 {
505 int count = Count;
506 for (int i = 0; i < count; i++)
507 {
508 if (constraint == (Constraint)List[i])
509 {
510 return i;
511 }
512 }
513 }
514 return -1;
515 }

References System.Data.InternalDataCollectionBase.Count, System.count, and System.Data.ConstraintCollection.List.