IImmutableSet<T>.Overlaps(IEnumerable<T>) IImmutableSet<T>.Overlaps(IEnumerable<T>) IImmutableSet<T>.Overlaps(IEnumerable<T>) IImmutableSet<T>.Overlaps(IEnumerable<T>) Method

定義

判斷目前的不可變資料集是否與指定的集合重疊。Determines whether the current immutable set overlaps with the specified collection.

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> IEnumerable<T> IEnumerable<T> IEnumerable<T>

要與目前資料組比較的集合。The collection to compare to the current set.

傳回

如果目前的資料集和指定的集合至少共用一個通用項目,則為 true,否則為 falsetrue if the current set and the specified collection share at least one common element; otherwise, false.

適用於