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