ParallelEnumerable.Intersect Метод

Определение

Находит пересечение множеств, представленных двумя параллельными последовательностями.

Перегрузки

Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)
Устаревшие..

Эту перегрузку Intersect вызывать не следует. Данный метод помечен как устаревший, при попытке его вызова всегда создается исключение NotSupportedException.

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

Находит пересечение множеств, представленных двумя параллельными последовательностями, используя для сравнения значений указанный компаратор IEqualityComparer{T}.

Intersect<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)
Устаревшие..

Эту перегрузку Intersect вызывать не следует. Данный метод помечен как устаревший, при попытке его вызова всегда создается исключение NotSupportedException.

Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

Находит пересечение множеств, представленных двумя параллельными последовательностями, используя для сравнения значений компаратор проверки на равенство по умолчанию.

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

Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs

Внимание!

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

Эту перегрузку Intersect вызывать не следует. Данный метод помечен как устаревший, при попытке его вызова всегда создается исключение NotSupportedException.

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

Параметры типа

TSource

Этот параметр типа не используется.

Параметры

first
ParallelQuery<TSource>

Этот параметр не используется.

second
IEnumerable<TSource>

Этот параметр не используется.

comparer
IEqualityComparer<TSource>

Этот параметр не используется.

Возвращаемое значение

Данная перегрузка всегда создает исключение NotSupportedException.

Атрибуты

Исключения

Исключение, которое возникает при вызове этого метода.

Комментарии

Эта перегрузка существует для запрета использования Intersect с левым источником данных типа ParallelQuery<TSource> и правым источником данных типа IEnumerable<T>. В противном случае оператор Intersect будет казаться привязкой к параллельной реализации, но в действительности будет привязан к последовательной реализации.

См. также раздел

Применяется к

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

Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs

Находит пересечение множеств, представленных двумя параллельными последовательностями, используя для сравнения значений указанный компаратор IEqualityComparer{T}.

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

Параметры типа

TSource

Тип элементов входных последовательностей.

Параметры

first
ParallelQuery<TSource>

Последовательность, из которой возвращаются различающиеся элементы, входящие также в second.

second
ParallelQuery<TSource>

Последовательность, из которой возвращаются различающиеся элементы, входящие также в первую последовательность.

comparer
IEqualityComparer<TSource>

Компаратор IEqualityComparer<T>, используемый для сравнения значений.

Возвращаемое значение

Последовательность элементов, представляющая собой пересечение двух заданных последовательностей как множеств.

Исключения

Запрос отменен с использованием маркера, переданного через WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken).

Параметр source или action — это пустая ссылка (Nothing в Visual Basic).

При оценке запроса получено одно или несколько исключений.

См. также раздел

Применяется к

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

Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs

Внимание!

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

Эту перегрузку Intersect вызывать не следует. Данный метод помечен как устаревший, при попытке его вызова всегда создается исключение NotSupportedException.

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

Параметры типа

TSource

Этот параметр типа не используется.

Параметры

first
ParallelQuery<TSource>

Этот параметр не используется.

second
IEnumerable<TSource>

Этот параметр не используется.

Возвращаемое значение

Данная перегрузка всегда создает исключение NotSupportedException.

Атрибуты

Исключения

Исключение, которое возникает при вызове этого метода.

Комментарии

Эта перегрузка существует для запрета использования Intersect с левым источником данных типа ParallelQuery<TSource> и правым источником данных типа IEnumerable<T>. В противном случае оператор Intersect будет казаться привязкой к параллельной реализации, но в действительности будет привязан к последовательной реализации.

См. также раздел

Применяется к

Intersect<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)

Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs
Исходный код:
ParallelEnumerable.cs

Находит пересечение множеств, представленных двумя параллельными последовательностями, используя для сравнения значений компаратор проверки на равенство по умолчанию.

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

Параметры типа

TSource

Тип элементов входных последовательностей.

Параметры

first
ParallelQuery<TSource>

Последовательность, из которой возвращаются различающиеся элементы, входящие также в second.

second
ParallelQuery<TSource>

Последовательность, из которой возвращаются различающиеся элементы, входящие также в первую последовательность.

Возвращаемое значение

Последовательность элементов, представляющая собой пересечение двух заданных последовательностей как множеств.

Исключения

Запрос отменен с использованием маркера, переданного через WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken).

Параметр source или action — это пустая ссылка (Nothing в Visual Basic).

При оценке запроса получено одно или несколько исключений.

См. также раздел

Применяется к