Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

OrderedSet<(Of <(<'T>)>)>..::..IsProperSubsetOf Method

Determines if this set is a proper subset of another set. Neither set is modified. This set is a subset of otherSet if every element in this set is also in otherSet. Additionally, this set must have strictly fewer items than otherSet.

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

Syntax


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

Parameters

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

Return Value

True if this is a proper subset of otherSet.

Exceptions


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

Remarks


IsSubsetOf is computed in time O(N log M), where M is the size of the otherSet, and N is the size of the this set.