OrderedBagTIntersectionWith Method |
Namespace: X3Platform.Collections
Exception | Condition |
---|---|
InvalidOperationException | This bag and otherBag don't use the same method for comparing items. |
ArgumentNullException | otherBag is null. |
When equal items appear in both bags, the intersection will include an arbitrary choice of one of the two equal items.
The intersection of two bags is computed in time O(N log M), where M is the size of the larger bag, and N is the size of the smaller bag.