SortedSet<T>.IsProperSupersetOf(IEnumerable<T>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定对象是否 SortedSet<T> 为指定集合的适当超集。
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>
要与当前 SortedSet<T> 对象进行比较的集合。
返回
true如果对象是适当的超集,other则SortedSet<T>为 ;否则为 false。
实现
例外
other 是 null。
注解
空集是任何其他集合的子集。 因此,此方法返回 true 由参数表示的 other 集合为空,除非当前 SortedSet<T> 集合也为空。
此方法始终返回falseCount的元素数小于或等于 。other
如果表示的 other 集合是与 SortedSet<T> 当前 SortedSet<T> 对象具有相同相等比较器集合,则此方法是一个 O(n) 操作。 否则,此方法是一个O(n + m)操作,其中n元素的数量和m元素数other。Count