Set DocumentationSet Equals Method
Determines whether the current set and the specified collection contain the same elements.
Definition
Namespace: XMLCommentsExamples.DocumentationInheritance
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
if the current set is equal to other; otherwise, false.
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
C#
public bool SetEquals(
IEnumerable<int> other
)VB
Public Function SetEquals (
other As IEnumerable(Of Integer)
) As BooleanC++
public:
virtual bool SetEquals(
IEnumerable<int>^ other
) sealedF#
abstract SetEquals :
other : IEnumerable<int> -> bool
override SetEquals :
other : IEnumerable<int> -> bool Parameters
- other IEnumerableInt32
- The collection to compare to the current set.
Return Value
Booleanif the current set is equal to other; otherwise, false.
Implements
ISetTSetEquals(IEnumerableT)Exceptions
| ArgumentNullException | other is . |