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; }