BagTIsProperSubsetOf Method |
Determines if this bag is a proper 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. Additional, this bag must have strictly fewer items than otherBag.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic bool IsProperSubsetOf(
Bag<T> otherBag
)
public:
bool IsProperSubsetOf(
Bag<T>^ otherBag
)
Parameters
- otherBag
- Type: X3Platform.CollectionsBagT
Bag to compare to.
Return Value
Type:
BooleanTrue if this is a proper subset of
otherBag.
Exceptions
RemarksIsProperSubsetOf is computed in time O(N), where N is the number of unique items in this bag.
See Also