ParallelEnumerable::SequenceEqual<TSource> Method (ParallelQuery<TSource>^, IEnumerable<TSource>^, IEqualityComparer<TSource>^)
.NET Framework (current version)
Note: This API is now obsolete.
Namespace:
System.Linq
Assembly: System.Core (in System.Core.dll)
Return to top
This SequenceEqual overload should never be called. This method is marked as obsolete and always throws NotSupportedException when called.
Assembly: System.Core (in System.Core.dll)
public: generic<typename TSource> [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>.")] static bool SequenceEqual( ParallelQuery<TSource>^ first, IEnumerable<TSource>^ second, IEqualityComparer<TSource>^ comparer )
Parameters
- first
-
Type:
System.Linq::ParallelQuery<TSource>^
This parameter is not used.
- second
-
Type:
System.Collections.Generic::IEnumerable<TSource>^
This parameter is not used.
- comparer
-
Type:
System.Collections.Generic::IEqualityComparer<TSource>^
This parameter is not used.
Type Parameters
- TSource
This type parameter is not used.
| Exception | Condition |
|---|---|
| NotSupportedException | Thrown every time this method is called. |
This overload exists to disallow usage of SequenceEqual with a left data source of type ParallelQuery<TSource> and a right data source of type IEnumerable<T>. Otherwise, the SequenceEqual operator would appear to be binding to the parallel implementation, but would in reality bind to 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: