22 references to QueryAggregationOptions
System.Linq.Parallel (22)
System\Linq\Parallel\Enumerables\AggregationMinMaxHelpers.cs (1)
34
true, intermediateReduce, finalReduce, resultSelector, default(T) != null,
QueryAggregationOptions
.AssociativeCommutative);
System\Linq\Parallel\Enumerables\QueryAggregationOptions.cs (5)
33
public static bool IsValidQueryAggregationOption(this
QueryAggregationOptions
value)
35
return value ==
QueryAggregationOptions
.None
36
|| value ==
QueryAggregationOptions
.Associative
37
|| value ==
QueryAggregationOptions
.Commutative
38
|| value ==
QueryAggregationOptions
.AssociativeCommutative;
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (3)
75
Func<TIntermediate, TOutput> resultSelector, bool throwIfEmpty,
QueryAggregationOptions
options)
83
Debug.Assert((options &
QueryAggregationOptions
.Associative) ==
QueryAggregationOptions
.Associative, "expected an associative operator");
System\Linq\ParallelEnumerable.cs (13)
1522
Func<T, T, T> reduce, T seed, bool seedIsSpecified, bool throwIfEmpty,
QueryAggregationOptions
options)
1614
return Aggregate<TSource>(source, func,
QueryAggregationOptions
.AssociativeCommutative);
1618
this ParallelQuery<TSource> source, Func<TSource, TSource, TSource> func,
QueryAggregationOptions
options)
1623
if ((~(
QueryAggregationOptions
.Associative |
QueryAggregationOptions
.Commutative) & options) != 0) throw new ArgumentOutOfRangeException(nameof(options));
1625
if ((options &
QueryAggregationOptions
.Associative) !=
QueryAggregationOptions
.Associative)
1662
return Aggregate<TSource, TAccumulate>(source, seed, func,
QueryAggregationOptions
.AssociativeCommutative);
1666
this ParallelQuery<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> func,
QueryAggregationOptions
options)
1671
if ((~(
QueryAggregationOptions
.Associative |
QueryAggregationOptions
.Commutative) & options) != 0) throw new ArgumentOutOfRangeException(nameof(options));
1766
false,
QueryAggregationOptions
.AssociativeCommutative).Aggregate();
1823
false,
QueryAggregationOptions
.AssociativeCommutative).Aggregate();