語言

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

定義

判斷目前的集合是否與指定的集合重疊。

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

參數

other
IEnumerable<T>

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

傳回

true 如果目前集合 和 other 至少共享一個元素;否則, false。

例外狀況

other 是 null。

備註

任何重複元素 other 都被忽略。

適用於