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

◆ IndexOf() [2/2]

int System.Data.DataColumnCollection.IndexOf ( string? columnName)
inline

Definition at line 561 of file DataColumnCollection.cs.

562 {
563 if (columnName != null && 0 < columnName.Length)
564 {
565 int count = Count;
567 {
569 if (num >= 0)
570 {
571 return num;
572 }
573 return -1;
574 }
575 for (int i = 0; i < count; i++)
576 {
577 if (value == _list[i])
578 {
579 return i;
580 }
581 }
582 }
583 return -1;
584 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
readonly Dictionary< string, DataColumn > _columnFromName

References System.Data.DataColumnCollection._columnFromName, System.Data.DataColumnCollection._list, System.Data.InternalDataCollectionBase.Count, System.count, System.Data.DataColumnCollection.IndexOfCaseInsensitive(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.