BagTIsProperSupersetOf 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: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic bool IsProperSupersetOf(
Bag<T> otherBag
)
public:
bool IsProperSupersetOf(
Bag<T>^ otherBag
)
Parameters
- otherBag
- Type: X3Platform.CollectionsBagT
Set to compare to.
Return Value
Type:
BooleanTrue if this is a proper superset of
otherBag.
Exceptions
RemarksIsProperSupersetOf is computed in time O(M), where M is the number of unique items in
otherBag.
See Also