Bag<(Of <(<'T>)>)>..::..SymmetricDifferenceWith Method
Computes the symmetric difference of this bag with another bag. The symmetric difference of two bags
is all items that appear in either of the bags, but not both. If an item appears X times in one bag,
and Y times in the other bag, the symmetric difference contains the item AbsoluteValue(X - Y) times. This bag receives
the symmetric difference of the two bags; the other bag is unchanged.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
Parameters
- otherBag
- Type: Wintellect.PowerCollections..::..Bag<(Of <(<'T>)>)>
Bag to symmetric difference with.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | This bag and otherBag don't use the same method for comparing items. |