32 overrides of ToArray
System.Linq (32)
System\Linq\AppendPrepend.SpeedOpt.cs (2)
57public override TSource[] ToArray() 218public override TSource[] ToArray()
System\Linq\Concat.SpeedOpt.cs (2)
39public override TSource[] ToArray() 187public override TSource[] ToArray() => _hasOnlyCollections ? PreallocatingToArray() : LazyToArray();
System\Linq\DefaultIfEmpty.SpeedOpt.cs (1)
13public override TSource[] ToArray()
System\Linq\Distinct.SpeedOpt.cs (1)
12public override TSource[] ToArray() => ICollectionToArray(new HashSet<TSource>(_source, _comparer));
System\Linq\Grouping.SpeedOpt.cs (4)
12public override TResult[] ToArray() => 24public override TResult[] ToArray() => 36public override IGrouping<TKey, TElement>[] ToArray() => 48public override IGrouping<TKey, TSource>[] ToArray() =>
System\Linq\OrderedEnumerable.SpeedOpt.cs (2)
15public override TElement[] ToArray() 543public override TElement[] ToArray() => _source.ToArray(_minIndexInclusive, _maxIndexInclusive);
System\Linq\Range.SpeedOpt.cs (1)
17public override int[] ToArray()
System\Linq\Repeat.SpeedOpt.cs (1)
13public override TResult[] ToArray()
System\Linq\Reverse.SpeedOpt.cs (1)
12public override TSource[] ToArray()
System\Linq\Select.SpeedOpt.cs (7)
16public override TResult[] ToArray() 139public override TResult[] ToArray() 273public override TResult[] ToArray() 365public override TResult[] ToArray() 467public override TResult[] ToArray() 694public override TResult[] ToArray() 892public override TResult[] ToArray()
System\Linq\SelectMany.SpeedOpt.cs (1)
32public override TResult[] ToArray()
System\Linq\SkipTake.SpeedOpt.cs (2)
120public override TSource[] ToArray() 464public override TSource[] ToArray()
System\Linq\Union.SpeedOpt.cs (1)
27public override TSource[] ToArray() => ICollectionToArray(FillSet());
System\Linq\Where.SpeedOpt.cs (6)
36public override TSource[] ToArray() 181public override TSource[] ToArray() => ToArray(_source, _predicate); 288public override TSource[] ToArray() => ArrayWhereIterator<TSource>.ToArray(CollectionsMarshal.AsSpan(_source), _predicate); 384public override TResult[] ToArray() => ToArray(_source, _predicate, _selector); 490public override TResult[] ToArray() => ArrayWhereSelectIterator<TSource, TResult>.ToArray(CollectionsMarshal.AsSpan(_source), _predicate, _selector); 530public override TResult[] ToArray()
1 reference to ToArray
System.Linq (1)
System\Linq\ToCollection.cs (1)
17return iterator.ToArray();