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

◆ Contains() [1/2]

override bool System.Collections.ArrayList.Range.Contains ( object item)
inline

Definition at line 1756 of file ArrayList.cs.

1757 {
1759 if (item == null)
1760 {
1761 for (int i = 0; i < _baseSize; i++)
1762 {
1763 if (_baseList[_baseIndex + i] == null)
1764 {
1765 return true;
1766 }
1767 }
1768 return false;
1769 }
1770 for (int j = 0; j < _baseSize; j++)
1771 {
1772 object obj = _baseList[_baseIndex + j];
1773 if (obj != null && obj.Equals(item))
1774 {
1775 return true;
1776 }
1777 }
1778 return false;
1779 }

References System.Collections.ArrayList.Range._baseIndex, System.Collections.ArrayList.Range._baseList, System.Collections.ArrayList.Range._baseSize, System.Collections.ArrayList.Range.InternalUpdateRange(), System.item, and System.obj.