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

定义

确定当前 System.Collections.Generic.HashSet'1 对象和指定的集合是否共享公共元素。

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

参数

other
IEnumerable<T>

要与当前哈希集进行比较的集合。

返回

true 如果哈希集和其他共享至少一个公共元素,则为 ;否则为 false

实现

适用于