语言

IReadOnlySet<T>.SetEquals(IEnumerable<T>) 方法

定义

检查此集是否包含相同且仅包含与其他元素相同的元素。

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

参数

other
IEnumerable<T>

要检查的序列。

返回

如此 如果此集包含的元素和其他元素相同,则为 True;否则为 false。

适用于