PostSharp//API Reference/Post­Sharp.​Patterns.​Collections/Advisable­Hash­Set<T>/Set­Equals
Open sandboxFocus

Method SetEquals

SetEquals(IEnumerable<T>)

Determines whether the current set and the specified collection contain the same elements.

Declaration
public bool SetEquals(IEnumerable<T> other)
Parameters
Type Name Description
IEnumerable<T> other

The collection to compare to the current set.

Returns
Type Description
Boolean

true if the current set is equal to other; otherwise, false.

Exceptions
Type Condition
ArgumentNullException

other is null.