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

◆ IndexOf() [3/6]

override int System.Collections.ArrayList.Range.IndexOf ( object value,
int startIndex,
int count )
inline

Definition at line 1892 of file ArrayList.cs.

1893 {
1894 if (startIndex < 0 || startIndex > _baseSize)
1895 {
1896 throw new ArgumentOutOfRangeException("startIndex", SR.ArgumentOutOfRange_Index);
1897 }
1898 if (count < 0 || startIndex > _baseSize - count)
1899 {
1900 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_Count);
1901 }
1904 if (num >= 0)
1905 {
1906 return num - _baseIndex;
1907 }
1908 return -1;
1909 }
virtual int IndexOf(object? value)

References System.Collections.ArrayList.Range._baseIndex, System.Collections.ArrayList.Range._baseList, System.Collections.ArrayList.Range._baseSize, System.SR.ArgumentOutOfRange_Count, System.SR.ArgumentOutOfRange_Index, System.count, System.Collections.ArrayList.IndexOf(), System.Collections.ArrayList.Range.InternalUpdateRange(), System.startIndex, and System.value.