Click or drag to resize
SetTSymmetricDifference Method
Computes the symmetric difference of this set with another set. The symmetric difference of two sets is all items that appear in either of the sets, but not both. A new set is created with the symmetric difference of the sets and is returned. This set and the other set are unchanged.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public Set<T> SymmetricDifference(
	Set<T> otherSet
)

Parameters

otherSet
Type: X3Platform.CollectionsSetT
Set to symmetric difference with.

Return Value

Type: SetT
The symmetric difference of the two sets.
Exceptions
ExceptionCondition
InvalidOperationExceptionThis set and otherSet don't use the same method for comparing items.
Remarks

The symmetric difference of two sets is computed in time O(N), where N is the size of the smaller set.

See Also