ParallelEnumerable.Concat ParallelEnumerable.Concat ParallelEnumerable.Concat ParallelEnumerable.Concat Method

Definition

Concatenates two parallel sequences.

Overloads

Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)

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

Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

Concatenates two parallel sequences.

Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)

Warning

This API is now obsolete.

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

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ Concat(System::Linq::ParallelQuery<TSource> ^ first, System::Collections::Generic::IEnumerable<TSource> ^ second);
[System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")]
public static System.Linq.ParallelQuery<TSource> Concat<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Collections.Generic.IEnumerable<TSource> second);
static member Concat : System.Linq.ParallelQuery<'Source> * seq<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Concat(Of TSource) (first As ParallelQuery(Of TSource), second As IEnumerable(Of TSource)) As ParallelQuery(Of TSource)

Type Parameters

TSource

This type parameter is not used.

Parameters

second
IEnumerable<TSource>

This parameter is not used.

Returns

Exceptions

The exception that occurs when this method is called.

Remarks

This overload exists to disallow usage of Concat with a left data source of type ParallelQuery<TSource> and a right data source of type IEnumerable<T>. Otherwise, the Concat operator would appear to be binding to the parallel implementation, but would in reality bind to the sequential implementation.

See also

Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

Concatenates two parallel sequences.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ Concat(System::Linq::ParallelQuery<TSource> ^ first, System::Linq::ParallelQuery<TSource> ^ second);
public static System.Linq.ParallelQuery<TSource> Concat<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second);
static member Concat : System.Linq.ParallelQuery<'Source> * System.Linq.ParallelQuery<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Concat(Of TSource) (first As ParallelQuery(Of TSource), second As ParallelQuery(Of TSource)) As ParallelQuery(Of TSource)

Type Parameters

TSource

The type of the elements of the input sequences.

Parameters

second
ParallelQuery<TSource> ParallelQuery<TSource> ParallelQuery<TSource> ParallelQuery<TSource>

The sequence to concatenate to the first sequence.

Returns

A sequence that contains the concatenated elements of the two input sequences.

Exceptions

first or second is a null reference (Nothing in Visual Basic).

See also

Applies to