IImmutableSet<T>.SetEquals(IEnumerable<T>) IImmutableSet<T>.SetEquals(IEnumerable<T>) IImmutableSet<T>.SetEquals(IEnumerable<T>) IImmutableSet<T>.SetEquals(IEnumerable<T>) Method

定義

判斷目前的不可變資料集和指定的集合是否包含相同項目。Determines whether the current immutable set and the specified collection contain the same elements.

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> IEnumerable<T> IEnumerable<T> IEnumerable<T>

要與目前資料組比較的集合。The collection to compare to the current set.

傳回

如果資料集相等,則為 true,否則為 falsetrue if the sets are equal; otherwise, false.

適用於