Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ParallelEnumerable::SequenceEqual<TSource> Method (ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)

Note: This API is now obsolete.

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

Namespace:  System.Linq
Assemblies:   System.Linq.Parallel (in System.Linq.Parallel.dll)
  System.Core (in System.Core.dll)

[ObsoleteAttribute(L"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>.")]
[ExtensionAttribute]
public:
generic<typename TSource>
static bool SequenceEqual(
	ParallelQuery<TSource>^ first, 
	IEnumerable<TSource>^ second, 
	IEqualityComparer<TSource>^ comparer
)

Type Parameters

TSource

This type parameter is not used.

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.

Return Value

Type: System::Boolean
This overload always throws a NotSupportedException.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ParallelQuery<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

ExceptionCondition
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.

.NET Framework

Obsolete (compiler warning) in 4.6
Obsolete (compiler warning) in 4.6
Obsolete (compiler warning) in 4.5
Obsolete (compiler warning) in 4.5.1
Obsolete (compiler warning) in 4.5.2
Obsolete (compiler warning) in 4

.NET Framework Client Profile

Obsolete (compiler warning) in 4

Portable Class Library

Obsolete (compiler warning) in Portable Class Library

Obsolete (compiler warning) in Windows Phone 8.1
Show:
© 2015 Microsoft