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

定义

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

public:
 virtual bool IsProperSupersetOf(System::Collections::Generic::IEnumerable<T> ^ other);
public bool IsProperSupersetOf (System.Collections.Generic.IEnumerable<T> other);
abstract member IsProperSupersetOf : seq<'T> -> bool
override this.IsProperSupersetOf : seq<'T> -> bool
Public Function IsProperSupersetOf (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 proper superset of other; otherwise, false.

实现

注解

空集是任何其他集合的真超集。An empty set is a proper superset of any other collection. 因此,如果 other 参数表示的集合为空,则此方法返回 true,除非当前集也为空。Therefore, this method returns true if the collection represented by the other parameter is empty, unless the current set is also empty.

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

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

适用于