ISet<T>.IsSupersetOf(IEnumerable<T>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定当前集是否为指定集合的超集。
public:
bool IsSupersetOf(System::Collections::Generic::IEnumerable<T> ^ other);
public bool IsSupersetOf (System.Collections.Generic.IEnumerable<T> other);
abstract member IsSupersetOf : seq<'T> -> bool
Public Function IsSupersetOf (other As IEnumerable(Of T)) As Boolean
参数
- other
- IEnumerable<T>
要与当前集进行比较的集合。
返回
如果当前集是 other 的超集,则为 true;否则为 false。
例外
other 为 null。
注解
如果 other 包含与当前集相同的元素,则当前集仍被视为 的 other超集。
如果当前集的元素少于 other,则此方法始终返回 false 。