Click or drag to resize
OrderedSetTDifference Method
Computes the difference of this set with another set. The difference of these two sets is all items that appear in this set, but not in otherSet. A new set is created with the 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 OrderedSet<T> Difference(
	OrderedSet<T> otherSet
)

Parameters

otherSet
Type: X3Platform.CollectionsOrderedSetT
Set to difference with.

Return Value

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

The difference of two sets is computed in time O(M + N log M), where M is the size of the larger set, and N is the size of the smaller set.

See Also