IReadOnlySet<T>.SetEquals(IEnumerable<T>) Метод
Определение
Определяет, содержат ли текущий набор и указанная коллекция одни и те же элементы.Determines whether the current 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>
Коллекция для сравнения с текущим набором.The collection to compare to the current set.
Возвращаемое значение
Значение true
, если текущий набор совпадает с другим; в противном случае значение false
.true
if the current set is equal to other; otherwise, false
.
Исключения
other
имеет значение null
.other
is null
.