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

◆ InternalIndexOf()

int System.Data.DataRelationCollection.InternalIndexOf ( string name)
inlinepackageinherited

Definition at line 620 of file DataRelationCollection.cs.

621 {
622 int num = -1;
623 if (name != null && 0 < name.Length)
624 {
625 int count = List.Count;
626 int num2 = 0;
627 for (int i = 0; i < count; i++)
628 {
629 DataRelation dataRelation = (DataRelation)List[i];
630 switch (NamesEqual(dataRelation.RelationName, name, fCaseSensitive: false, GetDataSet().Locale))
631 {
632 case 1:
633 return i;
634 case -1:
635 num = ((num == -1) ? i : (-2));
636 break;
637 }
638 }
639 }
640 return num;
641 }
int NamesEqual(string s1, string s2, bool fCaseSensitive, CultureInfo locale)

References System.count, System.Collections.ArrayList.Count, System.Data.DataRelationCollection.GetDataSet(), System.Data.InternalDataCollectionBase.List, System.Data.DataSet.Locale, System.Data.InternalDataCollectionBase.NamesEqual(), and System.Data.DataRelation.RelationName.

Referenced by System.Data.DataRelationCollection.Contains(), System.Data.DataRelationCollection.IndexOf(), and System.Data.Merger.MergeRelation().