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

◆ IndexOf() [2/6]

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

Definition at line 1873 of file ArrayList.cs.

1874 {
1875 if (startIndex < 0)
1876 {
1877 throw new ArgumentOutOfRangeException("startIndex", SR.ArgumentOutOfRange_NeedNonNegNum);
1878 }
1879 if (startIndex > _baseSize)
1880 {
1881 throw new ArgumentOutOfRangeException("startIndex", SR.ArgumentOutOfRange_Index);
1882 }
1885 if (num >= 0)
1886 {
1887 return num - _baseIndex;
1888 }
1889 return -1;
1890 }
virtual int IndexOf(object? value)

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