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

定義

判斷目前的資料集和指定的集合是否包含相同項目。

public:
 bool SetEquals(System::Collections::Generic::IEnumerable<T> ^ other);
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>

要與目前資料組比較的集合。

傳回

如果目前的資料集等於 other,則為 true,否則為 false

例外狀況

othernull

備註

這個方法會忽略 中的 other項目順序和任何重複的專案。

適用於