Click or drag to resize
AlgorithmsSetSymmetricDifference Method
Overload List
  NameDescription
Public methodStatic memberSetSymmetricDifferenceT(IEnumerableT, IEnumerableT)
Computes the set-theoretic symmetric difference of two collections. The symmetric difference of two sets is all items that appear in the one of the sets, but not in the other. If an item appears X times in the one set, and Y times in the other set, the symmetric difference contains the item AbsoluteValue(X - Y) times. The source collections are not changed. A new collection is created with the symmetric difference of the collections; the order of the items in this collection is undefined.
Public methodStatic memberSetSymmetricDifferenceT(IEnumerableT, IEnumerableT, IEqualityComparerT)
Computes the set-theoretic symmetric difference of two collections. The symmetric difference of two sets is all items that appear in the one of the sets, but not in the other. If an item appears X times in the one set, and Y times in the other set, the symmetric difference contains the item AbsoluteValue(X - Y) times. The source collections are not changed. A new collection is created with the symmetric difference of the collections; the order of the items in this collection is undefined.
Top
See Also