Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

Set<(Of <(<'T>)>)>..::..IsEqualTo Method

Determines if this set is equal to another set. This set is equal to otherSet if they contain the same items.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public bool IsEqualTo(
	Set<T> otherSet
)
Public Function IsEqualTo ( _
	otherSet As Set(Of T) _
) As Boolean
public:
bool^ IsEqualTo(
	Set<T>^ otherSet
)

Parameters

otherSet
Type: Wintellect.PowerCollections..::..Set<(Of <(<'T>)>)>
Set to compare to

Return Value

True if this set is equal to otherSet, false otherwise.

Exceptions


ExceptionCondition
InvalidOperationExceptionThis set and otherSet don't use the same method for comparing items.

Remarks


IsEqualTo is computed in time O(N), where N is the number of items in this set.