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内の重複する要素を無視します。

適用対象