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