OrderedBag<(Of <(<'T>)>)>..::..IsSubsetOf Method
Determines if this bag is a subset of another bag. Neither bag is modified.
This bag is a subset of otherBag if every element in this bag
is also in otherBag, at least the same number of
times.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
public bool IsSubsetOf( OrderedBag<T> otherBag )
Public Function IsSubsetOf ( _ otherBag As OrderedBag(Of T) _ ) As Boolean
public: bool^ IsSubsetOf( OrderedBag<T>^ otherBag )
Parameters
- otherBag
- Type: Wintellect.PowerCollections..::..OrderedBag<(Of <(<'T>)>)>
OrderedBag to compare to.
Return Value
True if this is a subset of otherBag.Exceptions
Exception | Condition |
---|---|
InvalidOperationException | This bag and otherBag don't use the same method for comparing items. |
ArgumentNullException | otherBag is null. |