BagTIsDisjointFrom Method |
Determines if this bag is disjoint from another bag. Two bags are disjoint
if no item from one set is equal to any item in the other bag.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic bool IsDisjointFrom(
Bag<T> otherBag
)
public:
bool IsDisjointFrom(
Bag<T>^ otherBag
)
Parameters
- otherBag
- Type: X3Platform.CollectionsBagT
Bag to check disjointness with.
Return Value
Type:
BooleanTrue if the two bags are disjoint, false otherwise.
Exceptions
RemarksThe answer is computed in time O(N), where N is the size of the smaller set.
See Also