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

定义

确定当前的不可变排序集和指定的集合是否共享通用元素。Determines whether the current immutable sorted set and a specified collection share common elements.

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

参数

other
IEnumerable<T>

要与当前集进行比较的集合。The collection to compare to the current set.

返回

如果当前集与 true 至少共享一个通用元素,则为 other;否则为 falsetrue if the current set and other share at least one common element; otherwise, false.

实现

注解

System.object NuGet 包System.Collections.Immutable NuGet package

关于不可变集合以及如何安装About immutable collections and how to install

适用于