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

◆ LastIndexOf() [3/6]

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

Definition at line 1959 of file ArrayList.cs.

1960 {
1962 if (_baseSize == 0)
1963 {
1964 return -1;
1965 }
1966 if (startIndex >= _baseSize)
1967 {
1968 throw new ArgumentOutOfRangeException("startIndex", SR.ArgumentOutOfRange_Index);
1969 }
1970 if (startIndex < 0)
1971 {
1972 throw new ArgumentOutOfRangeException("startIndex", SR.ArgumentOutOfRange_NeedNonNegNum);
1973 }
1975 if (num >= 0)
1976 {
1977 return num - _baseIndex;
1978 }
1979 return -1;
1980 }
virtual int LastIndexOf(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.count, System.Collections.ArrayList.Range.InternalUpdateRange(), System.Collections.ArrayList.LastIndexOf(), System.startIndex, and System.value.