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

Definition

Check if this set contains the same and only the same elements as 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

Parameters

other
IEnumerable<T>

The sequence to check against.

Returns

True if this set contains the same and only the same elements as other; otherwise false.

Applies to