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

◆ Aggregate< TSource >() [2/2]

static TSource System.Linq.ParallelEnumerable.Aggregate< TSource > ( this ParallelQuery< TSource > source,
Func< TSource, TSource, TSource > func,
QueryAggregationOptions options )
inlinestaticpackage

Definition at line 634 of file ParallelEnumerable.cs.

635 {
636 if (source == null)
637 {
638 throw new ArgumentNullException("source");
639 }
640 if (func == null)
641 {
642 throw new ArgumentNullException("func");
643 }
644 if ((0xFFFFFFFCu & (uint)options) != 0)
645 {
646 throw new ArgumentOutOfRangeException("options");
647 }
648 if ((options & QueryAggregationOptions.Associative) != QueryAggregationOptions.Associative)
649 {
650 return source.PerformSequentialAggregation(default(TSource), seedIsSpecified: false, func);
651 }
652 return source.PerformAggregation(func, default(TSource), seedIsSpecified: false, throwIfEmpty: true, options);
653 }

References System.Linq.func, System.options, and System.Linq.source.