Share via


IReadOnlySet<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,否則為 false

例外狀況

othernull

適用於