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.

例外

othernull

注解

将忽略任何重复元素 other

适用于