ParallelEnumerable.Zip(Of TFirst, TSecond, TResult) Method (ParallelQuery(Of TFirst), IEnumerable(Of TSecond), Func(Of TFirst, TSecond, TResult))
.NET Framework (current version)
Note: This API is now obsolete.
Namespace:
System.Linq
Assembly: System.Core (in System.Core.dll)
Return to top
This Zip overload should never be called. This method is marked as obsolete and always throws NotSupportedException when invoked.
Assembly: System.Core (in System.Core.dll)
<ExtensionAttribute> <ObsoleteAttribute("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 Shared Function Zip(Of TFirst, TSecond, TResult) ( first As ParallelQuery(Of TFirst), second As IEnumerable(Of TSecond), resultSelector As Func(Of TFirst, TSecond, TResult) ) As ParallelQuery(Of TResult)
Parameters
- first
-
Type:
System.Linq.ParallelQuery(Of TFirst)
This parameter is not used.
- second
-
Type:
System.Collections.Generic.IEnumerable(Of TSecond)
This parameter is not used.
- resultSelector
-
Type:
System.Func(Of TFirst, TSecond, TResult)
This parameter is not used.
Return Value
Type: System.Linq.ParallelQuery(Of TResult)This overload always throws a NotSupportedException.
Type Parameters
- TFirst
This type parameter is not used.
- TSecond
This type parameter is not used.
- TResult
This type parameter is not used.
| Exception | Condition |
|---|---|
| NotSupportedException | The exception that occurs when this method is called. |
This overload exists to disallow usage of Zip with a left data source of type ParallelQuery(Of TSource) and a right data source of type IEnumerable(Of T). Otherwise, the Zip operator would appear to be bind to the parallel implementation, but would in reality bind to the sequential implementation.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: