mscorlib(4.0.0.0) API with additions
System.Linq.ParallelEnumerable Class Reference

Provides a set of methods for querying objects that implement ParallelQuery{TSource}. This is the parallel equivalent of T:System.Linq.Enumerable. More...

Static Public Member Functions

static ParallelQuery< TSource > AsParallel< TSource > (this IEnumerable< TSource > source)
 Enables parallelization of a query. More...
 
static ParallelQuery< TSource > AsParallel< TSource > (this Partitioner< TSource > source)
 Enables parallelization of a query, as sourced by a custom partitioner that is responsible for splitting the input sequence into partitions. More...
 
static ParallelQuery< TSource > AsOrdered< TSource > (this ParallelQuery< TSource > source)
 Enables treatment of a data source as if it were ordered, overriding the default of unordered. AsOrdered may only be invoked on generic sequences returned by AsParallel, ParallelEnumerable.Range, and ParallelEnumerable.Repeat. More...
 
static ParallelQuery AsOrdered (this ParallelQuery source)
 Enables treatment of a data source as if it were ordered, overriding the default of unordered. AsOrdered may only be invoked on non-generic sequences returned by AsParallel, ParallelEnumerable.Range, and ParallelEnumerable.Repeat. More...
 
static ParallelQuery< TSource > AsUnordered< TSource > (this ParallelQuery< TSource > source)
 Allows an intermediate query to be treated as if no ordering is implied among the elements. More...
 
static ParallelQuery AsParallel (this IEnumerable source)
 Enables parallelization of a query. More...
 
static IEnumerable< TSource > AsSequential< TSource > (this ParallelQuery< TSource > source)
 Converts a T:System.Linq.ParallelQuery`1 into an T:System.Collections.Generic.IEnumerable`1 to force sequential evaluation of the query. More...
 
static ParallelQuery< TSource > WithDegreeOfParallelism< TSource > (this ParallelQuery< TSource > source, int degreeOfParallelism)
 Sets the degree of parallelism to use in a query. Degree of parallelism is the maximum number of concurrently executing tasks that will be used to process the query. More...
 
static ParallelQuery< TSource > WithCancellation< TSource > (this ParallelQuery< TSource > source, CancellationToken cancellationToken)
 Sets the T:System.Threading.CancellationToken to associate with the query. More...
 
static ParallelQuery< TSource > WithExecutionMode< TSource > (this ParallelQuery< TSource > source, ParallelExecutionMode executionMode)
 Sets the execution mode of the query. More...
 
static ParallelQuery< TSource > WithMergeOptions< TSource > (this ParallelQuery< TSource > source, ParallelMergeOptions mergeOptions)
 Sets the merge options for this query, which specify how the query will buffer output. More...
 
static ParallelQuery< int > Range (int start, int count)
 Generates a parallel sequence of integral numbers within a specified range. More...
 
static ParallelQuery< TResult > Repeat< TResult > (TResult element, int count)
 Generates a parallel sequence that contains one repeated value. More...
 
static ParallelQuery< TResult > Empty< TResult > ()
 Returns an empty ParallelQuery{TResult} that has the specified type argument. More...
 
static void ForAll< TSource > (this ParallelQuery< TSource > source, Action< TSource > action)
 Invokes in parallel the specified action for each element in the source . More...
 
static ParallelQuery< TSource > Where< TSource > (this ParallelQuery< TSource > source, Func< TSource, bool > predicate)
 Filters in parallel a sequence of values based on a predicate. More...
 
static ParallelQuery< TSource > Where< TSource > (this ParallelQuery< TSource > source, Func< TSource, int, bool > predicate)
 Filters in parallel a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function. More...
 
static ParallelQuery< TResult > Select< TSource, TResult > (this ParallelQuery< TSource > source, Func< TSource, TResult > selector)
 Projects in parallel each element of a sequence into a new form. More...
 
static ParallelQuery< TResult > Select< TSource, TResult > (this ParallelQuery< TSource > source, Func< TSource, int, TResult > selector)
 Projects in parallel each element of a sequence into a new form by incorporating the element's index. More...
 
static ParallelQuery< TResult > Zip< TFirst, TSecond, TResult > (this ParallelQuery< TFirst > first, ParallelQuery< TSecond > second, Func< TFirst, TSecond, TResult > resultSelector)
 Merges in parallel two sequences by using the specified predicate function. More...
 
static ParallelQuery< TResult > Zip< TFirst, TSecond, TResult > (this ParallelQuery< TFirst > first, IEnumerable< TSecond > second, Func< TFirst, TSecond, TResult > resultSelector)
 This Zip overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when invoked. More...
 
static ParallelQuery< TResult > Join< TOuter, TInner, TKey, TResult > (this ParallelQuery< TOuter > outer, ParallelQuery< TInner > inner, Func< TOuter, TKey > outerKeySelector, Func< TInner, TKey > innerKeySelector, Func< TOuter, TInner, TResult > resultSelector)
 Correlates in parallel the elements of two sequences based on matching keys. The default equality comparer is used to compare keys. More...
 
static ParallelQuery< TResult > Join< TOuter, TInner, TKey, TResult > (this ParallelQuery< TOuter > outer, IEnumerable< TInner > inner, Func< TOuter, TKey > outerKeySelector, Func< TInner, TKey > innerKeySelector, Func< TOuter, TInner, TResult > resultSelector)
 This Join overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when invoked. More...
 
static ParallelQuery< TResult > Join< TOuter, TInner, TKey, TResult > (this ParallelQuery< TOuter > outer, ParallelQuery< TInner > inner, Func< TOuter, TKey > outerKeySelector, Func< TInner, TKey > innerKeySelector, Func< TOuter, TInner, TResult > resultSelector, IEqualityComparer< TKey > comparer)
 Correlates in parallel the elements of two sequences based on matching keys. A specified T:System.Collections.Generic.IEqualityComparer`1 is used to compare keys. More...
 
static ParallelQuery< TResult > Join< TOuter, TInner, TKey, TResult > (this ParallelQuery< TOuter > outer, IEnumerable< TInner > inner, Func< TOuter, TKey > outerKeySelector, Func< TInner, TKey > innerKeySelector, Func< TOuter, TInner, TResult > resultSelector, IEqualityComparer< TKey > comparer)
 This Join overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when invoked. More...
 
static ParallelQuery< TResult > GroupJoin< TOuter, TInner, TKey, TResult > (this ParallelQuery< TOuter > outer, ParallelQuery< TInner > inner, Func< TOuter, TKey > outerKeySelector, Func< TInner, TKey > innerKeySelector, Func< TOuter, IEnumerable< TInner >, TResult > resultSelector)
 Correlates in parallel the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys. More...
 
static ParallelQuery< TResult > GroupJoin< TOuter, TInner, TKey, TResult > (this ParallelQuery< TOuter > outer, IEnumerable< TInner > inner, Func< TOuter, TKey > outerKeySelector, Func< TInner, TKey > innerKeySelector, Func< TOuter, IEnumerable< TInner >, TResult > resultSelector)
 This GroupJoin overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called. More...
 
static ParallelQuery< TResult > GroupJoin< TOuter, TInner, TKey, TResult > (this ParallelQuery< TOuter > outer, ParallelQuery< TInner > inner, Func< TOuter, TKey > outerKeySelector, Func< TInner, TKey > innerKeySelector, Func< TOuter, IEnumerable< TInner >, TResult > resultSelector, IEqualityComparer< TKey > comparer)
 Correlates in parallel the elements of two sequences based on key equality and groups the results. A specified T:System.Collections.Generic.IEqualityComparer`1 is used to compare keys. More...
 
static ParallelQuery< TResult > GroupJoin< TOuter, TInner, TKey, TResult > (this ParallelQuery< TOuter > outer, IEnumerable< TInner > inner, Func< TOuter, TKey > outerKeySelector, Func< TInner, TKey > innerKeySelector, Func< TOuter, IEnumerable< TInner >, TResult > resultSelector, IEqualityComparer< TKey > comparer)
 This GroupJoin overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called. More...
 
static ParallelQuery< TResult > SelectMany< TSource, TResult > (this ParallelQuery< TSource > source, Func< TSource, IEnumerable< TResult >> selector)
 Projects in parallel each element of a sequence to an T:System.Collections.Generic.IEnumerable`1 and flattens the resulting sequences into one sequence. More...
 
static ParallelQuery< TResult > SelectMany< TSource, TResult > (this ParallelQuery< TSource > source, Func< TSource, int, IEnumerable< TResult >> selector)
 Projects in parallel each element of a sequence to an T:System.Collections.Generic.IEnumerable`1, and flattens the resulting sequences into one sequence. The index of each source element is used in the projected form of that element. More...
 
static ParallelQuery< TResult > SelectMany< TSource, TCollection, TResult > (this ParallelQuery< TSource > source, Func< TSource, IEnumerable< TCollection >> collectionSelector, Func< TSource, TCollection, TResult > resultSelector)
 Projects each element of a sequence to an T:System.Collections.Generic.IEnumerable`1, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. More...
 
static ParallelQuery< TResult > SelectMany< TSource, TCollection, TResult > (this ParallelQuery< TSource > source, Func< TSource, int, IEnumerable< TCollection >> collectionSelector, Func< TSource, TCollection, TResult > resultSelector)
 Projects each element of a sequence to an T:System.Collections.Generic.IEnumerable`1, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. The index of each source element is used in the intermediate projected form of that element. More...
 
static OrderedParallelQuery< TSource > OrderBy< TSource, TKey > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector)
 Sorts in parallel the elements of a sequence in ascending order according to a key. More...
 
static OrderedParallelQuery< TSource > OrderBy< TSource, TKey > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, IComparer< TKey > comparer)
 Sorts in parallel the elements of a sequence in ascending order by using a specified comparer. More...
 
static OrderedParallelQuery< TSource > OrderByDescending< TSource, TKey > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector)
 Sorts in parallel the elements of a sequence in descending order according to a key. More...
 
static OrderedParallelQuery< TSource > OrderByDescending< TSource, TKey > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, IComparer< TKey > comparer)
 Sorts the elements of a sequence in descending order by using a specified comparer. More...
 
static OrderedParallelQuery< TSource > ThenBy< TSource, TKey > (this OrderedParallelQuery< TSource > source, Func< TSource, TKey > keySelector)
 Performs in parallel a subsequent ordering of the elements in a sequence in ascending order according to a key. More...
 
static OrderedParallelQuery< TSource > ThenBy< TSource, TKey > (this OrderedParallelQuery< TSource > source, Func< TSource, TKey > keySelector, IComparer< TKey > comparer)
 Performs in parallel a subsequent ordering of the elements in a sequence in ascending order by using a specified comparer. More...
 
static OrderedParallelQuery< TSource > ThenByDescending< TSource, TKey > (this OrderedParallelQuery< TSource > source, Func< TSource, TKey > keySelector)
 Performs in parallel a subsequent ordering of the elements in a sequence in descending order, according to a key. More...
 
static OrderedParallelQuery< TSource > ThenByDescending< TSource, TKey > (this OrderedParallelQuery< TSource > source, Func< TSource, TKey > keySelector, IComparer< TKey > comparer)
 Performs in parallel a subsequent ordering of the elements in a sequence in descending order by using a specified comparer. More...
 
static ParallelQuery< IGrouping< TKey, TSource > > GroupBy< TSource, TKey > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector)
 Groups in parallel the elements of a sequence according to a specified key selector function. More...
 
static ParallelQuery< IGrouping< TKey, TSource > > GroupBy< TSource, TKey > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, IEqualityComparer< TKey > comparer)
 Groups in parallel the elements of a sequence according to a specified key selector function and compares the keys by using a specified T:System.Collections.Generic.IComparer`1. More...
 
static ParallelQuery< IGrouping< TKey, TElement > > GroupBy< TSource, TKey, TElement > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector)
 Groups in parallel the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function. More...
 
static ParallelQuery< IGrouping< TKey, TElement > > GroupBy< TSource, TKey, TElement > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector, IEqualityComparer< TKey > comparer)
 Groups in parallel the elements of a sequence according to a key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function. More...
 
static ParallelQuery< TResult > GroupBy< TSource, TKey, TResult > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, Func< TKey, IEnumerable< TSource >, TResult > resultSelector)
 Groups in parallel the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. More...
 
static ParallelQuery< TResult > GroupBy< TSource, TKey, TResult > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, Func< TKey, IEnumerable< TSource >, TResult > resultSelector, IEqualityComparer< TKey > comparer)
 Groups in parallel the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The keys are compared by using a specified comparer. More...
 
static ParallelQuery< TResult > GroupBy< TSource, TKey, TElement, TResult > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector, Func< TKey, IEnumerable< TElement >, TResult > resultSelector)
 Groups in parallel the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function. More...
 
static ParallelQuery< TResult > GroupBy< TSource, TKey, TElement, TResult > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector, Func< TKey, IEnumerable< TElement >, TResult > resultSelector, IEqualityComparer< TKey > comparer)
 Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function. More...
 
static TSource Aggregate< TSource > (this ParallelQuery< TSource > source, Func< TSource, TSource, TSource > func)
 Applies in parallel an accumulator function over a sequence. More...
 
static TAccumulate Aggregate< TSource, TAccumulate > (this ParallelQuery< TSource > source, TAccumulate seed, Func< TAccumulate, TSource, TAccumulate > func)
 Applies in parallel an accumulator function over a sequence. The specified seed value is used as the initial accumulator value. More...
 
static TResult Aggregate< TSource, TAccumulate, TResult > (this ParallelQuery< TSource > source, TAccumulate seed, Func< TAccumulate, TSource, TAccumulate > func, Func< TAccumulate, TResult > resultSelector)
 Applies in parallel an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value. More...
 
static TResult Aggregate< TSource, TAccumulate, TResult > (this ParallelQuery< TSource > source, TAccumulate seed, Func< TAccumulate, TSource, TAccumulate > updateAccumulatorFunc, Func< TAccumulate, TAccumulate, TAccumulate > combineAccumulatorsFunc, Func< TAccumulate, TResult > resultSelector)
 Applies in parallel an accumulator function over a sequence. This overload is not available in the sequential implementation. More...
 
static TResult Aggregate< TSource, TAccumulate, TResult > (this ParallelQuery< TSource > source, Func< TAccumulate > seedFactory, Func< TAccumulate, TSource, TAccumulate > updateAccumulatorFunc, Func< TAccumulate, TAccumulate, TAccumulate > combineAccumulatorsFunc, Func< TAccumulate, TResult > resultSelector)
 Applies in parallel an accumulator function over a sequence. This overload is not available in the sequential implementation. More...
 
static int Count< TSource > (this ParallelQuery< TSource > source)
 Returns the number of elements in a parallel sequence. More...
 
static int Count< TSource > (this ParallelQuery< TSource > source, Func< TSource, bool > predicate)
 Returns a number that represents how many elements in the specified parallel sequence satisfy a condition. More...
 
static long LongCount< TSource > (this ParallelQuery< TSource > source)
 Returns an Int64 that represents the total number of elements in a parallel sequence. More...
 
static long LongCount< TSource > (this ParallelQuery< TSource > source, Func< TSource, bool > predicate)
 Returns an Int64 that represents how many elements in a parallel sequence satisfy a condition. More...
 
static int Sum (this ParallelQuery< int > source)
 Computes in parallel the sum of a sequence of values. More...
 
static ? int Sum (this ParallelQuery< int?> source)
 Computes in parallel the sum of a sequence of values. More...
 
static long Sum (this ParallelQuery< long > source)
 Computes in parallel the sum of a sequence of values. More...
 
static ? long Sum (this ParallelQuery< long?> source)
 Computes in parallel the sum of a sequence of values. More...
 
static float Sum (this ParallelQuery< float > source)
 Computes in parallel the sum of a sequence of values. More...
 
static ? float Sum (this ParallelQuery< float?> source)
 Computes in parallel the sum of a sequence of values. More...
 
static double Sum (this ParallelQuery< double > source)
 Computes in parallel the sum of a sequence of values. More...
 
static ? double Sum (this ParallelQuery< double?> source)
 Computes in parallel the sum of a sequence of values. More...
 
static decimal Sum (this ParallelQuery< decimal > source)
 Computes in parallel the sum of a sequence of values. More...
 
static ? decimal Sum (this ParallelQuery< decimal?> source)
 Computes in parallel the sum of a sequence of values. More...
 
static int Sum< TSource > (this ParallelQuery< TSource > source, Func< TSource, int > selector)
 Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static ? int Sum< TSource > (this ParallelQuery< TSource > source, Func< TSource, int?> selector)
 Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static long Sum< TSource > (this ParallelQuery< TSource > source, Func< TSource, long > selector)
 Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static ? long Sum< TSource > (this ParallelQuery< TSource > source, Func< TSource, long?> selector)
 Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static float Sum< TSource > (this ParallelQuery< TSource > source, Func< TSource, float > selector)
 Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static ? float Sum< TSource > (this ParallelQuery< TSource > source, Func< TSource, float?> selector)
 Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static double Sum< TSource > (this ParallelQuery< TSource > source, Func< TSource, double > selector)
 Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static ? double Sum< TSource > (this ParallelQuery< TSource > source, Func< TSource, double?> selector)
 Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static decimal Sum< TSource > (this ParallelQuery< TSource > source, Func< TSource, decimal > selector)
 Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static ? decimal Sum< TSource > (this ParallelQuery< TSource > source, Func< TSource, decimal?> selector)
 Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static int Min (this ParallelQuery< int > source)
 Returns the minimum value in a parallel sequence of values. More...
 
static ? int Min (this ParallelQuery< int?> source)
 Returns the minimum value in a parallel sequence of values. More...
 
static long Min (this ParallelQuery< long > source)
 Returns the minimum value in a parallel sequence of values. More...
 
static ? long Min (this ParallelQuery< long?> source)
 Returns the minimum value in a parallel sequence of values. More...
 
static float Min (this ParallelQuery< float > source)
 Returns the minimum value in a parallel sequence of values. More...
 
static ? float Min (this ParallelQuery< float?> source)
 Returns the minimum value in a parallel sequence of values. More...
 
static double Min (this ParallelQuery< double > source)
 Returns the minimum value in a parallel sequence of values. More...
 
static ? double Min (this ParallelQuery< double?> source)
 Returns the minimum value in a parallel sequence of values. More...
 
static decimal Min (this ParallelQuery< decimal > source)
 Returns the minimum value in a parallel sequence of values. More...
 
static ? decimal Min (this ParallelQuery< decimal?> source)
 Returns the minimum value in a parallel sequence of values. More...
 
static TSource Min< TSource > (this ParallelQuery< TSource > source)
 Returns the minimum value in a parallel sequence of values. More...
 
static int Min< TSource > (this ParallelQuery< TSource > source, Func< TSource, int > selector)
 Invokes in parallel a transform function on each element of a sequence and returns the minimum value. More...
 
static ? int Min< TSource > (this ParallelQuery< TSource > source, Func< TSource, int?> selector)
 Invokes in parallel a transform function on each element of a sequence and returns the minimum value. More...
 
static long Min< TSource > (this ParallelQuery< TSource > source, Func< TSource, long > selector)
 Invokes in parallel a transform function on each element of a sequence and returns the minimum value. More...
 
static ? long Min< TSource > (this ParallelQuery< TSource > source, Func< TSource, long?> selector)
 Invokes in parallel a transform function on each element of a sequence and returns the minimum value. More...
 
static float Min< TSource > (this ParallelQuery< TSource > source, Func< TSource, float > selector)
 Invokes in parallel a transform function on each element of a sequence and returns the minimum value. More...
 
static ? float Min< TSource > (this ParallelQuery< TSource > source, Func< TSource, float?> selector)
 Invokes in parallel a transform function on each element of a sequence and returns the minimum value. More...
 
static double Min< TSource > (this ParallelQuery< TSource > source, Func< TSource, double > selector)
 Invokes in parallel a transform function on each element of a sequence and returns the minimum value. More...
 
static ? double Min< TSource > (this ParallelQuery< TSource > source, Func< TSource, double?> selector)
 Invokes in parallel a transform function on each element of a sequence and returns the minimum value. More...
 
static decimal Min< TSource > (this ParallelQuery< TSource > source, Func< TSource, decimal > selector)
 Invokes in parallel a transform function on each element of a sequence and returns the minimum value. More...
 
static ? decimal Min< TSource > (this ParallelQuery< TSource > source, Func< TSource, decimal?> selector)
 Invokes in parallel a transform function on each element of a sequence and returns the minimum value. More...
 
static TResult Min< TSource, TResult > (this ParallelQuery< TSource > source, Func< TSource, TResult > selector)
 Invokes in parallel a transform function on each element of a sequence and returns the minimum value. More...
 
static int Max (this ParallelQuery< int > source)
 Returns the maximum value in a parallel sequence of values. More...
 
static ? int Max (this ParallelQuery< int?> source)
 Returns the maximum value in a parallel sequence of values. More...
 
static long Max (this ParallelQuery< long > source)
 Returns the maximum value in a parallel sequence of values. More...
 
static ? long Max (this ParallelQuery< long?> source)
 Returns the maximum value in a parallel sequence of values. More...
 
static float Max (this ParallelQuery< float > source)
 Returns the maximum value in a parallel sequence of values. More...
 
static ? float Max (this ParallelQuery< float?> source)
 Returns the maximum value in a parallel sequence of values. More...
 
static double Max (this ParallelQuery< double > source)
 Returns the maximum value in a parallel sequence of values. More...
 
static ? double Max (this ParallelQuery< double?> source)
 Returns the maximum value in a parallel sequence of values. More...
 
static decimal Max (this ParallelQuery< decimal > source)
 Returns the maximum value in a parallel sequence of values. More...
 
static ? decimal Max (this ParallelQuery< decimal?> source)
 Returns the maximum value in a parallel sequence of values. More...
 
static TSource Max< TSource > (this ParallelQuery< TSource > source)
 Returns the maximum value in a parallel sequence of values. More...
 
static int Max< TSource > (this ParallelQuery< TSource > source, Func< TSource, int > selector)
 Invokes in parallel a transform function on each element of a sequence and returns the maximum value. More...
 
static ? int Max< TSource > (this ParallelQuery< TSource > source, Func< TSource, int?> selector)
 Invokes in parallel a transform function on each element of a sequence and returns the maximum value. More...
 
static long Max< TSource > (this ParallelQuery< TSource > source, Func< TSource, long > selector)
 Invokes in parallel a transform function on each element of a sequence and returns the maximum value. More...
 
static ? long Max< TSource > (this ParallelQuery< TSource > source, Func< TSource, long?> selector)
 Invokes in parallel a transform function on each element of a sequence and returns the maximum value. More...
 
static float Max< TSource > (this ParallelQuery< TSource > source, Func< TSource, float > selector)
 Invokes in parallel a transform function on each element of a sequence and returns the maximum value. More...
 
static ? float Max< TSource > (this ParallelQuery< TSource > source, Func< TSource, float?> selector)
 Invokes in parallel a transform function on each element of a sequence and returns the maximum value. More...
 
static double Max< TSource > (this ParallelQuery< TSource > source, Func< TSource, double > selector)
 Invokes in parallel a transform function on each element of a sequence and returns the maximum value. More...
 
static ? double Max< TSource > (this ParallelQuery< TSource > source, Func< TSource, double?> selector)
 Invokes in parallel a transform function on each element of a sequence and returns the maximum value. More...
 
static decimal Max< TSource > (this ParallelQuery< TSource > source, Func< TSource, decimal > selector)
 Invokes in parallel a transform function on each element of a sequence and returns the maximum value. More...
 
static ? decimal Max< TSource > (this ParallelQuery< TSource > source, Func< TSource, decimal?> selector)
 Invokes in parallel a transform function on each element of a sequence and returns the maximum value. More...
 
static TResult Max< TSource, TResult > (this ParallelQuery< TSource > source, Func< TSource, TResult > selector)
 Invokes in parallel a transform function on each element of a sequence and returns the maximum value. More...
 
static double Average (this ParallelQuery< int > source)
 Computes in parallel the average of a sequence of values. More...
 
static ? double Average (this ParallelQuery< int?> source)
 Computes in parallel the average of a sequence of values. More...
 
static double Average (this ParallelQuery< long > source)
 Computes in parallel the average of a sequence of values. More...
 
static ? double Average (this ParallelQuery< long?> source)
 Computes in parallel the average of a sequence of values. More...
 
static float Average (this ParallelQuery< float > source)
 Computes in parallel the average of a sequence of values. More...
 
static ? float Average (this ParallelQuery< float?> source)
 Computes in parallel the average of a sequence of values. More...
 
static double Average (this ParallelQuery< double > source)
 Computes in parallel the average of a sequence of values. More...
 
static ? double Average (this ParallelQuery< double?> source)
 Computes in parallel the average of a sequence of values. More...
 
static decimal Average (this ParallelQuery< decimal > source)
 Computes in parallel the average of a sequence of values. More...
 
static ? decimal Average (this ParallelQuery< decimal?> source)
 Computes in parallel the average of a sequence of values. More...
 
static double Average< TSource > (this ParallelQuery< TSource > source, Func< TSource, int > selector)
 Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static ? double Average< TSource > (this ParallelQuery< TSource > source, Func< TSource, int?> selector)
 Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static double Average< TSource > (this ParallelQuery< TSource > source, Func< TSource, long > selector)
 Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static ? double Average< TSource > (this ParallelQuery< TSource > source, Func< TSource, long?> selector)
 Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static float Average< TSource > (this ParallelQuery< TSource > source, Func< TSource, float > selector)
 Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static ? float Average< TSource > (this ParallelQuery< TSource > source, Func< TSource, float?> selector)
 Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static double Average< TSource > (this ParallelQuery< TSource > source, Func< TSource, double > selector)
 Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static ? double Average< TSource > (this ParallelQuery< TSource > source, Func< TSource, double?> selector)
 Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static decimal Average< TSource > (this ParallelQuery< TSource > source, Func< TSource, decimal > selector)
 Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static ? decimal Average< TSource > (this ParallelQuery< TSource > source, Func< TSource, decimal?> selector)
 Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. More...
 
static bool Any< TSource > (this ParallelQuery< TSource > source, Func< TSource, bool > predicate)
 Determines in parallel whether any element of a sequence satisfies a condition. More...
 
static bool Any< TSource > (this ParallelQuery< TSource > source)
 Determines whether a parallel sequence contains any elements. More...
 
static bool All< TSource > (this ParallelQuery< TSource > source, Func< TSource, bool > predicate)
 Determines in parallel whether all elements of a sequence satisfy a condition. More...
 
static bool Contains< TSource > (this ParallelQuery< TSource > source, TSource value)
 Determines in parallel whether a sequence contains a specified element by using the default equality comparer. More...
 
static bool Contains< TSource > (this ParallelQuery< TSource > source, TSource value, IEqualityComparer< TSource > comparer)
 Determines in parallel whether a sequence contains a specified element by using a specified T:System.Collections.Generic.IEqualityComparer`1. More...
 
static ParallelQuery< TSource > Take< TSource > (this ParallelQuery< TSource > source, int count)
 Returns a specified number of contiguous elements from the start of a parallel sequence. More...
 
static ParallelQuery< TSource > TakeWhile< TSource > (this ParallelQuery< TSource > source, Func< TSource, bool > predicate)
 Returns elements from a parallel sequence as long as a specified condition is true. More...
 
static ParallelQuery< TSource > TakeWhile< TSource > (this ParallelQuery< TSource > source, Func< TSource, int, bool > predicate)
 Returns elements from a parallel sequence as long as a specified condition is true. The element's index is used in the logic of the predicate function. More...
 
static ParallelQuery< TSource > Skip< TSource > (this ParallelQuery< TSource > source, int count)
 Bypasses a specified number of elements in a parallel sequence and then returns the remaining elements. More...
 
static ParallelQuery< TSource > SkipWhile< TSource > (this ParallelQuery< TSource > source, Func< TSource, bool > predicate)
 Bypasses elements in a parallel sequence as long as a specified condition is true and then returns the remaining elements. More...
 
static ParallelQuery< TSource > SkipWhile< TSource > (this ParallelQuery< TSource > source, Func< TSource, int, bool > predicate)
 Bypasses elements in a parallel sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function. More...
 
static ParallelQuery< TSource > Concat< TSource > (this ParallelQuery< TSource > first, ParallelQuery< TSource > second)
 Concatenates two parallel sequences. More...
 
static ParallelQuery< TSource > Concat< TSource > (this ParallelQuery< TSource > first, IEnumerable< TSource > second)
 This Concat overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called. More...
 
static bool SequenceEqual< TSource > (this ParallelQuery< TSource > first, ParallelQuery< TSource > second)
 Determines whether two parallel sequences are equal by comparing the elements by using the default equality comparer for their type. More...
 
static bool SequenceEqual< TSource > (this ParallelQuery< TSource > first, IEnumerable< TSource > second)
 This SequenceEqual overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called. More...
 
static bool SequenceEqual< TSource > (this ParallelQuery< TSource > first, ParallelQuery< TSource > second, IEqualityComparer< TSource > comparer)
 Determines whether two parallel sequences are equal by comparing their elements by using a specified IEqualityComparer{T}. More...
 
static bool SequenceEqual< TSource > (this ParallelQuery< TSource > first, IEnumerable< TSource > second, IEqualityComparer< TSource > comparer)
 This SequenceEqual overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called. More...
 
static ParallelQuery< TSource > Distinct< TSource > (this ParallelQuery< TSource > source)
 Returns distinct elements from a parallel sequence by using the default equality comparer to compare values. More...
 
static ParallelQuery< TSource > Distinct< TSource > (this ParallelQuery< TSource > source, IEqualityComparer< TSource > comparer)
 Returns distinct elements from a parallel sequence by using a specified T:System.Collections.Generic.IEqualityComparer`1 to compare values. More...
 
static ParallelQuery< TSource > Union< TSource > (this ParallelQuery< TSource > first, ParallelQuery< TSource > second)
 Produces the set union of two parallel sequences by using the default equality comparer. More...
 
static ParallelQuery< TSource > Union< TSource > (this ParallelQuery< TSource > first, IEnumerable< TSource > second)
 This Union overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called. More...
 
static ParallelQuery< TSource > Union< TSource > (this ParallelQuery< TSource > first, ParallelQuery< TSource > second, IEqualityComparer< TSource > comparer)
 Produces the set union of two parallel sequences by using a specified IEqualityComparer{T}. More...
 
static ParallelQuery< TSource > Union< TSource > (this ParallelQuery< TSource > first, IEnumerable< TSource > second, IEqualityComparer< TSource > comparer)
 This Union overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called. More...
 
static ParallelQuery< TSource > Intersect< TSource > (this ParallelQuery< TSource > first, ParallelQuery< TSource > second)
 Produces the set intersection of two parallel sequences by using the default equality comparer to compare values. More...
 
static ParallelQuery< TSource > Intersect< TSource > (this ParallelQuery< TSource > first, IEnumerable< TSource > second)
 This Intersect overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called. More...
 
static ParallelQuery< TSource > Intersect< TSource > (this ParallelQuery< TSource > first, ParallelQuery< TSource > second, IEqualityComparer< TSource > comparer)
 Produces the set intersection of two parallel sequences by using the specified IEqualityComparer{T} to compare values. More...
 
static ParallelQuery< TSource > Intersect< TSource > (this ParallelQuery< TSource > first, IEnumerable< TSource > second, IEqualityComparer< TSource > comparer)
 This Intersect overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called. More...
 
static ParallelQuery< TSource > Except< TSource > (this ParallelQuery< TSource > first, ParallelQuery< TSource > second)
 Produces the set difference of two parallel sequences by using the default equality comparer to compare values. More...
 
static ParallelQuery< TSource > Except< TSource > (this ParallelQuery< TSource > first, IEnumerable< TSource > second)
 This Except overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called. More...
 
static ParallelQuery< TSource > Except< TSource > (this ParallelQuery< TSource > first, ParallelQuery< TSource > second, IEqualityComparer< TSource > comparer)
 Produces the set difference of two parallel sequences by using the specified T:System.Collections.Generic.IEqualityComparer`1 to compare values. More...
 
static ParallelQuery< TSource > Except< TSource > (this ParallelQuery< TSource > first, IEnumerable< TSource > second, IEqualityComparer< TSource > comparer)
 This Except overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called. More...
 
static IEnumerable< TSource > AsEnumerable< TSource > (this ParallelQuery< TSource > source)
 Converts a T:System.Linq.ParallelQuery`1 into an T:System.Collections.Generic.IEnumerable`1 to force sequential evaluation of the query. More...
 
static TSource [] ToArray< TSource > (this ParallelQuery< TSource > source)
 Creates an array from a T:System.Linq.ParallelQuery`1. More...
 
static List< TSource > ToList< TSource > (this ParallelQuery< TSource > source)
 Creates a T:System.Collections.Generic.List`1 from an T:System.Linq.ParallelQuery`1. More...
 
static Dictionary< TKey, TSource > ToDictionary< TSource, TKey > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector)
 Creates a T:System.Collections.Generic.Dictionary`2 from a T:System.Linq.ParallelQuery`1 according to a specified key selector function. More...
 
static Dictionary< TKey, TSource > ToDictionary< TSource, TKey > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, IEqualityComparer< TKey > comparer)
 Creates a T:System.Collections.Generic.Dictionary`2 from a T:System.Linq.ParallelQuery`1 according to a specified key selector function and key comparer. More...
 
static Dictionary< TKey, TElement > ToDictionary< TSource, TKey, TElement > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector)
 Creates a T:System.Collections.Generic.Dictionary`2 from a T:System.Linq.ParallelQuery`1 according to specified key selector and element selector functions. More...
 
static Dictionary< TKey, TElement > ToDictionary< TSource, TKey, TElement > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector, IEqualityComparer< TKey > comparer)
 Creates a T:System.Collections.Generic.Dictionary`2 from a T:System.Linq.ParallelQuery`1 according to a specified key selector function, a comparer, and an element selector function. More...
 
static ILookup< TKey, TSource > ToLookup< TSource, TKey > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector)
 Creates an T:System.Linq.ILookup`2 from a T:System.Linq.ParallelQuery`1 according to a specified key selector function. More...
 
static ILookup< TKey, TSource > ToLookup< TSource, TKey > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, IEqualityComparer< TKey > comparer)
 Creates an T:System.Linq.ILookup`2 from a T:System.Linq.ParallelQuery`1 according to a specified key selector function and key comparer. More...
 
static ILookup< TKey, TElement > ToLookup< TSource, TKey, TElement > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector)
 Creates an T:System.Linq.ILookup`2 from a T:System.Linq.ParallelQuery`1 according to specified key selector and element selector functions. More...
 
static ILookup< TKey, TElement > ToLookup< TSource, TKey, TElement > (this ParallelQuery< TSource > source, Func< TSource, TKey > keySelector, Func< TSource, TElement > elementSelector, IEqualityComparer< TKey > comparer)
 Creates an T:System.Linq.ILookup`2 from a T:System.Linq.ParallelQuery`1 according to a specified key selector function, a comparer and an element selector function. More...
 
static ParallelQuery< TSource > Reverse< TSource > (this ParallelQuery< TSource > source)
 Inverts the order of the elements in a parallel sequence. More...
 
static ParallelQuery< TResult > OfType< TResult > (this ParallelQuery source)
 Filters the elements of a ParallelQuery based on a specified type. More...
 
static ParallelQuery< TResult > Cast< TResult > (this ParallelQuery source)
 Converts the elements of a ParallelQuery to the specified type. More...
 
static TSource First< TSource > (this ParallelQuery< TSource > source)
 Returns the first element of a parallel sequence. More...
 
static TSource First< TSource > (this ParallelQuery< TSource > source, Func< TSource, bool > predicate)
 Returns the first element in a parallel sequence that satisfies a specified condition. More...
 
static TSource FirstOrDefault< TSource > (this ParallelQuery< TSource > source)
 Returns the first element of a parallel sequence, or a default value if the sequence contains no elements. More...
 
static TSource FirstOrDefault< TSource > (this ParallelQuery< TSource > source, Func< TSource, bool > predicate)
 Returns the first element of the parallel sequence that satisfies a condition or a default value if no such element is found. More...
 
static TSource Last< TSource > (this ParallelQuery< TSource > source)
 Returns the last element of a parallel sequence. More...
 
static TSource Last< TSource > (this ParallelQuery< TSource > source, Func< TSource, bool > predicate)
 Returns the last element of a parallel sequence that satisfies a specified condition. More...
 
static TSource LastOrDefault< TSource > (this ParallelQuery< TSource > source)
 Returns the last element of a parallel sequence, or a default value if the sequence contains no elements. More...
 
static TSource LastOrDefault< TSource > (this ParallelQuery< TSource > source, Func< TSource, bool > predicate)
 Returns the last element of a parallel sequence that satisfies a condition, or a default value if no such element is found. More...
 
static TSource Single< TSource > (this ParallelQuery< TSource > source)
 Returns the only element of a parallel sequence, and throws an exception if there is not exactly one element in the sequence. More...
 
static TSource Single< TSource > (this ParallelQuery< TSource > source, Func< TSource, bool > predicate)
 Returns the only element of a parallel sequence that satisfies a specified condition, and throws an exception if more than one such element exists. More...
 
static TSource SingleOrDefault< TSource > (this ParallelQuery< TSource > source)
 Returns the only element of a parallel sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence. More...
 
static TSource SingleOrDefault< TSource > (this ParallelQuery< TSource > source, Func< TSource, bool > predicate)
 Returns the only element of a parallel sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition. More...
 
static ParallelQuery< TSource > DefaultIfEmpty< TSource > (this ParallelQuery< TSource > source)
 Returns the elements of the specified parallel sequence or the type parameter's default value in a singleton collection if the sequence is empty. More...
 
static ParallelQuery< TSource > DefaultIfEmpty< TSource > (this ParallelQuery< TSource > source, TSource defaultValue)
 Returns the elements of the specified parallel sequence or the specified value in a singleton collection if the sequence is empty. More...
 
static TSource ElementAt< TSource > (this ParallelQuery< TSource > source, int index)
 Returns the element at a specified index in a parallel sequence. More...
 
static TSource ElementAtOrDefault< TSource > (this ParallelQuery< TSource > source, int index)
 Returns the element at a specified index in a parallel sequence or a default value if the index is out of range. More...
 

Detailed Description

Provides a set of methods for querying objects that implement ParallelQuery{TSource}. This is the parallel equivalent of T:System.Linq.Enumerable.

Definition at line 12 of file ParallelEnumerable.cs.

Member Function Documentation

◆ Aggregate< TSource >()

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

Applies in parallel an accumulator function over a sequence.

Parameters
sourceA sequence to aggregate over.
funcAn accumulator function to be invoked on each element.
Template Parameters
TSourceThe type of the elements of source .
Returns
The final accumulator value.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or func is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 1247 of file ParallelEnumerable.cs.

◆ Aggregate< TSource, TAccumulate >()

static TAccumulate System.Linq.ParallelEnumerable.Aggregate< TSource, TAccumulate > ( this ParallelQuery< TSource >  source,
TAccumulate  seed,
Func< TAccumulate, TSource, TAccumulate >  func 
)
static

Applies in parallel an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.

Parameters
sourceA sequence to aggregate over.
seedThe initial accumulator value.
funcAn accumulator function to be invoked on each element.
Template Parameters
TSourceThe type of the elements of source .
TAccumulateThe type of the accumulator value.
Returns
The final accumulator value.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or func is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 1287 of file ParallelEnumerable.cs.

◆ Aggregate< TSource, TAccumulate, TResult >() [1/3]

static TResult System.Linq.ParallelEnumerable.Aggregate< TSource, TAccumulate, TResult > ( this ParallelQuery< TSource >  source,
TAccumulate  seed,
Func< TAccumulate, TSource, TAccumulate >  func,
Func< TAccumulate, TResult >  resultSelector 
)
static

Applies in parallel an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.

Parameters
sourceA sequence to aggregate over.
seedThe initial accumulator value.
funcAn accumulator function to be invoked on each element.
resultSelectorA function to transform the final accumulator value into the result value.
Template Parameters
TSourceThe type of the elements of source .
TAccumulateThe type of the accumulator value.
TResultThe type of the resulting value.
Returns
The transformed final accumulator value.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or func or resultSelector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 1325 of file ParallelEnumerable.cs.

◆ Aggregate< TSource, TAccumulate, TResult >() [2/3]

static TResult System.Linq.ParallelEnumerable.Aggregate< TSource, TAccumulate, TResult > ( this ParallelQuery< TSource >  source,
TAccumulate  seed,
Func< TAccumulate, TSource, TAccumulate >  updateAccumulatorFunc,
Func< TAccumulate, TAccumulate, TAccumulate >  combineAccumulatorsFunc,
Func< TAccumulate, TResult >  resultSelector 
)
static

Applies in parallel an accumulator function over a sequence. This overload is not available in the sequential implementation.

Parameters
sourceA sequence to aggregate over.
seedThe initial accumulator value.
updateAccumulatorFuncAn accumulator function to be invoked on each element in a partition.
combineAccumulatorsFuncAn accumulator function to be invoked on the yielded accumulator result from each partition.
resultSelectorA function to transform the final accumulator value into the result value.
Template Parameters
TSourceThe type of the elements of source .
TAccumulateThe type of the accumulator value.
TResultThe type of the resulting value.
Returns
The transformed final accumulator value.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or updateAccumulatorFunc or combineAccumulatorsFunc or resultSelector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 1371 of file ParallelEnumerable.cs.

◆ Aggregate< TSource, TAccumulate, TResult >() [3/3]

static TResult System.Linq.ParallelEnumerable.Aggregate< TSource, TAccumulate, TResult > ( this ParallelQuery< TSource >  source,
Func< TAccumulate >  seedFactory,
Func< TAccumulate, TSource, TAccumulate >  updateAccumulatorFunc,
Func< TAccumulate, TAccumulate, TAccumulate >  combineAccumulatorsFunc,
Func< TAccumulate, TResult >  resultSelector 
)
static

Applies in parallel an accumulator function over a sequence. This overload is not available in the sequential implementation.

Parameters
sourceA sequence to aggregate over.
seedFactoryA function that returns the initial accumulator value.
updateAccumulatorFuncAn accumulator function to be invoked on each element in a partition.
combineAccumulatorsFuncAn accumulator function to be invoked on the yielded accumulator result from each partition.
resultSelectorA function to transform the final accumulator value into the result value.
Template Parameters
TSourceThe type of the elements of source .
TAccumulateThe type of the accumulator value.
TResultThe type of the resulting value.
Returns
The transformed final accumulator value.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or seedFactory or updateAccumulatorFunc or combineAccumulatorsFunc or resultSelector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 1409 of file ParallelEnumerable.cs.

◆ All< TSource >()

static bool System.Linq.ParallelEnumerable.All< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, bool >  predicate 
)
static

Determines in parallel whether all elements of a sequence satisfy a condition.

Parameters
sourceA sequence whose elements to apply the predicate to.
predicateA function to test each element for a condition.
Template Parameters
TSourceThe type of elements of source .
Returns
true if every element of the source sequence passes the test in the specified predicate, or if the sequence is empty; otherwise, false..
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3072 of file ParallelEnumerable.cs.

◆ Any< TSource >() [1/2]

static bool System.Linq.ParallelEnumerable.Any< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, bool >  predicate 
)
static

Determines in parallel whether any element of a sequence satisfies a condition.

Parameters
sourceA sequence to whose elements the predicate will be applied.
predicateA function to test each element for a condition.
Template Parameters
TSourceThe type of elements of source .
Returns
true if any elements in the source sequence pass the test in the specified predicate; otherwise, false.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3031 of file ParallelEnumerable.cs.

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

static bool System.Linq.ParallelEnumerable.Any< TSource > ( this ParallelQuery< TSource >  source)
static

Determines whether a parallel sequence contains any elements.

Parameters
sourceThe sequence to check for emptiness.
Template Parameters
TSourceThe type of elements of source .
Returns
true if the source sequence contains any elements; otherwise, false.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3053 of file ParallelEnumerable.cs.

◆ AsEnumerable< TSource >()

static IEnumerable<TSource> System.Linq.ParallelEnumerable.AsEnumerable< TSource > ( this ParallelQuery< TSource >  source)
static

Converts a T:System.Linq.ParallelQuery`1 into an T:System.Collections.Generic.IEnumerable`1 to force sequential evaluation of the query.

Parameters
sourceThe sequence to cast as T:System.Collections.Generic.IEnumerable`1.
Template Parameters
TSourceThe type of the elements of source .
Returns
The input sequence typed as T:System.Collections.Generic.IEnumerable`1.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).

Definition at line 3666 of file ParallelEnumerable.cs.

◆ AsOrdered()

static ParallelQuery System.Linq.ParallelEnumerable.AsOrdered ( this ParallelQuery  source)
static

Enables treatment of a data source as if it were ordered, overriding the default of unordered. AsOrdered may only be invoked on non-generic sequences returned by AsParallel, ParallelEnumerable.Range, and ParallelEnumerable.Repeat.

Parameters
sourceThe input sequence.
Returns
The source sequence which will maintain the original ordering in the subsequent query operators.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.InvalidOperationExceptionthrown if source contains no elements-or- if AsOrdered is called midway through a query. It is allowed to be called immediately after M:System.Linq.ParallelEnumerable.AsParallel(System.Collections.IEnumerable), M:System.Linq.ParallelEnumerable.Range(System.Int32,System.Int32) or M:System.Linq.ParallelEnumerable.Repeat``1(``0,System.Int32).

Definition at line 84 of file ParallelEnumerable.cs.

◆ AsOrdered< TSource >()

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.AsOrdered< TSource > ( this ParallelQuery< TSource >  source)
static

Enables treatment of a data source as if it were ordered, overriding the default of unordered. AsOrdered may only be invoked on generic sequences returned by AsParallel, ParallelEnumerable.Range, and ParallelEnumerable.Repeat.

Parameters
sourceThe input sequence.
Template Parameters
TSourceThe type of elements of source .
Returns
The source sequence which will maintain the original ordering in the subsequent query operators.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.InvalidOperationExceptionThrown if source contains no elements-or-if source is not one of AsParallel, ParallelEnumerable.Range, or ParallelEnumerable.Repeat.

Definition at line 56 of file ParallelEnumerable.cs.

◆ AsParallel()

static ParallelQuery System.Linq.ParallelEnumerable.AsParallel ( this IEnumerable  source)
static

Enables parallelization of a query.

Parameters
sourceAn T:System.Collections.Generic.IEnumerable`1 to convert to a T:System.Linq.ParallelQuery.
Returns
The source as a ParallelQuery to bind to ParallelEnumerable extension methods.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).

Definition at line 120 of file ParallelEnumerable.cs.

◆ AsParallel< TSource >() [1/2]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.AsParallel< TSource > ( this IEnumerable< TSource >  source)
static

Enables parallelization of a query.

Parameters
sourceAn T:System.Collections.Generic.IEnumerable`1 to convert to a T:System.Linq.ParallelQuery`1.
Template Parameters
TSourceThe type of elements of source .
Returns
The source as a T:System.Linq.ParallelQuery`1 to bind to ParallelEnumerable extension methods.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).

Definition at line 23 of file ParallelEnumerable.cs.

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

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.AsParallel< TSource > ( this Partitioner< TSource >  source)
static

Enables parallelization of a query, as sourced by a custom partitioner that is responsible for splitting the input sequence into partitions.

Parameters
sourceA partitioner over the input sequence.
Template Parameters
TSourceThe type of elements of source .
Returns
The source as a ParallelQuery to bind to ParallelEnumerable extension methods.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).

Definition at line 39 of file ParallelEnumerable.cs.

◆ AsSequential< TSource >()

static IEnumerable<TSource> System.Linq.ParallelEnumerable.AsSequential< TSource > ( this ParallelQuery< TSource >  source)
static

Converts a T:System.Linq.ParallelQuery`1 into an T:System.Collections.Generic.IEnumerable`1 to force sequential evaluation of the query.

Parameters
sourceA T:System.Linq.ParallelQuery`1 to convert to an T:System.Collections.Generic.IEnumerable`1.
Template Parameters
TSourceThe type of elements of source .
Returns
The source as an T:System.Collections.Generic.IEnumerable`1 to bind to sequential extension methods.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).

Definition at line 136 of file ParallelEnumerable.cs.

◆ AsUnordered< TSource >()

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.AsUnordered< TSource > ( this ParallelQuery< TSource >  source)
static

Allows an intermediate query to be treated as if no ordering is implied among the elements.

Parameters
sourceThe input sequence.
Template Parameters
TSourceThe type of elements of source .
Returns
The source sequence with arbitrary order.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).

Definition at line 105 of file ParallelEnumerable.cs.

◆ Average() [1/10]

static double System.Linq.ParallelEnumerable.Average ( this ParallelQuery< int >  source)
static

Computes in parallel the average of a sequence of values.

Parameters
sourceA sequence of values that are used to calculate an average.
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum or count of the elements in the sequence is larger than F:System.Int32.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2662 of file ParallelEnumerable.cs.

◆ Average() [2/10]

static ? double System.Linq.ParallelEnumerable.Average ( this ParallelQuery< int?>  source)
static

Computes in parallel the average of a sequence of values.

Parameters
sourceA sequence of values that are used to calculate an average.
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum or count of the elements in the sequence is larger than F:System.Int32.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2681 of file ParallelEnumerable.cs.

◆ Average() [3/10]

static double System.Linq.ParallelEnumerable.Average ( this ParallelQuery< long >  source)
static

Computes in parallel the average of a sequence of values.

Parameters
sourceA sequence of values that are used to calculate an average.
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum or count of the elements in the sequence is larger than F:System.Int32.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2700 of file ParallelEnumerable.cs.

◆ Average() [4/10]

static ? double System.Linq.ParallelEnumerable.Average ( this ParallelQuery< long?>  source)
static

Computes in parallel the average of a sequence of values.

Parameters
sourceA sequence of values that are used to calculate an average.
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum or count of the elements in the sequence is larger than F:System.Int32.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2719 of file ParallelEnumerable.cs.

◆ Average() [5/10]

static float System.Linq.ParallelEnumerable.Average ( this ParallelQuery< float >  source)
static

Computes in parallel the average of a sequence of values.

Parameters
sourceA sequence of values that are used to calculate an average.
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2738 of file ParallelEnumerable.cs.

◆ Average() [6/10]

static ? float System.Linq.ParallelEnumerable.Average ( this ParallelQuery< float?>  source)
static

Computes in parallel the average of a sequence of values.

Parameters
sourceA sequence of values that are used to calculate an average.
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2757 of file ParallelEnumerable.cs.

◆ Average() [7/10]

static double System.Linq.ParallelEnumerable.Average ( this ParallelQuery< double >  source)
static

Computes in parallel the average of a sequence of values.

Parameters
sourceA sequence of values that are used to calculate an average.
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2776 of file ParallelEnumerable.cs.

◆ Average() [8/10]

static ? double System.Linq.ParallelEnumerable.Average ( this ParallelQuery< double?>  source)
static

Computes in parallel the average of a sequence of values.

Parameters
sourceThe source sequence.
Returns
Returns the average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionA sequence of values that are used to calculate an average.The average of the sequence of values.source is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2794 of file ParallelEnumerable.cs.

◆ Average() [9/10]

static decimal System.Linq.ParallelEnumerable.Average ( this ParallelQuery< decimal >  source)
static

Computes in parallel the average of a sequence of values.

Parameters
sourceA sequence of values that are used to calculate an average.
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2813 of file ParallelEnumerable.cs.

◆ Average() [10/10]

static ? decimal System.Linq.ParallelEnumerable.Average ( this ParallelQuery< decimal?>  source)
static

Computes in parallel the average of a sequence of values.

Parameters
sourceA sequence of values that are used to calculate an average.
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2832 of file ParallelEnumerable.cs.

◆ Average< TSource >() [1/10]

static double System.Linq.ParallelEnumerable.Average< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, int >  selector 
)
static

Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values that are used to calculate an average.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum or count of the elements in the sequence is larger than F:System.Int32.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.
T:System.OverflowException(Thrown as inner exception in an T:System.AggregateException). The selector function returns a value greater than MaxValue for the element type.

Definition at line 2854 of file ParallelEnumerable.cs.

◆ Average< TSource >() [2/10]

static ? double System.Linq.ParallelEnumerable.Average< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, int?>  selector 
)
static

Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values that are used to calculate an average.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum or count of the elements in the sequence is larger than F:System.Int32.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.
T:System.OverflowException(Thrown as inner exception in an T:System.AggregateException). The selector function returns a value greater than MaxValue for the element type.

Definition at line 2872 of file ParallelEnumerable.cs.

◆ Average< TSource >() [3/10]

static double System.Linq.ParallelEnumerable.Average< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, long >  selector 
)
static

Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values that are used to calculate an average.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum or count of the elements in the sequence is larger than F:System.Int32.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.
T:System.OverflowException(Thrown as inner exception in an T:System.AggregateException). The selector function returns a value greater than MaxValue for the element type.

Definition at line 2890 of file ParallelEnumerable.cs.

◆ Average< TSource >() [4/10]

static ? double System.Linq.ParallelEnumerable.Average< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, long?>  selector 
)
static

Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values that are used to calculate an average.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum or count of the elements in the sequence is larger than F:System.Int64.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.
T:System.OverflowException(Thrown as inner exception in an T:System.AggregateException). The selector function returns a value greater than MaxValue for the element type.

Definition at line 2908 of file ParallelEnumerable.cs.

◆ Average< TSource >() [5/10]

static float System.Linq.ParallelEnumerable.Average< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, float >  selector 
)
static

Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values that are used to calculate an average.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.
T:System.OverflowException(Thrown as inner exception in an T:System.AggregateException). The selector function returns a value greater than MaxValue for the element type.

Definition at line 2926 of file ParallelEnumerable.cs.

◆ Average< TSource >() [6/10]

static ? float System.Linq.ParallelEnumerable.Average< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, float?>  selector 
)
static

Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values that are used to calculate an average.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.
T:System.OverflowException(Thrown as inner exception in an T:System.AggregateException). The selector function returns a value greater than MaxValue for the element type.

Definition at line 2944 of file ParallelEnumerable.cs.

◆ Average< TSource >() [7/10]

static double System.Linq.ParallelEnumerable.Average< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, double >  selector 
)
static

Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values that are used to calculate an average.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.
T:System.OverflowException(Thrown as inner exception in an T:System.AggregateException). The selector function returns a value greater than MaxValue for the element type.

Definition at line 2962 of file ParallelEnumerable.cs.

◆ Average< TSource >() [8/10]

static ? double System.Linq.ParallelEnumerable.Average< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, double?>  selector 
)
static

Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values that are used to calculate an average.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.
T:System.OverflowException(Thrown as inner exception in an T:System.AggregateException). The selector function returns a value greater than MaxValue for the element type.

Definition at line 2980 of file ParallelEnumerable.cs.

◆ Average< TSource >() [9/10]

static decimal System.Linq.ParallelEnumerable.Average< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, decimal >  selector 
)
static

Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values that are used to calculate an average.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.
T:System.OverflowException(Thrown as inner exception in an T:System.AggregateException). The selector function returns a value greater than MaxValue for the element type.

Definition at line 2998 of file ParallelEnumerable.cs.

◆ Average< TSource >() [10/10]

static ? decimal System.Linq.ParallelEnumerable.Average< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, decimal?>  selector 
)
static

Computes in parallel the average of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values that are used to calculate an average.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The average of the sequence of values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.
T:System.OverflowException(Thrown as inner exception in an T:System.AggregateException). The selector function returns a value greater than MaxValue for the element type.

Definition at line 3016 of file ParallelEnumerable.cs.

◆ Cast< TResult >()

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.Cast< TResult > ( this ParallelQuery  source)
static

Converts the elements of a ParallelQuery to the specified type.

Parameters
sourceThe sequence that contains the elements to be converted.
Template Parameters
TResultThe type to convert the elements of source to.
Returns
A sequence that contains each element of the source sequence converted to the specified type.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.InvalidCastExceptionThe type of the source sequence could not be converted to TResult .

Definition at line 4031 of file ParallelEnumerable.cs.

◆ Concat< TSource >() [1/2]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Concat< TSource > ( this ParallelQuery< TSource >  first,
ParallelQuery< TSource >  second 
)
static

Concatenates two parallel sequences.

Parameters
firstThe first sequence to concatenate.
secondThe sequence to concatenate to the first sequence.
Template Parameters
TSourceThe type of the elements of the input sequences.
Returns
A sequence that contains the concatenated elements of the two input sequences.
Exceptions
T:System.ArgumentNullExceptionfirst or second is a null reference (Nothing in Visual Basic).

Definition at line 3269 of file ParallelEnumerable.cs.

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

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Concat< TSource > ( this ParallelQuery< TSource >  first,
IEnumerable< TSource >  second 
)
static

This Concat overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called.

Parameters
firstThis parameter is not used.
secondThis parameter is not used.
Template Parameters
TSourceThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.NotSupportedExceptionThe exception that occurs when this method is called.

Definition at line 3290 of file ParallelEnumerable.cs.

◆ Contains< TSource >() [1/2]

static bool System.Linq.ParallelEnumerable.Contains< TSource > ( this ParallelQuery< TSource >  source,
TSource  value 
)
static

Determines in parallel whether a sequence contains a specified element by using the default equality comparer.

Parameters
sourceA sequence in which to locate a value.
valueThe value to locate in the sequence.
Template Parameters
TSourceThe type of elements of source .
Returns
true if the source sequence contains an element that has the specified value; otherwise, false.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3095 of file ParallelEnumerable.cs.

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

static bool System.Linq.ParallelEnumerable.Contains< TSource > ( this ParallelQuery< TSource >  source,
TSource  value,
IEqualityComparer< TSource >  comparer 
)
static

Determines in parallel whether a sequence contains a specified element by using a specified T:System.Collections.Generic.IEqualityComparer`1.

Parameters
sourceA sequence in which to locate a value.
valueThe value to locate in the sequence.
comparerAn equality comparer to compare values.
Template Parameters
TSourceThe type of elements of source .
Returns
true if the source sequence contains an element that has the specified value; otherwise, false.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3111 of file ParallelEnumerable.cs.

◆ Count< TSource >() [1/2]

static int System.Linq.ParallelEnumerable.Count< TSource > ( this ParallelQuery< TSource >  source)
static

Returns the number of elements in a parallel sequence.

Parameters
sourceA sequence that contains elements to be counted.
Template Parameters
TSourceThe type of the elements of source .
Returns
The number of elements in the input sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe number of elements in source is larger than F:System.Int32.MaxValue. (In this case the InnerException is T:System.OverflowException) -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1443 of file ParallelEnumerable.cs.

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

static int System.Linq.ParallelEnumerable.Count< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, bool >  predicate 
)
static

Returns a number that represents how many elements in the specified parallel sequence satisfy a condition.

Parameters
sourceA sequence that contains elements to be counted.
predicateA function to test each element for a condition.
Template Parameters
TSourceThe type of the elements of source .
Returns
A number that represents how many elements in the sequence satisfy the condition in the predicate function.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe number of elements in source is larger than F:System.Int32.MaxValue. (In this case the InnerException is T:System.OverflowException) -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1471 of file ParallelEnumerable.cs.

◆ DefaultIfEmpty< TSource >() [1/2]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.DefaultIfEmpty< TSource > ( this ParallelQuery< TSource >  source)
static

Returns the elements of the specified parallel sequence or the type parameter's default value in a singleton collection if the sequence is empty.

Parameters
sourceThe sequence to return a default value for if it is empty.
Template Parameters
TSourceThe type of the elements of source .
Returns
A sequence that contains default(TSource) if source is empty; otherwise, source .
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 4386 of file ParallelEnumerable.cs.

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

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.DefaultIfEmpty< TSource > ( this ParallelQuery< TSource >  source,
TSource  defaultValue 
)
static

Returns the elements of the specified parallel sequence or the specified value in a singleton collection if the sequence is empty.

Parameters
sourceThe sequence to return the specified value for if it is empty.
defaultValueThe value to return if the sequence is empty.
Template Parameters
TSourceThe type of the elements of source .
Returns
A sequence that contains defaultValue if source is empty; otherwise, source .
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 4401 of file ParallelEnumerable.cs.

◆ Distinct< TSource >() [1/2]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Distinct< TSource > ( this ParallelQuery< TSource >  source)
static

Returns distinct elements from a parallel sequence by using the default equality comparer to compare values.

Parameters
sourceThe sequence to remove duplicate elements from.
Template Parameters
TSourceThe type of the elements of source .
Returns
A sequence that contains distinct elements from the source sequence.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3433 of file ParallelEnumerable.cs.

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

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Distinct< TSource > ( this ParallelQuery< TSource >  source,
IEqualityComparer< TSource >  comparer 
)
static

Returns distinct elements from a parallel sequence by using a specified T:System.Collections.Generic.IEqualityComparer`1 to compare values.

Parameters
sourceThe sequence to remove duplicate elements from.
comparerAn T:System.Collections.Generic.IEqualityComparer`1 to compare values.
Template Parameters
TSourceThe type of the elements of source .
Returns
A sequence that contains distinct elements from the source sequence.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3447 of file ParallelEnumerable.cs.

◆ ElementAt< TSource >()

static TSource System.Linq.ParallelEnumerable.ElementAt< TSource > ( this ParallelQuery< TSource >  source,
int  index 
)
static

Returns the element at a specified index in a parallel sequence.

Parameters
sourceA sequence to return an element from.
indexThe zero-based index of the element to retrieve.
Template Parameters
TSourceThe type of the elements of source .
Returns
The element at the specified position in the source sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.ArgumentOutOfRangeExceptionindex is less than 0 or greater than or equal to the number of elements in source .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 4422 of file ParallelEnumerable.cs.

◆ ElementAtOrDefault< TSource >()

static TSource System.Linq.ParallelEnumerable.ElementAtOrDefault< TSource > ( this ParallelQuery< TSource >  source,
int  index 
)
static

Returns the element at a specified index in a parallel sequence or a default value if the index is out of range.

Parameters
sourceA sequence to return an element from.
indexThe zero-based index of the element to retrieve.
Template Parameters
TSourceThe type of the elements of source .
Returns
default(TSource) if the index is outside the bounds of the source sequence; otherwise, the element at the specified position in the source sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 4450 of file ParallelEnumerable.cs.

◆ Empty< TResult >()

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.Empty< TResult > ( )
static

Returns an empty ParallelQuery{TResult} that has the specified type argument.

Template Parameters
TResultThe type to assign to the type parameter of the returned generic sequence.
Returns
An empty sequence whose type argument is TResult .

Definition at line 318 of file ParallelEnumerable.cs.

◆ Except< TSource >() [1/4]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Except< TSource > ( this ParallelQuery< TSource >  first,
ParallelQuery< TSource >  second 
)
static

Produces the set difference of two parallel sequences by using the default equality comparer to compare values.

Parameters
firstA sequence whose elements that are not also in second will be returned.
secondA sequence whose elements that also occur in the first sequence will cause those elements to be removed from the returned sequence.
Template Parameters
TSourceThe type of the elements of the input sequences.
Returns
A sequence that contains the set difference of the elements of two sequences.
Exceptions
T:System.ArgumentNullExceptionfirst or second is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3602 of file ParallelEnumerable.cs.

◆ Except< TSource >() [2/4]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Except< TSource > ( this ParallelQuery< TSource >  first,
IEnumerable< TSource >  second 
)
static

This Except overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called.

Parameters
firstThis parameter is not used.
secondThis parameter is not used.
Template Parameters
TSourceThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.NotSupportedExceptionThe exception that occurs when this method is called.

Definition at line 3615 of file ParallelEnumerable.cs.

◆ Except< TSource >() [3/4]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Except< TSource > ( this ParallelQuery< TSource >  first,
ParallelQuery< TSource >  second,
IEqualityComparer< TSource >  comparer 
)
static

Produces the set difference of two parallel sequences by using the specified T:System.Collections.Generic.IEqualityComparer`1 to compare values.

Parameters
firstA sequence whose elements that are not also in second will be returned.
secondA sequence whose elements that also occur in the first sequence will cause those elements to be removed from the returned sequence.
comparerT:System.Collections.Generic.IEqualityComparer`1 to compare values.
Template Parameters
TSourceThe type of the elements of the input sequences.
Returns
A sequence that contains the set difference of the elements of two sequences.
Exceptions
T:System.ArgumentNullExceptionfirst or second is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3632 of file ParallelEnumerable.cs.

◆ Except< TSource >() [4/4]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Except< TSource > ( this ParallelQuery< TSource >  first,
IEnumerable< TSource >  second,
IEqualityComparer< TSource >  comparer 
)
static

This Except overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called.

Parameters
firstThis parameter is not used.
secondThis parameter is not used.
comparerThis parameter is not used.
Template Parameters
TSourceThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.NotSupportedExceptionThe exception that occurs when this method is called.

Definition at line 3654 of file ParallelEnumerable.cs.

◆ First< TSource >() [1/2]

static TSource System.Linq.ParallelEnumerable.First< TSource > ( this ParallelQuery< TSource >  source)
static

Returns the first element of a parallel sequence.

Parameters
sourceThe sequence to return the first element of.
Template Parameters
TSourceThe type of the elements of source .
Returns
The first element in the specified sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 4068 of file ParallelEnumerable.cs.

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

static TSource System.Linq.ParallelEnumerable.First< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, bool >  predicate 
)
static

Returns the first element in a parallel sequence that satisfies a specified condition.

Parameters
sourceThe sequence to return an element from.
predicateA function to test each element for a condition.
Template Parameters
TSourceThe type of the elements of source .
Returns
The first element in the sequence that passes the test in the specified predicate function.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionNo element in source satisfies the condition in predicate .

Definition at line 4096 of file ParallelEnumerable.cs.

◆ FirstOrDefault< TSource >() [1/2]

static TSource System.Linq.ParallelEnumerable.FirstOrDefault< TSource > ( this ParallelQuery< TSource >  source)
static

Returns the first element of a parallel sequence, or a default value if the sequence contains no elements.

Parameters
sourceThe sequence to return the first element of.
Template Parameters
TSourceThe type of the elements of source .
Returns
default(TSource) if source is empty; otherwise, the first element in source .
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 4126 of file ParallelEnumerable.cs.

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

static TSource System.Linq.ParallelEnumerable.FirstOrDefault< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, bool >  predicate 
)
static

Returns the first element of the parallel sequence that satisfies a condition or a default value if no such element is found.

Parameters
sourceThe sequence to return an element from.
predicateA function to test each element for a condition.
Template Parameters
TSourceThe type of the elements of source .
Returns
default(TSource) if source is empty or if no element passes the test specified by predicate; otherwise, the first element in source that passes the test specified by predicate.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 4153 of file ParallelEnumerable.cs.

◆ ForAll< TSource >()

static void System.Linq.ParallelEnumerable.ForAll< TSource > ( this ParallelQuery< TSource >  source,
Action< TSource >  action 
)
static

Invokes in parallel the specified action for each element in the source .

Parameters
sourceThe T:System.Linq.ParallelQuery`1 whose elements will be processed by action .
actionAn Action to invoke on each element.
Template Parameters
TSourceThe type of elements of source .
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 332 of file ParallelEnumerable.cs.

◆ GroupBy< TSource, TKey >() [1/2]

static ParallelQuery<IGrouping<TKey, TSource> > System.Linq.ParallelEnumerable.GroupBy< TSource, TKey > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector 
)
static

Groups in parallel the elements of a sequence according to a specified key selector function.

Parameters
sourceAn OrderedParallelQuery{TSource}that contains elements to sort.
keySelectorA function to extract a key from an element.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
Returns
A sequence of groups that are sorted descending according to TKey .
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 1015 of file ParallelEnumerable.cs.

◆ GroupBy< TSource, TKey >() [2/2]

static ParallelQuery<IGrouping<TKey, TSource> > System.Linq.ParallelEnumerable.GroupBy< TSource, TKey > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
IEqualityComparer< TKey >  comparer 
)
static

Groups in parallel the elements of a sequence according to a specified key selector function and compares the keys by using a specified T:System.Collections.Generic.IComparer`1.

Parameters
sourceAn T:System.Linq.OrderedParallelQuery`1 that contains elements to sort.
keySelectorA function to extract a key from an element.
comparerAn T:System.Collections.Generic.IComparer`1 to compare keys.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector >.
Returns
A sequence of groups that are sorted descending according to TKey .
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 1032 of file ParallelEnumerable.cs.

◆ GroupBy< TSource, TKey, TElement >() [1/2]

static ParallelQuery<IGrouping<TKey, TElement> > System.Linq.ParallelEnumerable.GroupBy< TSource, TKey, TElement > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
Func< TSource, TElement >  elementSelector 
)
static

Groups in parallel the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.

Parameters
sourceAn T:System.Linq.OrderedParallelQuery`1 that contains elements to sort.
keySelectorA function to extract a key from an element.
elementSelectorA function to map each source element to an element in an T:System.Linq.IGrouping`2.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
TElementThe type of the elements in the T:System.Linq.IGrouping`2.
Returns
A sequence of groups that are sorted descending according to TKey .
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 1058 of file ParallelEnumerable.cs.

◆ GroupBy< TSource, TKey, TElement >() [2/2]

static ParallelQuery<IGrouping<TKey, TElement> > System.Linq.ParallelEnumerable.GroupBy< TSource, TKey, TElement > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
Func< TSource, TElement >  elementSelector,
IEqualityComparer< TKey >  comparer 
)
static

Groups in parallel the elements of a sequence according to a key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.

Parameters
sourceAn OrderedParallelQuery{TSource}that contains elements to sort.
keySelectorA function to extract a key from an element.
elementSelectorA function to map each source element to an element in an IGrouping.
comparerAn IComparer{TSource} to compare keys.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
TElementThe type of the elements in the IGrouping
Returns
A sequence of groups that are sorted descending according to TKey .
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 1077 of file ParallelEnumerable.cs.

◆ GroupBy< TSource, TKey, TElement, TResult >() [1/2]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.GroupBy< TSource, TKey, TElement, TResult > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
Func< TSource, TElement >  elementSelector,
Func< TKey, IEnumerable< TElement >, TResult >  resultSelector 
)
static

Groups in parallel the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function.

Parameters
sourceA sequence whose elements to group.
keySelectorA function to extract the key for each element.
elementSelectorA function to map each source element to an element in an IGrouping<TKey, TElement>.
resultSelectorA function to create a result value from each group.
Template Parameters
TSourceThe type of the elements of source .
TKeyThe type of the key returned by keySelector .
TElementThe type of the elements in each IGrouping{TKey, TElement}.
TResultThe type of the result value returned by resultSelector .
Returns
A sequence of elements of type TResult where each element represents a projection over a group and its key.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 1156 of file ParallelEnumerable.cs.

◆ GroupBy< TSource, TKey, TElement, TResult >() [2/2]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.GroupBy< TSource, TKey, TElement, TResult > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
Func< TSource, TElement >  elementSelector,
Func< TKey, IEnumerable< TElement >, TResult >  resultSelector,
IEqualityComparer< TKey >  comparer 
)
static

Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function.

Parameters
sourceA sequence whose elements to group.
keySelectorA function to extract the key for each element.
elementSelectorA function to map each source element to an element in an IGrouping{Key, TElement}.
resultSelectorA function to create a result value from each group.
comparerAn T:System.Collections.Generic.IEqualityComparer`1 to compare keys.
Template Parameters
TSourceThe type of the elements of source .
TKeyThe type of the key returned by keySelector .
TElementThe type of the elements in each IGrouping{TKey, TElement}.
TResultThe type of the result value returned by resultSelector .
Returns
A sequence of elements of type TResult where each element represents a projection over a group and its key.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 1182 of file ParallelEnumerable.cs.

◆ GroupBy< TSource, TKey, TResult >() [1/2]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.GroupBy< TSource, TKey, TResult > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
Func< TKey, IEnumerable< TSource >, TResult >  resultSelector 
)
static

Groups in parallel the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.

Parameters
sourceA sequence whose elements to group.
keySelectorA function to extract the key for each element.
resultSelectorA function to create a result value from each group.
Template Parameters
TSourceThe type of the elements of source .
TKeyThe type of the key returned by keySelector .
TResultThe type of the result value returned by resultSelector .
Returns
A sequence of elements of type TResult where each element represents a projection over a group and its key.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 1107 of file ParallelEnumerable.cs.

◆ GroupBy< TSource, TKey, TResult >() [2/2]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.GroupBy< TSource, TKey, TResult > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
Func< TKey, IEnumerable< TSource >, TResult >  resultSelector,
IEqualityComparer< TKey >  comparer 
)
static

Groups in parallel the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The keys are compared by using a specified comparer.

Parameters
sourceA sequence whose elements to group.
keySelectorA function to extract the key for each element.
resultSelectorA function to create a result value from each group.
comparerAn T:System.Collections.Generic.IEqualityComparer`1 to compare keys.
Template Parameters
TSourceThe type of the elements of source .
TKeyThe type of the key returned by keySelector .
TResultThe type of the result value returned by resultSelector .
Returns
A sequence of groups.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 1131 of file ParallelEnumerable.cs.

◆ GroupJoin< TOuter, TInner, TKey, TResult >() [1/4]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.GroupJoin< TOuter, TInner, TKey, TResult > ( this ParallelQuery< TOuter >  outer,
ParallelQuery< TInner >  inner,
Func< TOuter, TKey >  outerKeySelector,
Func< TInner, TKey >  innerKeySelector,
Func< TOuter, IEnumerable< TInner >, TResult >  resultSelector 
)
static

Correlates in parallel the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys.

Parameters
outerThe first sequence to join.
innerThe sequence to join to the first sequence.
outerKeySelectorA function to extract the join key from each element of the first sequence.
innerKeySelectorA function to extract the join key from each element of the second sequence.
resultSelectorA function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence.
Template Parameters
TOuterThe type of the elements of the second sequence.
TInnerThe type of the elements of the first sequence.
TKeyThe type of the keys returned by the key selector functions.
TResultThe type of the result elements.
Returns
A sequence that has elements of type TResult that are obtained by performing a grouped join on two sequences.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 608 of file ParallelEnumerable.cs.

◆ GroupJoin< TOuter, TInner, TKey, TResult >() [2/4]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.GroupJoin< TOuter, TInner, TKey, TResult > ( this ParallelQuery< TOuter >  outer,
IEnumerable< TInner >  inner,
Func< TOuter, TKey >  outerKeySelector,
Func< TInner, TKey >  innerKeySelector,
Func< TOuter, IEnumerable< TInner >, TResult >  resultSelector 
)
static

This GroupJoin overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called.

Parameters
outerThis parameter is not used.
innerThis parameter is not used.
outerKeySelectorThis parameter is not used.
innerKeySelectorThis parameter is not used.
resultSelectorThis parameter is not used.
Template Parameters
TOuterThis type parameter is not used.
TInnerThis type parameter is not used.
TKeyThis type parameter is not used.
TResultThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 630 of file ParallelEnumerable.cs.

◆ GroupJoin< TOuter, TInner, TKey, TResult >() [3/4]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.GroupJoin< TOuter, TInner, TKey, TResult > ( this ParallelQuery< TOuter >  outer,
ParallelQuery< TInner >  inner,
Func< TOuter, TKey >  outerKeySelector,
Func< TInner, TKey >  innerKeySelector,
Func< TOuter, IEnumerable< TInner >, TResult >  resultSelector,
IEqualityComparer< TKey >  comparer 
)
static

Correlates in parallel the elements of two sequences based on key equality and groups the results. A specified T:System.Collections.Generic.IEqualityComparer`1 is used to compare keys.

Parameters
outerThe first sequence to join.
innerThe sequence to join to the first sequence.
outerKeySelectorA function to extract the join key from each element of the first sequence.
innerKeySelectorA function to extract the join key from each element of the second sequence.
resultSelectorA function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence.
comparerAn T:System.Collections.Generic.IEqualityComparer`1 to hash and compare keys.
Template Parameters
TOuterThe type of the elements of the second sequence.
TInnerThe type of the elements of the first sequence.
TKeyThe type of the keys returned by the key selector functions.
TResultThe type of the result elements.
Returns
A sequence that has elements of type TResult that are obtained by performing a grouped join on two sequences.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 652 of file ParallelEnumerable.cs.

◆ GroupJoin< TOuter, TInner, TKey, TResult >() [4/4]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.GroupJoin< TOuter, TInner, TKey, TResult > ( this ParallelQuery< TOuter >  outer,
IEnumerable< TInner >  inner,
Func< TOuter, TKey >  outerKeySelector,
Func< TInner, TKey >  innerKeySelector,
Func< TOuter, IEnumerable< TInner >, TResult >  resultSelector,
IEqualityComparer< TKey >  comparer 
)
static

This GroupJoin overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called.

Parameters
outerThis parameter is not used.
innerThis parameter is not used.
outerKeySelectorThis parameter is not used.
innerKeySelectorThis parameter is not used.
resultSelectorThis parameter is not used.
comparerThis parameter is not used.
Template Parameters
TOuterThis type parameter is not used.
TInnerThis type parameter is not used.
TKeyThis type parameter is not used.
TResultThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.NotSupportedExceptionThe exception that occurs when this method is called.

Definition at line 692 of file ParallelEnumerable.cs.

◆ Intersect< TSource >() [1/4]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Intersect< TSource > ( this ParallelQuery< TSource >  first,
ParallelQuery< TSource >  second 
)
static

Produces the set intersection of two parallel sequences by using the default equality comparer to compare values.

Parameters
firstA sequence whose distinct elements that also appear in second will be returned.
secondA sequence whose distinct elements that also appear in the first sequence will be returned.
Template Parameters
TSourceThe type of the elements of the input sequences.
Returns
A sequence that contains the elements that form the set intersection of two sequences.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3536 of file ParallelEnumerable.cs.

◆ Intersect< TSource >() [2/4]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Intersect< TSource > ( this ParallelQuery< TSource >  first,
IEnumerable< TSource >  second 
)
static

This Intersect overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called.

Parameters
firstThis parameter is not used.
secondThis parameter is not used.
Template Parameters
TSourceThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.NotSupportedExceptionThe exception that occurs when this method is called.

Definition at line 3549 of file ParallelEnumerable.cs.

◆ Intersect< TSource >() [3/4]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Intersect< TSource > ( this ParallelQuery< TSource >  first,
ParallelQuery< TSource >  second,
IEqualityComparer< TSource >  comparer 
)
static

Produces the set intersection of two parallel sequences by using the specified IEqualityComparer{T} to compare values.

Parameters
firstA sequence whose distinct elements that also appear in second will be returned.
secondA sequence whose distinct elements that also appear in the first sequence will be returned.
comparerAn T:System.Collections.Generic.IEqualityComparer`1 to compare values.
Template Parameters
TSourceThe type of the elements of the input sequences.
Returns
A sequence that contains the elements that form the set intersection of two sequences.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3565 of file ParallelEnumerable.cs.

◆ Intersect< TSource >() [4/4]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Intersect< TSource > ( this ParallelQuery< TSource >  first,
IEnumerable< TSource >  second,
IEqualityComparer< TSource >  comparer 
)
static

This Intersect overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called.

Parameters
firstThis parameter is not used.
secondThis parameter is not used.
comparerThis parameter is not used.
Template Parameters
TSourceThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.NotSupportedExceptionThe exception that occurs when this method is called.

Definition at line 3587 of file ParallelEnumerable.cs.

◆ Join< TOuter, TInner, TKey, TResult >() [1/4]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.Join< TOuter, TInner, TKey, TResult > ( this ParallelQuery< TOuter >  outer,
ParallelQuery< TInner >  inner,
Func< TOuter, TKey >  outerKeySelector,
Func< TInner, TKey >  innerKeySelector,
Func< TOuter, TInner, TResult >  resultSelector 
)
static

Correlates in parallel the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.

Parameters
outerThe first sequence to join.
innerThe sequence to join to the first sequence.
outerKeySelectorA function to extract the join key from each element of the first sequence.
innerKeySelectorA function to extract the join key from each element of the second sequence.
resultSelectorA function to create a result element from two matching elements.
Template Parameters
TOuterThe type of the elements of the second sequence.
TInnerThe type of the elements of the first sequence.
TKeyThe type of the keys returned by the key selector functions.
TResultThe type of the result elements.
Returns
A sequence that has elements of type TResult that are obtained by performing an inner join on two sequences.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 503 of file ParallelEnumerable.cs.

◆ Join< TOuter, TInner, TKey, TResult >() [2/4]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.Join< TOuter, TInner, TKey, TResult > ( this ParallelQuery< TOuter >  outer,
IEnumerable< TInner >  inner,
Func< TOuter, TKey >  outerKeySelector,
Func< TInner, TKey >  innerKeySelector,
Func< TOuter, TInner, TResult >  resultSelector 
)
static

This Join overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when invoked.

Parameters
outerThis parameter is not used.
innerThis parameter is not used.
outerKeySelectorThis parameter is not used.
innerKeySelectorThis parameter is not used.
resultSelectorThis parameter is not used.
Template Parameters
TOuterThis type parameter is not used.
TInnerThis type parameter is not used.
TKeyThis type parameter is not used.
TResultThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 525 of file ParallelEnumerable.cs.

◆ Join< TOuter, TInner, TKey, TResult >() [3/4]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.Join< TOuter, TInner, TKey, TResult > ( this ParallelQuery< TOuter >  outer,
ParallelQuery< TInner >  inner,
Func< TOuter, TKey >  outerKeySelector,
Func< TInner, TKey >  innerKeySelector,
Func< TOuter, TInner, TResult >  resultSelector,
IEqualityComparer< TKey >  comparer 
)
static

Correlates in parallel the elements of two sequences based on matching keys. A specified T:System.Collections.Generic.IEqualityComparer`1 is used to compare keys.

Parameters
outerThe first sequence to join.
innerThe sequence to join to the first sequence.
outerKeySelectorA function to extract the join key from each element of the first sequence.
innerKeySelectorA function to extract the join key from each element of the second sequence.
resultSelectorA function to create a result element from two matching elements.
comparerAn T:System.Collections.Generic.IEqualityComparer`1 to hash and compare keys.
Template Parameters
TOuterThe type of the elements of the second sequence.
TInnerThe type of the elements of the first sequence.
TKeyThe type of the keys returned by the key selector functions.
TResultThe type of the result elements.
Returns
A sequence that has elements of type TResult that are obtained by performing an inner join on two sequences.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or action is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 547 of file ParallelEnumerable.cs.

◆ Join< TOuter, TInner, TKey, TResult >() [4/4]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.Join< TOuter, TInner, TKey, TResult > ( this ParallelQuery< TOuter >  outer,
IEnumerable< TInner >  inner,
Func< TOuter, TKey >  outerKeySelector,
Func< TInner, TKey >  innerKeySelector,
Func< TOuter, TInner, TResult >  resultSelector,
IEqualityComparer< TKey >  comparer 
)
static

This Join overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when invoked.

Parameters
outerThis parameter is not used.
innerThis parameter is not used.
outerKeySelectorThis parameter is not used.
innerKeySelectorThis parameter is not used.
resultSelectorThis parameter is not used.
comparerThis parameter is not used.
Template Parameters
TOuterThis type parameter is not used.
TInnerThis type parameter is not used.
TKeyThis type parameter is not used.
TResultThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.NotSupportedExceptionThe exception that occurs when this method is called.

Definition at line 587 of file ParallelEnumerable.cs.

◆ Last< TSource >() [1/2]

static TSource System.Linq.ParallelEnumerable.Last< TSource > ( this ParallelQuery< TSource >  source)
static

Returns the last element of a parallel sequence.

Parameters
sourceThe sequence to return the last element from.
Template Parameters
TSourceThe type of the elements of source .
Returns
The value at the last position in the source sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 4185 of file ParallelEnumerable.cs.

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

static TSource System.Linq.ParallelEnumerable.Last< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, bool >  predicate 
)
static

Returns the last element of a parallel sequence that satisfies a specified condition.

Parameters
sourceThe sequence to return an element from.
predicateA function to test each element for a condition.
Template Parameters
TSourceThe type of the elements of source .
Returns
The last element in the sequence that passes the test in the specified predicate function.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionNo element in source satisfies the condition in predicate .

Definition at line 4213 of file ParallelEnumerable.cs.

◆ LastOrDefault< TSource >() [1/2]

static TSource System.Linq.ParallelEnumerable.LastOrDefault< TSource > ( this ParallelQuery< TSource >  source)
static

Returns the last element of a parallel sequence, or a default value if the sequence contains no elements.

Parameters
sourceThe sequence to return an element from.
Template Parameters
TSourceThe type of the elements of source .
Returns
default() if the source sequence is empty; otherwise, the last element in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 4243 of file ParallelEnumerable.cs.

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

static TSource System.Linq.ParallelEnumerable.LastOrDefault< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, bool >  predicate 
)
static

Returns the last element of a parallel sequence that satisfies a condition, or a default value if no such element is found.

Parameters
sourceThe sequence to return an element from.
predicateA function to test each element for a condition.
Template Parameters
TSourceThe type of the elements of source .
Returns
default() if the sequence is empty or if no elements pass the test in the predicate function; otherwise, the last element that passes the test in the predicate function.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 4270 of file ParallelEnumerable.cs.

◆ LongCount< TSource >() [1/2]

static long System.Linq.ParallelEnumerable.LongCount< TSource > ( this ParallelQuery< TSource >  source)
static

Returns an Int64 that represents the total number of elements in a parallel sequence.

Parameters
sourceA sequence that contains elements to be counted.
Template Parameters
TSourceThe type of the elements of source .
Returns
The number of elements in the input sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe number of elements in source is larger than F:System.Int64.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.
T:System.OverflowExceptionThe computed result is greater than F:System.Int64.MaxValue.

Definition at line 1494 of file ParallelEnumerable.cs.

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

static long System.Linq.ParallelEnumerable.LongCount< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, bool >  predicate 
)
static

Returns an Int64 that represents how many elements in a parallel sequence satisfy a condition.

Parameters
sourceA sequence that contains elements to be counted.
predicateA function to test each element for a condition.
Template Parameters
TSourceThe type of the elements of source .
Returns
A number that represents how many elements in the sequence satisfy the condition in the predicate function.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe number of elements in source is larger than F:System.Int64.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.
T:System.OverflowExceptionThe computed result is greater than F:System.Int64.MaxValue.

Definition at line 1523 of file ParallelEnumerable.cs.

◆ Max() [1/10]

static int System.Linq.ParallelEnumerable.Max ( this ParallelQuery< int >  source)
static

Returns the maximum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the maximum value of.
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2264 of file ParallelEnumerable.cs.

◆ Max() [2/10]

static ? int System.Linq.ParallelEnumerable.Max ( this ParallelQuery< int?>  source)
static

Returns the maximum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the maximum value of.
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2283 of file ParallelEnumerable.cs.

◆ Max() [3/10]

static long System.Linq.ParallelEnumerable.Max ( this ParallelQuery< long >  source)
static

Returns the maximum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the maximum value of.
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2302 of file ParallelEnumerable.cs.

◆ Max() [4/10]

static ? long System.Linq.ParallelEnumerable.Max ( this ParallelQuery< long?>  source)
static

Returns the maximum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the maximum value of.
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2321 of file ParallelEnumerable.cs.

◆ Max() [5/10]

static float System.Linq.ParallelEnumerable.Max ( this ParallelQuery< float >  source)
static

Returns the maximum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the maximum value of.
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2340 of file ParallelEnumerable.cs.

◆ Max() [6/10]

static ? float System.Linq.ParallelEnumerable.Max ( this ParallelQuery< float?>  source)
static

Returns the maximum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the maximum value of.
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2359 of file ParallelEnumerable.cs.

◆ Max() [7/10]

static double System.Linq.ParallelEnumerable.Max ( this ParallelQuery< double >  source)
static

Returns the maximum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the maximum value of.
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2378 of file ParallelEnumerable.cs.

◆ Max() [8/10]

static ? double System.Linq.ParallelEnumerable.Max ( this ParallelQuery< double?>  source)
static

Returns the maximum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the maximum value of.
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2397 of file ParallelEnumerable.cs.

◆ Max() [9/10]

static decimal System.Linq.ParallelEnumerable.Max ( this ParallelQuery< decimal >  source)
static

Returns the maximum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the maximum value of.
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2416 of file ParallelEnumerable.cs.

◆ Max() [10/10]

static ? decimal System.Linq.ParallelEnumerable.Max ( this ParallelQuery< decimal?>  source)
static

Returns the maximum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the maximum value of.
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2435 of file ParallelEnumerable.cs.

◆ Max< TSource >() [1/11]

static TSource System.Linq.ParallelEnumerable.Max< TSource > ( this ParallelQuery< TSource >  source)
static

Returns the maximum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the maximum value of.
Template Parameters
TSourceThe type of elements in the source sequence.
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2455 of file ParallelEnumerable.cs.

◆ Max< TSource >() [2/11]

static int System.Linq.ParallelEnumerable.Max< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, int >  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Parameters
sourceA sequence of values to determine the maximum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2476 of file ParallelEnumerable.cs.

◆ Max< TSource >() [3/11]

static ? int System.Linq.ParallelEnumerable.Max< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, int?>  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Parameters
sourceA sequence of values to determine the maximum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2493 of file ParallelEnumerable.cs.

◆ Max< TSource >() [4/11]

static long System.Linq.ParallelEnumerable.Max< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, long >  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Parameters
sourceA sequence of values to determine the maximum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2510 of file ParallelEnumerable.cs.

◆ Max< TSource >() [5/11]

static ? long System.Linq.ParallelEnumerable.Max< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, long?>  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Parameters
sourceA sequence of values to determine the maximum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2527 of file ParallelEnumerable.cs.

◆ Max< TSource >() [6/11]

static float System.Linq.ParallelEnumerable.Max< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, float >  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Parameters
sourceA sequence of values to determine the maximum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2544 of file ParallelEnumerable.cs.

◆ Max< TSource >() [7/11]

static ? float System.Linq.ParallelEnumerable.Max< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, float?>  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Parameters
sourceA sequence of values to determine the maximum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2561 of file ParallelEnumerable.cs.

◆ Max< TSource >() [8/11]

static double System.Linq.ParallelEnumerable.Max< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, double >  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Parameters
sourceA sequence of values to determine the maximum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2578 of file ParallelEnumerable.cs.

◆ Max< TSource >() [9/11]

static ? double System.Linq.ParallelEnumerable.Max< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, double?>  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Parameters
sourceA sequence of values to determine the maximum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2595 of file ParallelEnumerable.cs.

◆ Max< TSource >() [10/11]

static decimal System.Linq.ParallelEnumerable.Max< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, decimal >  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Parameters
sourceA sequence of values to determine the maximum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2612 of file ParallelEnumerable.cs.

◆ Max< TSource >() [11/11]

static ? decimal System.Linq.ParallelEnumerable.Max< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, decimal?>  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Parameters
sourceA sequence of values to determine the maximum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2629 of file ParallelEnumerable.cs.

◆ Max< TSource, TResult >()

static TResult System.Linq.ParallelEnumerable.Max< TSource, TResult > ( this ParallelQuery< TSource >  source,
Func< TSource, TResult >  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the maximum value.

Parameters
sourceA sequence of values to determine the maximum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
TResultThe type of the value returned by selector .
Returns
The maximum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2647 of file ParallelEnumerable.cs.

◆ Min() [1/10]

static int System.Linq.ParallelEnumerable.Min ( this ParallelQuery< int >  source)
static

Returns the minimum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the minimum value of.
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 1866 of file ParallelEnumerable.cs.

◆ Min() [2/10]

static ? int System.Linq.ParallelEnumerable.Min ( this ParallelQuery< int?>  source)
static

Returns the minimum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the minimum value of.
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 1885 of file ParallelEnumerable.cs.

◆ Min() [3/10]

static long System.Linq.ParallelEnumerable.Min ( this ParallelQuery< long >  source)
static

Returns the minimum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the minimum value of.
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 1904 of file ParallelEnumerable.cs.

◆ Min() [4/10]

static ? long System.Linq.ParallelEnumerable.Min ( this ParallelQuery< long?>  source)
static

Returns the minimum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the minimum value of.
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 1923 of file ParallelEnumerable.cs.

◆ Min() [5/10]

static float System.Linq.ParallelEnumerable.Min ( this ParallelQuery< float >  source)
static

Returns the minimum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the minimum value of.
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 1942 of file ParallelEnumerable.cs.

◆ Min() [6/10]

static ? float System.Linq.ParallelEnumerable.Min ( this ParallelQuery< float?>  source)
static

Returns the minimum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the minimum value of.
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 1961 of file ParallelEnumerable.cs.

◆ Min() [7/10]

static double System.Linq.ParallelEnumerable.Min ( this ParallelQuery< double >  source)
static

Returns the minimum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the minimum value of.
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 1980 of file ParallelEnumerable.cs.

◆ Min() [8/10]

static ? double System.Linq.ParallelEnumerable.Min ( this ParallelQuery< double?>  source)
static

Returns the minimum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the minimum value of.
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 1999 of file ParallelEnumerable.cs.

◆ Min() [9/10]

static decimal System.Linq.ParallelEnumerable.Min ( this ParallelQuery< decimal >  source)
static

Returns the minimum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the minimum value of.
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2018 of file ParallelEnumerable.cs.

◆ Min() [10/10]

static ? decimal System.Linq.ParallelEnumerable.Min ( this ParallelQuery< decimal?>  source)
static

Returns the minimum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the minimum value of.
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2037 of file ParallelEnumerable.cs.

◆ Min< TSource >() [1/11]

static TSource System.Linq.ParallelEnumerable.Min< TSource > ( this ParallelQuery< TSource >  source)
static

Returns the minimum value in a parallel sequence of values.

Parameters
sourceA sequence of values to determine the minimum value of.
Template Parameters
TSourceThe type of elements of source .
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2057 of file ParallelEnumerable.cs.

◆ Min< TSource >() [2/11]

static int System.Linq.ParallelEnumerable.Min< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, int >  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Parameters
sourceA sequence of values to determine the minimum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2078 of file ParallelEnumerable.cs.

◆ Min< TSource >() [3/11]

static ? int System.Linq.ParallelEnumerable.Min< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, int?>  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Parameters
sourceA sequence of values to determine the minimum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2095 of file ParallelEnumerable.cs.

◆ Min< TSource >() [4/11]

static long System.Linq.ParallelEnumerable.Min< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, long >  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Parameters
sourceA sequence of values to determine the minimum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2112 of file ParallelEnumerable.cs.

◆ Min< TSource >() [5/11]

static ? long System.Linq.ParallelEnumerable.Min< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, long?>  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Parameters
sourceA sequence of values to determine the minimum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2129 of file ParallelEnumerable.cs.

◆ Min< TSource >() [6/11]

static float System.Linq.ParallelEnumerable.Min< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, float >  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Parameters
sourceA sequence of values to determine the minimum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2146 of file ParallelEnumerable.cs.

◆ Min< TSource >() [7/11]

static ? float System.Linq.ParallelEnumerable.Min< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, float?>  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Parameters
sourceA sequence of values to determine the minimum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2163 of file ParallelEnumerable.cs.

◆ Min< TSource >() [8/11]

static double System.Linq.ParallelEnumerable.Min< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, double >  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Parameters
sourceA sequence of values to determine the minimum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2180 of file ParallelEnumerable.cs.

◆ Min< TSource >() [9/11]

static ? double System.Linq.ParallelEnumerable.Min< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, double?>  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Parameters
sourceA sequence of values to determine the minimum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2197 of file ParallelEnumerable.cs.

◆ Min< TSource >() [10/11]

static decimal System.Linq.ParallelEnumerable.Min< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, decimal >  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Parameters
sourceA sequence of values to determine the minimum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2214 of file ParallelEnumerable.cs.

◆ Min< TSource >() [11/11]

static ? decimal System.Linq.ParallelEnumerable.Min< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, decimal?>  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Parameters
sourceA sequence of values to determine the minimum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements.

Definition at line 2231 of file ParallelEnumerable.cs.

◆ Min< TSource, TResult >()

static TResult System.Linq.ParallelEnumerable.Min< TSource, TResult > ( this ParallelQuery< TSource >  source,
Func< TSource, TResult >  selector 
)
static

Invokes in parallel a transform function on each element of a sequence and returns the minimum value.

Parameters
sourceA sequence of values to determine the minimum value of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
TResultThe type of the value returned by selector .
Returns
The minimum value in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource contains no elements and TSource is a non-nullable value type.

Definition at line 2249 of file ParallelEnumerable.cs.

◆ OfType< TResult >()

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.OfType< TResult > ( this ParallelQuery  source)
static

Filters the elements of a ParallelQuery based on a specified type.

Parameters
sourceThe sequence whose elements to filter.
Template Parameters
TResultThe type to filter the elements of the sequence on.
Returns
A sequence that contains elements from the input sequence of type .
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 4014 of file ParallelEnumerable.cs.

◆ OrderBy< TSource, TKey >() [1/2]

static OrderedParallelQuery<TSource> System.Linq.ParallelEnumerable.OrderBy< TSource, TKey > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector 
)
static

Sorts in parallel the elements of a sequence in ascending order according to a key.

Parameters
sourceA sequence of values to order.
keySelectorA function to extract a key from an element.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
Returns
An OrderedParallelQuery{TSource} whose elements are sorted according to a key.
Exceptions
T:System.ArgumentNullExceptionsource or keySelector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 819 of file ParallelEnumerable.cs.

◆ OrderBy< TSource, TKey >() [2/2]

static OrderedParallelQuery<TSource> System.Linq.ParallelEnumerable.OrderBy< TSource, TKey > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
IComparer< TKey >  comparer 
)
static

Sorts in parallel the elements of a sequence in ascending order by using a specified comparer.

Parameters
sourceA sequence of values to order.
keySelectorA function to extract a key from an element.
comparerAn IComparer{TKey} to compare keys.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
Returns
An OrderedParallelQuery{TSource} whose elements are sorted according to a key.
Exceptions
T:System.ArgumentNullExceptionsource or keySelector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 844 of file ParallelEnumerable.cs.

◆ OrderByDescending< TSource, TKey >() [1/2]

static OrderedParallelQuery<TSource> System.Linq.ParallelEnumerable.OrderByDescending< TSource, TKey > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector 
)
static

Sorts in parallel the elements of a sequence in descending order according to a key.

Parameters
sourceA sequence of values to order.
keySelectorA function to extract a key from an element.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
Returns
An OrderedParallelQuery{TSource} whose elements are sorted descending according to a key.
Exceptions
T:System.ArgumentNullExceptionsource or keySelector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 868 of file ParallelEnumerable.cs.

◆ OrderByDescending< TSource, TKey >() [2/2]

static OrderedParallelQuery<TSource> System.Linq.ParallelEnumerable.OrderByDescending< TSource, TKey > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
IComparer< TKey >  comparer 
)
static

Sorts the elements of a sequence in descending order by using a specified comparer.

Parameters
sourceA sequence of values to order.
keySelectorA function to extract a key from an element.
comparerAn IComparer{TKey} to compare keys.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
Returns
An OrderedParallelQuery{TSource} whose elements are sorted descending according to a key.
Exceptions
T:System.ArgumentNullExceptionsource or KeySelector is a null reference (Nothing in Visual Basic)..
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 893 of file ParallelEnumerable.cs.

◆ Range()

static ParallelQuery<int> System.Linq.ParallelEnumerable.Range ( int  start,
int  count 
)
static

Generates a parallel sequence of integral numbers within a specified range.

Parameters
startThe value of the first integer in the sequence.
countThe number of sequential integers to generate.
Returns
An IEnumerable<Int32> in C# or IEnumerable(Of Int32) in Visual Basic that contains a range of sequential integral numbers.
Exceptions
T:System.ArgumentOutOfRangeExceptioncount is less than 0 -or- start + count - 1 is larger than F:System.Int32.MaxValue.

Definition at line 288 of file ParallelEnumerable.cs.

◆ Repeat< TResult >()

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.Repeat< TResult > ( TResult  element,
int  count 
)
static

Generates a parallel sequence that contains one repeated value.

Parameters
elementThe value to be repeated.
countThe number of times to repeat the value in the generated sequence.
Template Parameters
TResultThe type of the value to be repeated in the result sequence.
Returns
A sequence that contains a repeated value.
Exceptions
T:System.ArgumentOutOfRangeExceptioncount is less than 0.

Definition at line 305 of file ParallelEnumerable.cs.

◆ Reverse< TSource >()

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Reverse< TSource > ( this ParallelQuery< TSource >  source)
static

Inverts the order of the elements in a parallel sequence.

Parameters
sourceA sequence of values to reverse.
Template Parameters
TSourceThe type of the elements of source .
Returns
A sequence whose elements correspond to those of the input sequence in reverse order.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3996 of file ParallelEnumerable.cs.

◆ Select< TSource, TResult >() [1/2]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.Select< TSource, TResult > ( this ParallelQuery< TSource >  source,
Func< TSource, TResult >  selector 
)
static

Projects in parallel each element of a sequence into a new form.

Parameters
sourceA sequence of values to invoke a transform function on.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of the elements of source .
TResultThe type of elements resturned by selector.
Returns
A sequence whose elements are the result of invoking the transform function on each element of source .
Exceptions
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 403 of file ParallelEnumerable.cs.

◆ Select< TSource, TResult >() [2/2]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.Select< TSource, TResult > ( this ParallelQuery< TSource >  source,
Func< TSource, int, TResult >  selector 
)
static

Projects in parallel each element of a sequence into a new form by incorporating the element's index.

Parameters
sourceA sequence of values to invoke a transform function on.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of the elements of source .
TResultThe type of elements resturned by selector.
Returns
A sequence whose elements are the result of invoking the transform function on each element of source , based on the index supplied to selector .
Exceptions
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.OverflowExceptionMore than F:System.Int32.MaxValue elements are enumerated by the query. This condition might occur in streaming scenarios.

Definition at line 428 of file ParallelEnumerable.cs.

◆ SelectMany< TSource, TCollection, TResult >() [1/2]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.SelectMany< TSource, TCollection, TResult > ( this ParallelQuery< TSource >  source,
Func< TSource, IEnumerable< TCollection >>  collectionSelector,
Func< TSource, TCollection, TResult >  resultSelector 
)
static

Projects each element of a sequence to an T:System.Collections.Generic.IEnumerable`1, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein.

Parameters
sourceA sequence of values to project.
collectionSelectorA transform function to apply to each source element; the second parameter of the function represents the index of the source element.
resultSelectorA function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence.
Template Parameters
TSourceThe type of the intermediate elements collected by collectionSelector .
TCollectionThe type of elements of source .
TResultThe type of elements in the result sequence.
Returns
A sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of source based on the index supplied to collectionSelector , and then mapping each of those sequence elements and their corresponding source element to a result element.
Exceptions
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.OverflowExceptionMore than F:System.Int32.MaxValue elements are enumerated by the query.
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 760 of file ParallelEnumerable.cs.

◆ SelectMany< TSource, TCollection, TResult >() [2/2]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.SelectMany< TSource, TCollection, TResult > ( this ParallelQuery< TSource >  source,
Func< TSource, int, IEnumerable< TCollection >>  collectionSelector,
Func< TSource, TCollection, TResult >  resultSelector 
)
static

Projects each element of a sequence to an T:System.Collections.Generic.IEnumerable`1, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. The index of each source element is used in the intermediate projected form of that element.

Parameters
sourceA sequence of values to project.
collectionSelectorA transform function to apply to each source element; the second parameter of the function represents the index of the source element.
resultSelectorA function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence.
Template Parameters
TSourceThe type of the intermediate elements collected by collectionSelector .
TCollectionThe type of elements of source .
TResultThe type of elements to return.
Returns
A sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of source based on the index supplied to collectionSelector , and then mapping each of those sequence elements and their corresponding source element to a result element.
Exceptions
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.OverflowExceptionMore than F:System.Int32.MaxValue elements are enumerated by the query.
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 791 of file ParallelEnumerable.cs.

◆ SelectMany< TSource, TResult >() [1/2]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.SelectMany< TSource, TResult > ( this ParallelQuery< TSource >  source,
Func< TSource, IEnumerable< TResult >>  selector 
)
static

Projects in parallel each element of a sequence to an T:System.Collections.Generic.IEnumerable`1 and flattens the resulting sequences into one sequence.

Parameters
sourceA sequence of values to project.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
TResultThe type of the elements of the sequence returned by selector.
Returns
A sequence whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.
Exceptions
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 708 of file ParallelEnumerable.cs.

◆ SelectMany< TSource, TResult >() [2/2]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.SelectMany< TSource, TResult > ( this ParallelQuery< TSource >  source,
Func< TSource, int, IEnumerable< TResult >>  selector 
)
static

Projects in parallel each element of a sequence to an T:System.Collections.Generic.IEnumerable`1, and flattens the resulting sequences into one sequence. The index of each source element is used in the projected form of that element.

Parameters
sourceA sequence of values to project.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
TResultThe type of the elements of the sequence returned by selector.
Returns
A sequence whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.
Exceptions
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.OverflowExceptionMore than F:System.Int32.MaxValue elements are enumerated by the query.
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 733 of file ParallelEnumerable.cs.

◆ SequenceEqual< TSource >() [1/4]

static bool System.Linq.ParallelEnumerable.SequenceEqual< TSource > ( this ParallelQuery< TSource >  first,
ParallelQuery< TSource >  second 
)
static

Determines whether two parallel sequences are equal by comparing the elements by using the default equality comparer for their type.

Parameters
firstA sequence to compare to second.
secondA sequence to compare to the first input sequence.
Template Parameters
TSourceThe type of the elements of the input sequences.
Returns
true if the two source sequences are of equal length and their corresponding elements are equal according to the default equality comparer for their type; otherwise, false.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionfirst or second is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3305 of file ParallelEnumerable.cs.

◆ SequenceEqual< TSource >() [2/4]

static bool System.Linq.ParallelEnumerable.SequenceEqual< TSource > ( this ParallelQuery< TSource >  first,
IEnumerable< TSource >  second 
)
static

This SequenceEqual overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called.

Parameters
firstThis parameter is not used.
secondThis parameter is not used.
Template Parameters
TSourceThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.NotSupportedExceptionThrown every time this method is called.

Definition at line 3326 of file ParallelEnumerable.cs.

◆ SequenceEqual< TSource >() [3/4]

static bool System.Linq.ParallelEnumerable.SequenceEqual< TSource > ( this ParallelQuery< TSource >  first,
ParallelQuery< TSource >  second,
IEqualityComparer< TSource >  comparer 
)
static

Determines whether two parallel sequences are equal by comparing their elements by using a specified IEqualityComparer{T}.

Parameters
firstA sequence to compare to second .
secondA sequence to compare to the first input sequence.
comparerAn T:System.Collections.Generic.IEqualityComparer`1 to use to compare elements.
Template Parameters
TSourceThe type of the elements of the input sequences.
Returns
true if the two source sequences are of equal length and their corresponding elements are equal according to the default equality comparer for their type; otherwise, false.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionfirst or second is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3342 of file ParallelEnumerable.cs.

◆ SequenceEqual< TSource >() [4/4]

static bool System.Linq.ParallelEnumerable.SequenceEqual< TSource > ( this ParallelQuery< TSource >  first,
IEnumerable< TSource >  second,
IEqualityComparer< TSource >  comparer 
)
static

This SequenceEqual overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called.

Parameters
firstThis parameter is not used.
secondThis parameter is not used.
comparerThis parameter is not used.
Template Parameters
TSourceThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.NotSupportedExceptionThrown every time this method is called.

Definition at line 3419 of file ParallelEnumerable.cs.

◆ Single< TSource >() [1/2]

static TSource System.Linq.ParallelEnumerable.Single< TSource > ( this ParallelQuery< TSource >  source)
static

Returns the only element of a parallel sequence, and throws an exception if there is not exactly one element in the sequence.

Parameters
sourceThe sequence to return the single element of.
Template Parameters
TSourceThe type of the elements of source .
Returns
The single element of the input sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionThe input sequence contains more than one element. -or- The input sequence is empty.

Definition at line 4301 of file ParallelEnumerable.cs.

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

static TSource System.Linq.ParallelEnumerable.Single< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, bool >  predicate 
)
static

Returns the only element of a parallel sequence that satisfies a specified condition, and throws an exception if more than one such element exists.

Parameters
sourceThe sequence to return the single element of.
predicateA function to test an element for a condition.
Template Parameters
TSourceThe type of the elements of source .
Returns
The single element of the input sequence that satisfies a condition.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionNo element satisfies the condition in predicate . -or- More than one element satisfies the condition in predicate .

Definition at line 4321 of file ParallelEnumerable.cs.

◆ SingleOrDefault< TSource >() [1/2]

static TSource System.Linq.ParallelEnumerable.SingleOrDefault< TSource > ( this ParallelQuery< TSource >  source)
static

Returns the only element of a parallel sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.

Parameters
sourceThe sequence to return the single element of.
Template Parameters
TSourceThe type of the elements of source .
Returns
The single element of the input sequence, or default() if the sequence contains no elements.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 4343 of file ParallelEnumerable.cs.

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

static TSource System.Linq.ParallelEnumerable.SingleOrDefault< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, bool >  predicate 
)
static

Returns the only element of a parallel sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.

Parameters
sourceThe sequence to return the single element of.
predicateA function to test an element for a condition.
Template Parameters
TSourceThe type of the elements of source .
Returns
The single element of the input sequence that satisfies the condition, or default() if no such element is found.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.
T:System.InvalidOperationExceptionsource is empty or multiple elements are returned.

Definition at line 4364 of file ParallelEnumerable.cs.

◆ Skip< TSource >()

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Skip< TSource > ( this ParallelQuery< TSource >  source,
int  count 
)
static

Bypasses a specified number of elements in a parallel sequence and then returns the remaining elements.

Parameters
sourceThe sequence to return elements from.
countThe number of elements to skip before returning the remaining elements.
Template Parameters
TSourceThe type of elements of source .
Returns
A sequence that contains the elements that occur after the specified index in the input sequence.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.OverflowExceptionCount is greater than F:System.Int32.MaxValue
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3201 of file ParallelEnumerable.cs.

◆ SkipWhile< TSource >() [1/2]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.SkipWhile< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, bool >  predicate 
)
static

Bypasses elements in a parallel sequence as long as a specified condition is true and then returns the remaining elements.

Parameters
sourceThe sequence to return elements from.
predicateA function to test each element for a condition.
Template Parameters
TSourceThe type of elements of source .
Returns
A sequence that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate.
Exceptions
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3224 of file ParallelEnumerable.cs.

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

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.SkipWhile< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, int, bool >  predicate 
)
static

Bypasses elements in a parallel sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.

Parameters
sourceThe sequence to return elements from.
predicateA function to test each source element for a condition; the second parameter of the function represents the index of the source element.
Template Parameters
TSourceThe type of elements of source .
Returns
A sequence that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate.
Exceptions
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.OverflowExceptionMore than F:System.Int32.MaxValue elements are enumerated by the query.
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3248 of file ParallelEnumerable.cs.

◆ Sum() [1/10]

static int System.Linq.ParallelEnumerable.Sum ( this ParallelQuery< int >  source)
static

Computes in parallel the sum of a sequence of values.

Parameters
sourceA sequence of values to calculate the sum of.
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Int32.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1544 of file ParallelEnumerable.cs.

◆ Sum() [2/10]

static ? int System.Linq.ParallelEnumerable.Sum ( this ParallelQuery< int?>  source)
static

Computes in parallel the sum of a sequence of values.

Parameters
sourceA sequence of values to calculate the sum of.
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Int32.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1561 of file ParallelEnumerable.cs.

◆ Sum() [3/10]

static long System.Linq.ParallelEnumerable.Sum ( this ParallelQuery< long >  source)
static

Computes in parallel the sum of a sequence of values.

Parameters
sourceA sequence of values to calculate the sum of.
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Int64.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1578 of file ParallelEnumerable.cs.

◆ Sum() [4/10]

static ? long System.Linq.ParallelEnumerable.Sum ( this ParallelQuery< long?>  source)
static

Computes in parallel the sum of a sequence of values.

Parameters
sourceA sequence of values to calculate the sum of.
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Int64.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1595 of file ParallelEnumerable.cs.

◆ Sum() [5/10]

static float System.Linq.ParallelEnumerable.Sum ( this ParallelQuery< float >  source)
static

Computes in parallel the sum of a sequence of values.

Parameters
sourceA sequence of values to calculate the sum of.
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Single.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1612 of file ParallelEnumerable.cs.

◆ Sum() [6/10]

static ? float System.Linq.ParallelEnumerable.Sum ( this ParallelQuery< float?>  source)
static

Computes in parallel the sum of a sequence of values.

Parameters
sourceA sequence of values to calculate the sum of.
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Single.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1629 of file ParallelEnumerable.cs.

◆ Sum() [7/10]

static double System.Linq.ParallelEnumerable.Sum ( this ParallelQuery< double >  source)
static

Computes in parallel the sum of a sequence of values.

Parameters
sourceA sequence of values to calculate the sum of.
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Double.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1646 of file ParallelEnumerable.cs.

◆ Sum() [8/10]

static ? double System.Linq.ParallelEnumerable.Sum ( this ParallelQuery< double?>  source)
static

Computes in parallel the sum of a sequence of values.

Parameters
sourceA sequence of values to calculate the sum of.
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Double.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1663 of file ParallelEnumerable.cs.

◆ Sum() [9/10]

static decimal System.Linq.ParallelEnumerable.Sum ( this ParallelQuery< decimal >  source)
static

Computes in parallel the sum of a sequence of values.

Parameters
sourceA sequence of values to calculate the sum of.
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Decimal.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1680 of file ParallelEnumerable.cs.

◆ Sum() [10/10]

static ? decimal System.Linq.ParallelEnumerable.Sum ( this ParallelQuery< decimal?>  source)
static

Computes in parallel the sum of a sequence of values.

Parameters
sourceA sequence of values to calculate the sum of.
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Decimal.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1697 of file ParallelEnumerable.cs.

◆ Sum< TSource >() [1/10]

static int System.Linq.ParallelEnumerable.Sum< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, int >  selector 
)
static

Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values to calculate the sum of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements in the source sequence.
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Int32.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1716 of file ParallelEnumerable.cs.

◆ Sum< TSource >() [2/10]

static ? int System.Linq.ParallelEnumerable.Sum< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, int?>  selector 
)
static

Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values to calculate the sum of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Int32.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1731 of file ParallelEnumerable.cs.

◆ Sum< TSource >() [3/10]

static long System.Linq.ParallelEnumerable.Sum< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, long >  selector 
)
static

Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values to calculate the sum of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Int64.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1746 of file ParallelEnumerable.cs.

◆ Sum< TSource >() [4/10]

static ? long System.Linq.ParallelEnumerable.Sum< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, long?>  selector 
)
static

Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values to calculate the sum of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Int64.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1761 of file ParallelEnumerable.cs.

◆ Sum< TSource >() [5/10]

static float System.Linq.ParallelEnumerable.Sum< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, float >  selector 
)
static

Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values to calculate the sum of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Single.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1776 of file ParallelEnumerable.cs.

◆ Sum< TSource >() [6/10]

static ? float System.Linq.ParallelEnumerable.Sum< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, float?>  selector 
)
static

Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values to calculate the sum of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Single.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1791 of file ParallelEnumerable.cs.

◆ Sum< TSource >() [7/10]

static double System.Linq.ParallelEnumerable.Sum< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, double >  selector 
)
static

Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values to calculate the sum of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Double.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1806 of file ParallelEnumerable.cs.

◆ Sum< TSource >() [8/10]

static ? double System.Linq.ParallelEnumerable.Sum< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, double?>  selector 
)
static

Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values to calculate the sum of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Double.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1821 of file ParallelEnumerable.cs.

◆ Sum< TSource >() [9/10]

static decimal System.Linq.ParallelEnumerable.Sum< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, decimal >  selector 
)
static

Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values to calculate the sum of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Decimal.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1836 of file ParallelEnumerable.cs.

◆ Sum< TSource >() [10/10]

static ? decimal System.Linq.ParallelEnumerable.Sum< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, decimal?>  selector 
)
static

Computes in parallel the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Parameters
sourceA sequence of values to calculate the sum of.
selectorA transform function to apply to each element.
Template Parameters
TSourceThe type of elements of source .
Returns
The sum of the projected values in the sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or selector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionThe sum is larger than F:System.Decimal.MaxValue. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 1851 of file ParallelEnumerable.cs.

◆ Take< TSource >()

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Take< TSource > ( this ParallelQuery< TSource >  source,
int  count 
)
static

Returns a specified number of contiguous elements from the start of a parallel sequence.

Parameters
sourceThe sequence to return elements from.
countThe number of elements to return.
Template Parameters
TSourceThe type of elements of source .
Returns
A sequence that contains the specified number of elements from the start of the input sequence.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3130 of file ParallelEnumerable.cs.

◆ TakeWhile< TSource >() [1/2]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.TakeWhile< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, bool >  predicate 
)
static

Returns elements from a parallel sequence as long as a specified condition is true.

Parameters
sourceThe sequence to return elements from.
predicateA function to test each element for a condition.
Template Parameters
TSourceThe type of elements of source .
Returns
A sequence that contains the elements from the input sequence that occur before the element at which the test no longer passes.
Exceptions
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3153 of file ParallelEnumerable.cs.

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

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.TakeWhile< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, int, bool >  predicate 
)
static

Returns elements from a parallel sequence as long as a specified condition is true. The element's index is used in the logic of the predicate function.

Parameters
sourceThe sequence to return elements from.
predicateA function to test each source element for a condition; the second parameter of the function represents the index of the source element.
Template Parameters
TSourceThe type of elements of source .
Returns
A sequence that contains elements from the input sequence that occur before the element at which the test no longer passes.
Exceptions
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.OverflowExceptionMore than F:System.Int32.MaxValue elements are enumerated by this query.
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3177 of file ParallelEnumerable.cs.

◆ ThenBy< TSource, TKey >() [1/2]

static OrderedParallelQuery<TSource> System.Linq.ParallelEnumerable.ThenBy< TSource, TKey > ( this OrderedParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector 
)
static

Performs in parallel a subsequent ordering of the elements in a sequence in ascending order according to a key.

Parameters
sourceAn OrderedParallelQuery{TSource} that contains elements to sort.
keySelectorA function to extract a key from an element.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
Returns
An OrderedParallelQuery{TSource} whose elements are sorted according to a key.
Exceptions
T:System.ArgumentNullExceptionsource or keySelector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 917 of file ParallelEnumerable.cs.

◆ ThenBy< TSource, TKey >() [2/2]

static OrderedParallelQuery<TSource> System.Linq.ParallelEnumerable.ThenBy< TSource, TKey > ( this OrderedParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
IComparer< TKey >  comparer 
)
static

Performs in parallel a subsequent ordering of the elements in a sequence in ascending order by using a specified comparer.

Parameters
sourceAn OrderedParallelQuery{TSource} that contains elements to sort.
keySelectorA function to extract a key from an element.
comparerAn IComparer{TKey} to compare keys.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
Returns
An OrderedParallelQuery{TSource} whose elements are sorted according to a key.
Exceptions
T:System.ArgumentNullExceptionsource or keySelector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 942 of file ParallelEnumerable.cs.

◆ ThenByDescending< TSource, TKey >() [1/2]

static OrderedParallelQuery<TSource> System.Linq.ParallelEnumerable.ThenByDescending< TSource, TKey > ( this OrderedParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector 
)
static

Performs in parallel a subsequent ordering of the elements in a sequence in descending order, according to a key.

Parameters
sourceAn OrderedParallelQuery{TSource} that contains elements to sort.
keySelectorA function to extract a key from an element.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
Returns
A sequence whose elements are sorted descending according to a key.
Exceptions
T:System.ArgumentNullExceptionsource or keySelector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 966 of file ParallelEnumerable.cs.

◆ ThenByDescending< TSource, TKey >() [2/2]

static OrderedParallelQuery<TSource> System.Linq.ParallelEnumerable.ThenByDescending< TSource, TKey > ( this OrderedParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
IComparer< TKey >  comparer 
)
static

Performs in parallel a subsequent ordering of the elements in a sequence in descending order by using a specified comparer.

Parameters
sourceAn OrderedParallelQuery{TSource} that contains elements to sort.
keySelectorA function to extract a key from an element.
comparerAn IComparer{TKey} to compare keys.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
Returns
A sequence whose elements are sorted descending according to a key.
Exceptions
T:System.ArgumentNullExceptionsource or keySelector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 991 of file ParallelEnumerable.cs.

◆ ToArray< TSource >()

static TSource [] System.Linq.ParallelEnumerable.ToArray< TSource > ( this ParallelQuery< TSource >  source)
static

Creates an array from a T:System.Linq.ParallelQuery`1.

Parameters
sourceA sequence to create an array from.
Template Parameters
TSourceThe type of the elements of source .
Returns
An array that contains the elements from the input sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3680 of file ParallelEnumerable.cs.

◆ ToDictionary< TSource, TKey >() [1/2]

static Dictionary<TKey, TSource> System.Linq.ParallelEnumerable.ToDictionary< TSource, TKey > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector 
)
static

Creates a T:System.Collections.Generic.Dictionary`2 from a T:System.Linq.ParallelQuery`1 according to a specified key selector function.

Parameters
sourceA sequence to create a T:System.Collections.Generic.Dictionary`2 from.
keySelectorA function to extract a key from each element.
Template Parameters
TSourceThe type of the elements of source .
TKeyThe type of the key returned by keySelector .
Returns
A T:System.Collections.Generic.Dictionary`2 that contains keys and values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or keySelector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionkeySelector produces a key that is a null reference (Nothing in Visual Basic). -or- keySelector produces duplicate keys for two elements. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 3746 of file ParallelEnumerable.cs.

◆ ToDictionary< TSource, TKey >() [2/2]

static Dictionary<TKey, TSource> System.Linq.ParallelEnumerable.ToDictionary< TSource, TKey > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
IEqualityComparer< TKey >  comparer 
)
static

Creates a T:System.Collections.Generic.Dictionary`2 from a T:System.Linq.ParallelQuery`1 according to a specified key selector function and key comparer.

Parameters
sourceA sequence to create a T:System.Collections.Generic.Dictionary`2 from.
keySelectorA function to extract a key from each element.
comparerAn T:System.Collections.Generic.IEqualityComparer`1 to compare keys.
Template Parameters
TSourceThe type of the elements of source .
TKeyThe type of the key returned by keySelector .
Returns
A T:System.Collections.Generic.Dictionary`2 that contains keys and values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or keySelector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionkeySelector produces a key that is a null reference (Nothing in Visual Basic). -or- keySelector produces duplicate keys for two elements. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 3764 of file ParallelEnumerable.cs.

◆ ToDictionary< TSource, TKey, TElement >() [1/2]

static Dictionary<TKey, TElement> System.Linq.ParallelEnumerable.ToDictionary< TSource, TKey, TElement > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
Func< TSource, TElement >  elementSelector 
)
static

Creates a T:System.Collections.Generic.Dictionary`2 from a T:System.Linq.ParallelQuery`1 according to specified key selector and element selector functions.

Parameters
sourceA sequence to create a T:System.Collections.Generic.Dictionary`2 from.
keySelectorA function to extract a key from each element.
elementSelectorA transform function to produce a result element value from each element.
Template Parameters
TSourceThe type of the elements of source .
TKeyThe type of the key returned by keySelector .
TElementThe type of the value returned by elementSelector .
Returns
A T:System.Collections.Generic.Dictionary`2 that contains values of type TElement selected from the input sequence
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or keySelector or elementSelector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionkeySelector produces a key that is a null reference (Nothing in Visual Basic). -or- keySelector produces duplicate keys for two elements. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 3814 of file ParallelEnumerable.cs.

◆ ToDictionary< TSource, TKey, TElement >() [2/2]

static Dictionary<TKey, TElement> System.Linq.ParallelEnumerable.ToDictionary< TSource, TKey, TElement > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
Func< TSource, TElement >  elementSelector,
IEqualityComparer< TKey >  comparer 
)
static

Creates a T:System.Collections.Generic.Dictionary`2 from a T:System.Linq.ParallelQuery`1 according to a specified key selector function, a comparer, and an element selector function.

Parameters
sourceA sequence to create a T:System.Collections.Generic.Dictionary`2 from.
keySelectorA function to extract a key from each element.
elementSelectorA transform function to produce a result element value from each element.
comparerAn T:System.Collections.Generic.IEqualityComparer`1 to compare keys.
Template Parameters
TSourceThe type of the elements of source .
TKeyThe type of the key returned by keySelector .
TElementThe type of the value returned by elementSelector .
Returns
A T:System.Collections.Generic.Dictionary`2 that contains values of type TElement selected from the input sequence
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or keySelector or elementSelector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionkeySelector produces a key that is a null reference (Nothing in Visual Basic). -or- keySelector produces duplicate keys for two elements. -or- One or more exceptions occurred during the evaluation of the query.

Definition at line 3834 of file ParallelEnumerable.cs.

◆ ToList< TSource >()

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

Creates a T:System.Collections.Generic.List`1 from an T:System.Linq.ParallelQuery`1.

Parameters
sourceA sequence to create a T:System.Collections.Generic.List`1 from.
Template Parameters
TSourceThe type of the elements of source .
Returns
A T:System.Collections.Generic.List`1 that contains elements from the input sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3703 of file ParallelEnumerable.cs.

◆ ToLookup< TSource, TKey >() [1/2]

static ILookup<TKey, TSource> System.Linq.ParallelEnumerable.ToLookup< TSource, TKey > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector 
)
static

Creates an T:System.Linq.ILookup`2 from a T:System.Linq.ParallelQuery`1 according to a specified key selector function.

Parameters
sourceThe sequence to create a T:System.Linq.ILookup`2 from.
keySelectorA function to extract a key from each element.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
Returns
A T:System.Linq.ILookup`2 that contains keys and values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or keySelector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3884 of file ParallelEnumerable.cs.

◆ ToLookup< TSource, TKey >() [2/2]

static ILookup<TKey, TSource> System.Linq.ParallelEnumerable.ToLookup< TSource, TKey > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
IEqualityComparer< TKey >  comparer 
)
static

Creates an T:System.Linq.ILookup`2 from a T:System.Linq.ParallelQuery`1 according to a specified key selector function and key comparer.

Parameters
sourceThe sequence to create a T:System.Linq.ILookup`2 from.
keySelectorA function to extract a key from each element.
comparerAn T:System.Collections.Generic.IEqualityComparer`1 to compare keys.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
Returns
A T:System.Linq.ILookup`2 that contains keys and values.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or keySelector or is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3901 of file ParallelEnumerable.cs.

◆ ToLookup< TSource, TKey, TElement >() [1/2]

static ILookup<TKey, TElement> System.Linq.ParallelEnumerable.ToLookup< TSource, TKey, TElement > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
Func< TSource, TElement >  elementSelector 
)
static

Creates an T:System.Linq.ILookup`2 from a T:System.Linq.ParallelQuery`1 according to specified key selector and element selector functions.

Parameters
sourceThe sequence to create a T:System.Linq.ILookup`2 from.
keySelectorA function to extract a key from each element.
elementSelectorA transform function to produce a result element value from each element.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
TElementThe type of the value returned by elementSelector .
Returns
A T:System.Linq.ILookup`2 that contains values of type TElement selected from the input sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or keySelector or elementSelector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3939 of file ParallelEnumerable.cs.

◆ ToLookup< TSource, TKey, TElement >() [2/2]

static ILookup<TKey, TElement> System.Linq.ParallelEnumerable.ToLookup< TSource, TKey, TElement > ( this ParallelQuery< TSource >  source,
Func< TSource, TKey >  keySelector,
Func< TSource, TElement >  elementSelector,
IEqualityComparer< TKey >  comparer 
)
static

Creates an T:System.Linq.ILookup`2 from a T:System.Linq.ParallelQuery`1 according to a specified key selector function, a comparer and an element selector function.

Parameters
sourceThe sequence to create a T:System.Linq.ILookup`2 from.
keySelectorA function to extract a key from each element.
elementSelectorA transform function to produce a result element value from each element.
comparerAn T:System.Collections.Generic.IEqualityComparer`1 to compare keys.
Template Parameters
TSourceThe type of elements of source .
TKeyThe type of the key returned by keySelector .
TElementThe type of the value returned by elementSelector .
Returns
A Lookup<(Of <(TKey, TElement>)>) that contains values of type TElement selected from the input sequence.
Exceptions
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.ArgumentNullExceptionsource or keySelector or elementSelector is a null reference (Nothing in Visual Basic).
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3958 of file ParallelEnumerable.cs.

◆ Union< TSource >() [1/4]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Union< TSource > ( this ParallelQuery< TSource >  first,
ParallelQuery< TSource >  second 
)
static

Produces the set union of two parallel sequences by using the default equality comparer.

Parameters
firstA sequence whose distinct elements form the first set for the union.
secondA sequence whose distinct elements form the second set for the union.
Template Parameters
TSourceThe type of the elements of the input sequences.
Returns
A sequence that contains the elements from both input sequences, excluding duplicates.
Exceptions
T:System.ArgumentNullExceptionfirst or second is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3466 of file ParallelEnumerable.cs.

◆ Union< TSource >() [2/4]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Union< TSource > ( this ParallelQuery< TSource >  first,
IEnumerable< TSource >  second 
)
static

This Union overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called.

Parameters
firstThis parameter is not used.
secondThis parameter is not used.
Template Parameters
TSourceThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.NotSupportedExceptionThe exception that occurs when this method is called.
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3481 of file ParallelEnumerable.cs.

◆ Union< TSource >() [3/4]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Union< TSource > ( this ParallelQuery< TSource >  first,
ParallelQuery< TSource >  second,
IEqualityComparer< TSource >  comparer 
)
static

Produces the set union of two parallel sequences by using a specified IEqualityComparer{T}.

Parameters
firstA sequence whose distinct elements form the first set for the union.
secondA sequence whose distinct elements form the second set for the union.
comparerAn T:System.Collections.Generic.IEqualityComparer`1 to compare values.
Template Parameters
TSourceThe type of the elements of the input sequences.
Returns
A sequence that contains the elements from both input sequences, excluding duplicates.
Exceptions
T:System.ArgumentNullExceptionfirst or second is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3497 of file ParallelEnumerable.cs.

◆ Union< TSource >() [4/4]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Union< TSource > ( this ParallelQuery< TSource >  first,
IEnumerable< TSource >  second,
IEqualityComparer< TSource >  comparer 
)
static

This Union overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when called.

Parameters
firstThis parameter is not used.
secondThis parameter is not used.
comparerThis parameter is not used.
Template Parameters
TSourceThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.NotSupportedExceptionThe exception that occurs when this method is called.
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 3521 of file ParallelEnumerable.cs.

◆ Where< TSource >() [1/2]

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Where< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, bool >  predicate 
)
static

Filters in parallel a sequence of values based on a predicate.

Parameters
sourceA sequence to filter.
predicateA function to test each element for a condition.
Template Parameters
TSourceThe type of the elements of source.
Returns
A sequence that contains elements from the input sequence that satisfy the condition.
Exceptions
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 355 of file ParallelEnumerable.cs.

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

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.Where< TSource > ( this ParallelQuery< TSource >  source,
Func< TSource, int, bool >  predicate 
)
static

Filters in parallel a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.

Parameters
sourceA sequence to filter.
predicateA function to test each element for a condition.
Template Parameters
TSourceThe type of the elements of source.
Returns
A sequence that contains elements from the input sequence that satisfy the condition.
Exceptions
T:System.ArgumentNullExceptionsource or predicate is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.OverflowExceptionMore than F:System.Int32.MaxValue elements are enumerated by the query.
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 379 of file ParallelEnumerable.cs.

◆ WithCancellation< TSource >()

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.WithCancellation< TSource > ( this ParallelQuery< TSource >  source,
CancellationToken  cancellationToken 
)
static

Sets the T:System.Threading.CancellationToken to associate with the query.

Parameters
sourceA ParallelQuery on which to set the option.
cancellationTokenA cancellation token.
Template Parameters
TSourceThe type of elements of source .
Returns
ParallelQuery representing the same query as source, but with the registered cancellation token.
Exceptions
T:System.ObjectDisposedExceptionThe T:System.Threading.CancellationTokenSource associated with the cancellationToken has been disposed.
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.InvalidOperationExceptionWithCancellation is used multiple times in the query.

Definition at line 202 of file ParallelEnumerable.cs.

◆ WithDegreeOfParallelism< TSource >()

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.WithDegreeOfParallelism< TSource > ( this ParallelQuery< TSource >  source,
int  degreeOfParallelism 
)
static

Sets the degree of parallelism to use in a query. Degree of parallelism is the maximum number of concurrently executing tasks that will be used to process the query.

Parameters
sourceA ParallelQuery on which to set the limit on the degrees of parallelism.
degreeOfParallelismThe degree of parallelism for the query. The default value is Math.Min(P:System.Environment.ProcessorCount, MAX_SUPPORTED_DOP) where MAX_SUPPORTED_DOP is 512.
Template Parameters
TSourceThe type of elements of source .
Returns
ParallelQuery representing the same query as source, with the limit on the degrees of parallelism set.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.ArgumentOutOfRangeExceptiondegreeOfParallelism is less than 1 or greater than 511.
T:System.InvalidOperationExceptionWithDegreeOfParallelism is used multiple times in the query.

Definition at line 176 of file ParallelEnumerable.cs.

◆ WithExecutionMode< TSource >()

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.WithExecutionMode< TSource > ( this ParallelQuery< TSource >  source,
ParallelExecutionMode  executionMode 
)
static

Sets the execution mode of the query.

Parameters
sourceA ParallelQuery on which to set the option.
executionModeThe mode in which to execute the query.
Template Parameters
TSourceThe type of elements of source .
Returns
ParallelQuery representing the same query as source, but with the registered execution mode.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.ArgumentExceptionexecutionMode is not a valid T:System.Linq.ParallelExecutionMode value.
T:System.InvalidOperationExceptionWithExecutionMode is used multiple times in the query.

Definition at line 239 of file ParallelEnumerable.cs.

◆ WithMergeOptions< TSource >()

static ParallelQuery<TSource> System.Linq.ParallelEnumerable.WithMergeOptions< TSource > ( this ParallelQuery< TSource >  source,
ParallelMergeOptions  mergeOptions 
)
static

Sets the merge options for this query, which specify how the query will buffer output.

Parameters
sourceA ParallelQuery on which to set the option.
mergeOptionsThe merge options to set for this query.
Template Parameters
TSourceThe type of elements of source .
Returns
ParallelQuery representing the same query as source, but with the registered merge options.
Exceptions
T:System.ArgumentNullExceptionsource is a null reference (Nothing in Visual Basic).
T:System.ArgumentExceptionmergeOptions is not a valid T:System.Linq.ParallelMergeOptions value.
T:System.InvalidOperationExceptionWithMergeOptions is used multiple times in the query.

Definition at line 266 of file ParallelEnumerable.cs.

◆ Zip< TFirst, TSecond, TResult >() [1/2]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.Zip< TFirst, TSecond, TResult > ( this ParallelQuery< TFirst >  first,
ParallelQuery< TSecond >  second,
Func< TFirst, TSecond, TResult >  resultSelector 
)
static

Merges in parallel two sequences by using the specified predicate function.

Parameters
firstThe first sequence to zip.
secondThe second sequence to zip.
resultSelectorA function to create a result element from two matching elements.
Template Parameters
TFirstThe type of the elements of the first sequence.
TSecondThe type of the elements of the second sequence.
TResultThe type of the return elements.
Returns
A sequence that has elements of type TResult that are obtained by performing resultSelector pairwise on two sequences. If the sequence lengths are unequal, this truncates to the length of the shorter sequence.
Exceptions
T:System.ArgumentNullExceptionfirst or second or resultSelector is a null reference (Nothing in Visual Basic).
T:System.OperationCanceledExceptionThe query was canceled with the token passed in through WithCancellation .
T:System.AggregateExceptionOne or more exceptions occurred during the evaluation of the query.

Definition at line 454 of file ParallelEnumerable.cs.

◆ Zip< TFirst, TSecond, TResult >() [2/2]

static ParallelQuery<TResult> System.Linq.ParallelEnumerable.Zip< TFirst, TSecond, TResult > ( this ParallelQuery< TFirst >  first,
IEnumerable< TSecond >  second,
Func< TFirst, TSecond, TResult >  resultSelector 
)
static

This Zip overload should never be called. This method is marked as obsolete and always throws T:System.NotSupportedException when invoked.

Parameters
firstThis parameter is not used.
secondThis parameter is not used.
resultSelectorThis parameter is not used.
Template Parameters
TFirstThis type parameter is not used.
TSecondThis type parameter is not used.
TResultThis type parameter is not used.
Returns
This overload always throws a T:System.NotSupportedException.
Exceptions
T:System.NotSupportedExceptionThe exception that occurs when this method is called.

Definition at line 482 of file ParallelEnumerable.cs.


The documentation for this class was generated from the following file: