Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

OrderedBag<(Of <(<'T>)>)>..::..IsProperSupersetOf Method

Determines if this bag is a proper superset of another bag. Neither bag is modified. This bag is a proper superset of otherBag if every element in otherBag is also in this bag, at least the same number of times. Additional, this bag must have strictly more items than otherBag.

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

Syntax


public bool IsProperSupersetOf(
	OrderedBag<T> otherBag
)
Public Function IsProperSupersetOf ( _
	otherBag As OrderedBag(Of T) _
) As Boolean
public:
bool^ IsProperSupersetOf(
	OrderedBag<T>^ otherBag
)

Parameters

otherBag
Type: Wintellect.PowerCollections..::..OrderedBag<(Of <(<'T>)>)>
OrderedBag to compare to.

Return Value

True if this is a proper superset of otherBag.

Exceptions


ExceptionCondition
InvalidOperationExceptionThis bag and otherBag don't use the same method for comparing items.
ArgumentNullExceptionotherBag is null.

Remarks


IsProperSupersetOf is computed in time O(M log N), where M is the number of unique items in otherBag.