Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ToList< TSource >()

static List< TSource > System.Linq.ParallelEnumerable.ToList< TSource > ( this ParallelQuery< TSource > source)
inlinestatic

Definition at line 1741 of file ParallelEnumerable.cs.

1742 {
1743 if (source == null)
1744 {
1745 throw new ArgumentNullException("source");
1746 }
1750 {
1751 if (queryOperator.OrdinalIndexState == OrdinalIndexState.Indexable && queryOperator.OutputOrdered)
1752 {
1753 return new List<TSource>(source.ToArray());
1754 }
1756 }
1757 else
1758 {
1760 }
1761 using (enumerator)
1762 {
1763 while (enumerator.MoveNext())
1764 {
1765 list.Add(enumerator.Current);
1766 }
1767 return list;
1768 }
1769 }

References System.Collections.Generic.Dictionary< TKey, TValue >.GetEnumerator(), System.list, and System.Linq.source.