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

定义

确定当前不可变排序集是否为指定集合的超集。Determines whether the current immutable sorted set is a superset of a specified collection.

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>

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

返回

如果当前集是 true 的超集,则为 other;否则为 falsetrue if the current set is a superset of other; otherwise, false.

实现

注解

所有集合(包括空集)均为空集的超集。All collections, including empty sets, are supersets of an empty set. 因此,如果 other 参数表示的集合为空(即使当前排序集为空),则此方法将返回 trueTherefore, this method returns true if the collection represented by the other parameter is empty, even if the current sorted set is empty.

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

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

适用于