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

◆ GetEnumerator() [2/2]

override IEnumerator System.Collections.ArrayList.IListWrapper.GetEnumerator ( int index,
int count )
inlinevirtual

Reimplemented from System.Collections.ArrayList.

Definition at line 259 of file ArrayList.cs.

260 {
261 if (index < 0 || count < 0)
262 {
263 throw new ArgumentOutOfRangeException((index < 0) ? "index" : "count", SR.ArgumentOutOfRange_NeedNonNegNum);
264 }
265 if (_list.Count - index < count)
266 {
267 throw new ArgumentException(SR.Argument_InvalidOffLen);
268 }
269 return new IListWrapperEnumWrapper(this, index, count);
270 }

References System.Collections.ArrayList.IListWrapper._list, System.SR.Argument_InvalidOffLen, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.count, System.Collections.ICollection.Count, and System.index.