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

◆ IndexOf() [6/6]

virtual int System.Collections.ArrayList.IndexOf ( object? value,
int startIndex,
int count )
inlinevirtualinherited

Definition at line 2486 of file ArrayList.cs.

2487 {
2488 if (startIndex > _size)
2489 {
2490 throw new ArgumentOutOfRangeException("startIndex", SR.ArgumentOutOfRange_Index);
2491 }
2492 if (count < 0 || startIndex > _size - count)
2493 {
2494 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_Count);
2495 }
2496 return Array.IndexOf(_items, value, startIndex, count);
2497 }

References System.Collections.ArrayList._items, System.Collections.ArrayList._size, System.SR.ArgumentOutOfRange_Count, System.SR.ArgumentOutOfRange_Index, System.count, System.Array.IndexOf(), System.startIndex, and System.value.