Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

Set.Equals Method

This method will test the ISet against another ISet for "equality".

[Visual Basic]
Public Overrides Sub Equals( _
   ByVal obj As Object _
)
[C#]
public override bool Equals(
   object obj
);

Parameters

obj
A ISet object to compare to.

Return Value

true if the two sets contain the same elements.

Remarks

In this case, "equality" means that the two sets contain the same elements. The "==" and "!=" operators are not overridden by design. If you wish to check for "equivalent" ISet instances, use Equals(). If you wish to check to see if two references are actually the same object, use "==" and "!=".

See Also

Set Class | Spring.Collections Namespace