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

定义

确定当前不可变排序集是否为指定集合的真(严格)子集。Determines whether the current immutable sorted set is a proper (strict) subset of the specified collection.

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

参数

other
IEnumerable<T>

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

返回

Boolean

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

实现

注解

空集是任何其他集合的正确子集。An empty set is a proper subset of any other collection. 因此, true 如果当前集为空,则此方法返回,除非该 other 集合也为空。Therefore, this method returns true if the current set is empty, unless the other collection is also empty.

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

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

适用于