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

定义

确定当前不可变排序集是否为指定集合的超集。

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

参数

other
IEnumerable<T>

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

返回

如果当前集是 other 的超集,则为 true;否则为 false

实现

注解

所有集合(包括空集)都是空集的超集。 因此,如果 参数表示的other集合为空,即使当前排序集为空,此方法也会返回 true

System.Collections.Immutable NuGet 包

关于不可变集合以及如何安装

适用于