ParallelEnumerable.SequenceEqual 메서드

정의

해당 형식에 대한 같음 비교자를 통해 요소를 비교하여 두 병렬 시퀀스가 서로 같은지 확인합니다.

오버로드

SequenceEqual<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)
사용되지 않습니다.

이 SequenceEqual 오버로드는 호출되면 안 됩니다. 이 메서드는 사용되지 않는 것으로 표시되며 호출되면 항상 NotSupportedException을 throw합니다.

SequenceEqual<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

해당 형식에 대한 기본 같음 비교자를 통해 요소를 비교하여 두 병렬 시퀀스가 서로 같은지 확인합니다.

SequenceEqual<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)
사용되지 않습니다.

이 SequenceEqual 오버로드는 호출되면 안 됩니다. 이 메서드는 사용되지 않는 것으로 표시되며 호출되면 항상 NotSupportedException을 throw합니다.

SequenceEqual<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>)

지정된 IEqualityComparer{T}를 통해 해당 요소를 비교하여 두 병렬 시퀀스가 서로 같은지 확인합니다.

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

주의

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

이 SequenceEqual 오버로드는 호출되면 안 됩니다. 이 메서드는 사용되지 않는 것으로 표시되며 호출되면 항상 NotSupportedException을 throw합니다.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static bool SequenceEqual(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 bool SequenceEqual<TSource> (this 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>.")>]
static member SequenceEqual : System.Linq.ParallelQuery<'Source> * seq<'Source> -> bool
<Extension()>
Public Function SequenceEqual(Of TSource) (first As ParallelQuery(Of TSource), second As IEnumerable(Of TSource)) As Boolean

형식 매개 변수

TSource

이 형식 매개 변수는 사용되지 않습니다.

매개 변수

first
ParallelQuery<TSource>

이 매개 변수는 사용되지 않습니다.

second
IEnumerable<TSource>

이 매개 변수는 사용되지 않습니다.

반환

Boolean

이 오버로드는 항상 NotSupportedException을 throw합니다.

특성

예외

이 메서드를 호출할 때마다 throw됩니다.

설명

이 오버로드는 형식의 왼쪽 데이터 원본과 형식 ParallelQuery<TSource> 의 오른쪽 데이터 원본을 사용하여 SequenceEqual의 IEnumerable<T>사용을 허용하지 않습니다. 그렇지 않으면 SequenceEqual 연산자가 병렬 구현에 바인딩된 것처럼 보이지만 실제로는 순차적 구현에 바인딩됩니다.

추가 정보

적용 대상

SequenceEqual<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

해당 형식에 대한 기본 같음 비교자를 통해 요소를 비교하여 두 병렬 시퀀스가 서로 같은지 확인합니다.

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

형식 매개 변수

TSource

입력 시퀀스 요소의 형식입니다.

매개 변수

first
ParallelQuery<TSource>

두 번째와 비교할 시퀀스입니다.

second
ParallelQuery<TSource>

첫 번째 입력 시퀀스와 비교할 시퀀스입니다.

반환

Boolean

두 소스 시퀀스의 길이가 같고 해당 형식의 기본 같음 비교자에 따라 상응하는 요소가 서로 같으면 true이고, 그렇지 않으면 false입니다.

예외

first 또는 second가 null 참조(Visual Basic의 경우 Nothing)인 경우

쿼리를 확인하는 동안 하나 이상의 예외가 발생했습니다.

추가 정보

적용 대상

SequenceEqual<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)

주의

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

이 SequenceEqual 오버로드는 호출되면 안 됩니다. 이 메서드는 사용되지 않는 것으로 표시되며 호출되면 항상 NotSupportedException을 throw합니다.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static bool SequenceEqual(System::Linq::ParallelQuery<TSource> ^ first, System::Collections::Generic::IEnumerable<TSource> ^ second, System::Collections::Generic::IEqualityComparer<TSource> ^ comparer);
[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 bool SequenceEqual<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Collections.Generic.IEnumerable<TSource> second, System.Collections.Generic.IEqualityComparer<TSource> comparer);
[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 bool SequenceEqual<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Collections.Generic.IEnumerable<TSource> second, System.Collections.Generic.IEqualityComparer<TSource>? comparer);
[<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>.")>]
static member SequenceEqual : System.Linq.ParallelQuery<'Source> * seq<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> bool
<Extension()>
Public Function SequenceEqual(Of TSource) (first As ParallelQuery(Of TSource), second As IEnumerable(Of TSource), comparer As IEqualityComparer(Of TSource)) As Boolean

형식 매개 변수

TSource

이 형식 매개 변수는 사용되지 않습니다.

매개 변수

first
ParallelQuery<TSource>

이 매개 변수는 사용되지 않습니다.

second
IEnumerable<TSource>

이 매개 변수는 사용되지 않습니다.

comparer
IEqualityComparer<TSource>

이 매개 변수는 사용되지 않습니다.

반환

Boolean

이 오버로드는 항상 NotSupportedException을 throw합니다.

특성

예외

이 메서드를 호출할 때마다 throw됩니다.

설명

이 오버로드는 형식의 왼쪽 데이터 원본과 형식 ParallelQuery<TSource> 의 오른쪽 데이터 원본을 사용하여 SequenceEqual의 IEnumerable<T>사용을 허용하지 않습니다. 그렇지 않으면 SequenceEqual 연산자가 병렬 구현에 바인딩된 것처럼 보이지만 실제로는 순차적 구현에 바인딩됩니다.

추가 정보

적용 대상

SequenceEqual<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>)

지정된 IEqualityComparer{T}를 통해 해당 요소를 비교하여 두 병렬 시퀀스가 서로 같은지 확인합니다.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static bool SequenceEqual(System::Linq::ParallelQuery<TSource> ^ first, System::Linq::ParallelQuery<TSource> ^ second, System::Collections::Generic::IEqualityComparer<TSource> ^ comparer);
public static bool SequenceEqual<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second, System.Collections.Generic.IEqualityComparer<TSource> comparer);
public static bool SequenceEqual<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second, System.Collections.Generic.IEqualityComparer<TSource>? comparer);
static member SequenceEqual : System.Linq.ParallelQuery<'Source> * System.Linq.ParallelQuery<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> bool
<Extension()>
Public Function SequenceEqual(Of TSource) (first As ParallelQuery(Of TSource), second As ParallelQuery(Of TSource), comparer As IEqualityComparer(Of TSource)) As Boolean

형식 매개 변수

TSource

입력 시퀀스 요소의 형식입니다.

매개 변수

first
ParallelQuery<TSource>

second와 비교할 시퀀스입니다.

second
ParallelQuery<TSource>

첫 번째 입력 시퀀스와 비교할 시퀀스입니다.

comparer
IEqualityComparer<TSource>

요소를 비교하는 데 사용할 IEqualityComparer<T>입니다.

반환

Boolean

두 소스 시퀀스의 길이가 같고 해당 형식의 기본 같음 비교자에 따라 상응하는 요소가 서로 같으면 true이고, 그렇지 않으면 false입니다.

예외

first 또는 second가 null 참조(Visual Basic의 경우 Nothing)인 경우

쿼리를 확인하는 동안 하나 이상의 예외가 발생했습니다.

추가 정보

적용 대상