IImmutableSet<T>.Intersect(IEnumerable<T>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立不可變的集合,其中只包含存在於這個集合和指定集合中的專案。
public:
System::Collections::Immutable::IImmutableSet<T> ^ Intersect(System::Collections::Generic::IEnumerable<T> ^ other);
public System.Collections.Immutable.IImmutableSet<T> Intersect(System.Collections.Generic.IEnumerable<T> other);
abstract member Intersect : seq<'T> -> System.Collections.Immutable.IImmutableSet<'T>
Public Function Intersect (other As IEnumerable(Of T)) As IImmutableSet(Of T)
參數
- other
- IEnumerable<T>
集合可與目前 IImmutableSet<T>的 。
傳回
一個新的不變集合,包含存在於兩個集合中的元素。