语言

IReadOnlySet.SetEquals(IEnumerable) 方法

定义

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

public bool SetEquals(System.Collections.IEnumerable other);
abstract member SetEquals : System.Collections.IEnumerable -> bool
Public Function SetEquals (other As IEnumerable) As Boolean

参数

other
IEnumerable

要检查的序列。

返回

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

适用于