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

ToArray() private method

private ToArray ( Type type ) : Array
type System.Type
return System.Array
            public override Array ToArray(Type type)
            {
                if (type == null)
                    throw new ArgumentNullException(nameof(type));
                Contract.EndContractBlock();
                Array array = Array.CreateInstance(type, _list.Count);
                _list.CopyTo(array, 0);
                return array;
            }

Same methods

ArrayList.IListWrapper::ToArray ( ) : Object[]