ISet<T>.IntersectWith(IEnumerable<T>) 方法

定義

修改目前的資料集,使其僅包含同時也在指定之集合中出現的項目。

public:
 void IntersectWith(System::Collections::Generic::IEnumerable<T> ^ other);
public void IntersectWith (System.Collections.Generic.IEnumerable<T> other);
abstract member IntersectWith : seq<'T> -> unit
Public Sub IntersectWith (other As IEnumerable(Of T))

參數

other
IEnumerable<T>

要與目前資料組比較的集合。

例外狀況

othernull

備註

這個方法會忽略 中 other任何重複的專案。

適用於