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

定义

确定当前不可变哈希集是否为指定集合的真(严格)超集。Determines whether the current immutable hash set is a proper (strict) 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;否则为 falsetrue if the current set is a proper superset of the specified collection; otherwise, false.

实现

注解

如果当前集是 other 的真超集,则当前集必须具有至少一个 other 没有的元素。If the current set is a proper superset of other, the current set must have at least one element that other does not have.

适用于