System.Collections.ArrayList.IListWrapper.GetRange C# (CSharp) Method

GetRange() public method

public GetRange ( int index, int count ) : ArrayList
index int
count int
return ArrayList
            public override ArrayList GetRange(int index, int count)
            {
                if (index < 0 || count < 0)
                    throw new ArgumentOutOfRangeException(index < 0 ? nameof(index) : nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum);
                Contract.EndContractBlock();
                if (_list.Count - index < count)
                    throw new ArgumentException(SR.Argument_InvalidOffLen);
                return new Range(this, index, count);
            }