System.Collections.ArrayList.Range.GetEnumerator C# (CSharp) Method

GetEnumerator() public method

public GetEnumerator ( int index, int count ) : IEnumerator
index int
count int
return IEnumerator
            public override IEnumerator GetEnumerator(int index, int count)
            {
                if (index < 0 || count < 0)
                    throw new ArgumentOutOfRangeException(index < 0 ? nameof(index) : nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum);
                if (_baseSize - index < count)
                    throw new ArgumentException(SR.Argument_InvalidOffLen);
                Contract.EndContractBlock();

                InternalUpdateRange();
                return _baseList.GetEnumerator(_baseIndex + index, count);
            }

Same methods

ArrayList.Range::GetEnumerator ( ) : IEnumerator