語言

ImmutableHashSet<T>.Overlaps(IEnumerable<T>) 方法

定義

判斷目前的不可變哈希集是否與指定的集合重疊。

public:
 virtual bool Overlaps(System::Collections::Generic::IEnumerable<T> ^ other);
public bool Overlaps(System.Collections.Generic.IEnumerable<T> other);
abstract member Overlaps : seq<'T> -> bool
override this.Overlaps : seq<'T> -> bool
Public Function Overlaps (other As IEnumerable(Of T)) As Boolean

參數

other
IEnumerable<T>

用來和現有的系列做比較。

傳回

true如果目前的集合與指定的集合至少共享一個共同元素;否則,。 false

實作

適用於